diff options
| author | Martin Trigaux <mat@odoo.com> | 2016-09-01 13:14:53 +0200 |
|---|---|---|
| committer | Martin Trigaux <mat@odoo.com> | 2016-09-02 12:03:40 +0200 |
| commit | 7ad9487a83539d13fcbaccf605e3b0180280fd2d (patch) | |
| tree | 79855b6a861e1491ae8211a8d41c70695449bf61 /addons/web_tour/static/src/xml/debug_manager.xml | |
| parent | 14f07cb96fb06ef295c3476f96b73b2e5ff37a72 (diff) | |
[IMP] account: remove required attribute on stored and related field
The field journal_id and date are both required on account.move and are stored
related on account.move.line.
Setting the required on the account.move.line allows to make it required in the
views or for the ORM but in practice it will be same as it's required on the
parent.
Making it required is a performance killer as it forces to specify a value for
the create which will retrigger an update on the parent move.
This means that adding a line with a date value on an account.move with already
10 lines will trigger 11 updates (date of the new line -> date of the move ->
date on the 10 existing lines), even if the value has not changed.
Diffstat (limited to 'addons/web_tour/static/src/xml/debug_manager.xml')
0 files changed, 0 insertions, 0 deletions
