Monday, October 16, 2023
4 changes · master
Code cleanup and technical improvements
This update removes an outdated template setting from the Point of Sale self-ordering module. It is an internal cleanup that keeps the module aligned with the current app structure and should not change the user experience.
Original PR description
As all the templates are now imported in the owl app, there is not need anymore to specify the owl="1" attribute in the templates. Ref-https://github.com/odoo/odoo/pull/130467 Related Enterprise PR-https://github.com/odoo/enterprise/pull/48964 task-3508331 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This update removes older internal asset-loading calls from the web editor and web areas, moving part of the mobile preview setup to a server-generated template. This helps simplify the underlying asset system, making future maintenance easier without introducing a direct user-facing feature change.
Original PR description
In this commit, we remove three usages of the getBundle function from @web/core/assets.js. The final goal is to remove it totally to simplify the understanding of assets's API. To replace the use of getBundle in mobile preview dialog, an xml template has been created on the server side and then called by http requests. During the request, we retrieve the list of assets (server side getbundle) to inject these into the xml template. taskId : 3266441 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Common tax calculation logic has been moved into shared external tax modules so Avalara and Brazil tax integrations no longer duplicate the same plumbing. This makes future tax service integrations easier to maintain while preserving the existing customer-facing tax calculation triggers for quotes, invoices, and payment flows.
Original PR description
This commit introduces *external_tax* modules to gather common code in account_avatax* and l10n_br_avatax*. When l10n_br_avatax* was developed some of the code in account_avatax was duplicated.…
This commit introduces *external_tax* modules to gather common code in account_avatax* and l10n_br_avatax*. When l10n_br_avatax* was developed some of the code in account_avatax was duplicated. Concretely this module contains: - triggers that cause a tax computation, apart from manual calculation taxes will be calculated in situations where an end customer is viewing a record (e.g. a quote sent via email) and/or has the opportunity to pay (e.g. /my/quote) - code to set tax amounts on records that support tax calculation (sale.order and account.move at the moment) - filters that help integrations determine on which records tax should be calculated Tax integration modules can now be focused on building and processing requests to external tax calculation services, and don’t need to be concerned with these low-level mechanisms anymore. In order to implement a new service the account.external.tax.mixin can be inherited on models that need tax calculation (typically sale.order and account.move). - _compute_is_tax_computed_externally() should be overridden to return True when appropriate - _get_external_taxes() will be called when appropriate and is the main entry point that should launch the external tax calculation process - _get_line_data_for_external_taxes() should be implemented to return data needed for tax calculation for that particular model - _get_date_for_external_taxes() should be overridden to return the date on which tax calculation should be based Other optional hooks are provided for uncommitting and voiding. Upgrade PR: odoo/upgrade#5151
This update removes an old template marker that is no longer needed because templates are now handled automatically by the app framework. It should not change how users work with Odoo, but it helps keep the codebase cleaner and easier to maintain.
Original PR description
As all the templates are now imported in the owl app, there is not need anymore to specify the owl="1" attribute in the templates. Ref-https://github.com/odoo/odoo/pull/130467 task-3508331