Daily updates from Odoo
Thursday, August 25, 2016
2 changes · master
Resolved issues and error corrections
This fix prevents errors when users change a product's standard price in inventory accounting. It corrects how price-change data is prepared and shows a clear message when required valuation accounts are missing, helping users understand what setup is needed.
Original PR description
- bad creation of a dictionnary with the dictionary comprehension syntax. correction of the syntax. - bad use of decimal precision function. call the correct function to get the decimal precision of products. - traceback when the valuation account was not defined on product category. raise exception when no valuation account, to explain the user why he can't change the price.
Timesheet validation no longer fails when sales-related features are not installed or when there are no entries to validate. This helps users validate timesheets more reliably and receive clearer feedback when there is nothing to process.
Original PR description
- This the bug comes from the commit rev 152fbaa1 where the '_compute_analytic()' function is called in 'timesheet_gird' which not depends from sale module. - Extend 'timesheet_grid.validation' in timesheet_gird_sale to launch the '_compute_analytic()' function only when module sale is installed - Add a condition before the use of 'min()' function, because it throws a 'ValueError' exception if an empty list is passed in argument