Monday, July 15, 2024
5 changes
4 changes
Code cleanup and technical improvements
The Web Studio report editor has been updated to work with Odoo’s newer HTML editing engine. This should make report editing more maintainable and responsive while fixing minor naming issues that could affect reliability.
This internal cleanup makes messaging-related data use the same names across Python and the web interface. It reduces duplicate technical labels and prepares the system for future improvements in how related records are handled, without changing day-to-day user workflows.
Original PR description
Not having the correct name based on python model name makes it much harder to implement future improvement such as auto-formatting of relations (PR in progress: https://github.com/odoo/enterprise/pull/66544) due to python having no knowledge of JS model definitions. This also allows to remove a lot of unnecessary type and model keys for channel and persona, because they can be deduced from the model name. Part of task-3605717 https://github.com/odoo/odoo/pull/172731
This change simplifies the internal tour testing setup by moving disabled-element checks from each tour step definition into the shared action helpers. It keeps test behavior consistent while reducing maintenance across business apps such as Approvals, Payroll, Planning, Studio, Inventory, Rentals, and Appointments.
Original PR description
To simplify the tours API and the number of keys a tour step can have, it was decided to remove the allowDisabled key. In reality, it was not really removed but moved to the tour helpers side. Indeed, when performing the action, we check at that moment whether the targeted element is enabled or not depending on the action that is performed (click, dblclick, draganddrop,...). If the element isn't enabled, it throws an error. task~3974087 https://github.com/odoo/odoo/pull/171028
This update improves the report editor in Odoo Studio by aligning it with the newer editing framework and correcting minor naming mistakes. It also makes report editing more efficient when handling document content, supporting smoother maintenance and future enhancements.
1 change
Code cleanup and technical improvements
The subscription invoice generation process has been refactored to introduce a new customization hook. This makes it easier for developers to modify how invoices are processed without rewriting the entire function. Businesses can now customize invoice workflows more efficiently, such as keeping auto-generated invoices in draft state before posting.
Original PR description
before this commit, if some customization has to be done for changing the workflow of invoice generation, i.e., to keep the auto generated invoice in draft state the entire function has to be rewritten after this commit, a hook is introduced _process_auto_invoice which will post the invoice, later to alter this flow just need to inherit this function Forward-Port-Of: odoo/enterprise#66200