Wednesday, December 4, 2024
3 changes · master
Code cleanup and technical improvements
This draft refactor updates view definitions across several Odoo apps so field names in widget options follow the latest platform behavior. The change is mostly internal and helps keep reports, documents, helpdesk, HR, manufacturing, planning, and marketing screens compatible and reliable after core framework updates.
Original PR description
This commit adapts archs to the changes made in https://github.com/odoo/odoo/pull/189284 task-4365253
Miscellaneous changes
Romania does not use the 3-column trial balance report, instead they use a 4-column and 5-column variant. This commit adds the 4/5-column report as variants to the standard trial balance. The standard trial balance implementation has been changed to be easier to override and add column groups. task: 3810685 Forward-Port-Of: odoo/enterprise#74701 Forward-Port-Of: odoo/enterprise#59115
Original PR description
Romania does not use the 3-column trial balance report, instead they use a 4-column and 5-column variant. This commit adds the 4/5-column report as variants to the standard trial balance. The standard trial balance implementation has been changed to be easier to override and add column groups. task: 3810685 Forward-Port-Of: odoo/enterprise#74701 Forward-Port-Of: odoo/enterprise#59115
When synchronizing orders from Amazon with Avatax enabled, sales order lines currently show no taxes and incorrectly set the tax included price as being the subtotal. This occurs because the fiscal position used does not include any tax, which is the expected behavior for Avatax. The recomputation then uses the full amount of the line (which is tax included), and in the absence of tax, consider this is also the subtotal. We now intentionally do not consider the tax amount from Amazon
Original PR description
When synchronizing orders from Amazon with Avatax enabled, sales order lines currently show no taxes and incorrectly set the tax included price as being the subtotal. This occurs because the fiscal position used does not include any tax, which is the expected behavior for Avatax. The recomputation then uses the full amount of the line (which is tax included), and in the absence of tax, consider this is also the subtotal. We now intentionally do not consider the tax amount from Amazon on the order lines, because the distribution of the Amazon's given tax amount is unknown. The multiple real taxes across that line is not an information that Amazon gives us, and needs to be seen from Avatax. This setup ensures that the subtotal on sales order lines remain accurate. opw-4214775 Forward-Port-Of: odoo/enterprise#74995 Forward-Port-Of: odoo/enterprise#74007