-
- Downloads
[ADD] fields.py: New x2many command helper
We provide a new helper class to help redact x2many commands for create and write methods. To ensure best compatibility with the xmlrpc layer we do not change the protocole, the commands are still 3-elements tuples where the first element is still an integer in between 0 and 6. The helper class provide the cannonical constants and static methods to ease working with the commands. The new helper class is also available in QWeb. Developers are encouraged to transition their code so it uses this new helper class. Task: 2366606
Showing
- doc/reference/orm.rst 4 additions, 0 deletionsdoc/reference/orm.rst
- odoo/__init__.py 1 addition, 0 deletionsodoo/__init__.py
- odoo/addons/base/controllers/rpc.py 3 additions, 1 deletionodoo/addons/base/controllers/rpc.py
- odoo/addons/base/models/ir_actions.py 3 additions, 1 deletionodoo/addons/base/models/ir_actions.py
- odoo/fields.py 179 additions, 60 deletionsodoo/fields.py
- odoo/models.py 30 additions, 48 deletionsodoo/models.py
- odoo/tools/convert.py 9 additions, 8 deletionsodoo/tools/convert.py
Loading
Please register or sign in to comment