Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.

Module: Invoicing

Entity: res.currency

Compute Method: _compute_display_rounding_warning

View 17.0 View 19.0
Inputs Method Outputs
  • id
  • rounding
for record in self:
-             record.display_rounding_warning = record.id \
-                                               and record._origin.rounding != record.rounding \
-                                               and record._origin._has_accounting_entries()
+             record.display_rounding_warning = (
+                 record._origin.id and record._origin.rounding != record.rounding
+             )
  • display_rounding_warning

Back to entity