Daily updates from Odoo
Friday, November 15, 2024
2 changes
Code cleanup and technical improvements
This change removes use of an old, unmaintained configuration component and relies on the current configuration system instead. It is part of a broader cleanup effort and should reduce long-term maintenance risk without changing business workflows.
Original PR description
This commit is part of a larger refactor, see associated PR. The `odoo.conf` module was first introduced by Vo Minh Thu in 2011 with the following header message: > For now, configuration code is in openerp.tools.config. It is in mainly > unprocessed form, e.g. addons_path is a string with commas-separated > paths. The aim is to have code related to configuration (command line > parsing, configuration file loading and saving, ...) in this module > and provide real Python variables, e.g. addons_paths is really a list > of paths. The same year Vo Minh Thu resigned and nobody did maintain this module ever since. Fast forward 13 (!) years later, `odoo.tools.config` now expose processed options, i.e. addons_path is a list of paths.
This update renames the sales order line tax field to use a consistent naming convention across related Odoo apps. It helps reduce internal complexity for tax, delivery, subscription, and electronic invoicing flows without changing the intended business behavior.
Original PR description
This commit rename `tax_id` field on sale.order.line to `tax_ids` to follow guidelines and have consistent name with other model specifically with account.move.line to have generic methods for both EDI without doing some ugly operations. task-4206350