Thursday, September 22, 2022
3 changes · master
Enhancements to existing features
Payment lists can now be searched directly by the payment amount in company currency. This makes it easier for accounting users to quickly find specific payments without relying on other details like customer, vendor, or reference.
Original PR description
It should be possible to quickly search by `amount_company_currency_signed` in `account.payment` view. -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Odoo now avoids sending create and edit permission markers for views where records cannot be edited anyway. This slightly reduces the data sent to the browser and keeps view definitions cleaner without changing what users can do.
Original PR description
Setting the attributes `can_create` and `can_write` in views which are not editable is useless as you cannot edit the record in these views. This allow to gain some KB when serving the view to the…
Setting the attributes `can_create` and `can_write` in views which are not editable is useless as you cannot edit the record in these views.
This allow to gain some KB when serving the view to the web client, as well as making the view cleaner.
e.g. the graph view in the CRM > My Pipeline menu
Before:
```xml
<graph string="Opportunities" sample="1">
<field name="stage_id" can_create="true" can_write="true"/>
<field name="user_id" on_change="1" can_create="true" can_write="true"/>
<field name="color" modifiers="{"invisible": true}"/>
</graph>
```
After:
```xml
<graph string="Opportunities" sample="1">
<field name="stage_id"/>
<field name="user_id" on_change="1"/>
<field name="color" modifiers="{"invisible": true}"/>
</graph>
```
This revision takes the opportunity to port the `editable` concept from the server to the web client MockServer,
in order to be able to test the removal of these attributes from the views in the QUnit tests.
The `_editableNode` JS function added here is the translation of the existing `def _editable_node` method in `addons/base/models/ir_ui_view.py`
https://github.com/odoo/odoo/blob/f5edde3624f4fe40f87cc7fed7dcfc4bbce1f19f/odoo/addons/base/models/ir_ui_view.py#L1282-L1301The Helpdesk ticket screen has been adjusted so stage indicators and form content align correctly. This makes tickets easier to read and work with, reducing visual confusion for support teams.
Original PR description
The purpose of the commit is to improve the UI of the ticket stage bullets and ticket form view which was misaligned. task-2926348