Daily updates from Odoo
Thursday, April 4, 2019
1 change · master
Resolved issues and error corrections
Creating a new purchase quotation from a purchase agreement could fail with an error. This fix removes unnecessary manual rounding so Odoo can handle monetary rounding automatically, allowing the quotation process to complete normally.
Original PR description
- in purchase there are 3 fields that computes by '_amount_all', so it is called 3 times. but, round method has 'ensure_one' therefore it gives singleton error. - So, removed rounding as there is need of rounding explicitly since these are monetary fields which will be rounded automatically. Related to Issue: 1948645 Description of the issue/feature this PR addresses: Traceback when creating new quotation from purchase aggrements Current behavior before PR: Traceback when creating new quotation from purchase aggrements Desired behavior after PR is merged: Traceback resolved when creating new quotation from purchase aggrements Issue: https://www.odoo.com/web#id=1948645&action=327&model=project.task&view_type=form&menu_id=4720 Pad: https://pad.odoo.com/p/r.4ee8640ed26691650fc5c75a86206211 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr