Thursday, October 5, 2023
3 changes · master
Code cleanup and technical improvements
This update removes outdated delivery-related code from the online shop checkout flow. It does not change how customers select delivery options, but helps keep the checkout code simpler and easier to maintain.
Original PR description
Remove unused: - `keep_carrier` from the kwargs of `_check_carrier_quotation` - `carrier_id` from the kwargs of the '/shop/payment' route
This update standardizes how Odoo's frontend code references a shared interface library, replacing direct global access with explicit imports. It reduces maintenance risk and helps developers catch mistakes earlier, with no expected change for end users.
Original PR description
Before this commit, owl was in the linter's accepted global variables.
This allowed direct access to owl global object.
For instance, to use xml from owl, you could do :
`const { xml } = owl;`
or you could use it directly:
`owl.xml`
Now, owl is not accepted on linter's global variables anymore, so to
import xml, now you need to use a proper import:
`import { xml } from "@odoo/owl";`
task-id 3498859This internal cleanup updates many Odoo Enterprise modules to use the approved way of referencing Owl web framework features. It helps keep the codebase consistent and easier to maintain, with no expected functional change for users.
Original PR description
Before this commit, owl was in the linter's accepted global variables.
This allowed direct access to owl global object.
For instance, to use xml from owl, you could do :
`const { xml } = owl;`
or you could use it directly:
`owl.xml`
Now, owl is not accepted on linter's global variables anymore, so to
import xml, now you need to use a proper import:
`import { xml } from "@odoo/owl";`
task-id 3498859