8d77045b46a1b4a9d7fffd1111e53749d51d81e2
Problem --------- All fields in the tax definition are currently modifiable even after the tax has been used. This raises some issues in tax reports and make investigations difficult when things go wrong in tax report. Objective --------- Once an account tax has been used: - Some fields in the account tax should not be modifiable anymore to avoid tax report issues; - Other fields should be logged when modified to ease debugging and investigations. Solution --------- 1. Add a logger to the tax form to track the modification of some fields 2. Track whether the task is being used in transactions or not. This is done thanks to a compute field. In order to be flexible, the compute function uses a hook function that other modules can override to easily add transactions to computation of the field. 3. Make the fields that should not be modified anymore readonly when the tax is being used. 4. In order to track the repartition line values, a tracked computed field that stores the relevant value in a string is used. Task-3450002 Part-of: odoo/odoo#130403
…
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%