summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml
diff options
context:
space:
mode:
authorGéry Debongnie <ged@odoo.com>2017-05-19 20:58:16 +0200
committerGéry Debongnie <ged@odoo.com>2017-05-22 11:29:35 +0200
commited603399f9e03c98c488d53ff2ea50399e651aa2 (patch)
tree9c8dbb6fb882fe48be31bfb94af99033e9a107c1 /addons/web/static/src/xml
parent8b94bf8b28ea43c5d49fc058f6f496dc90c47fe5 (diff)
[FIX] mrp: always use sequence on 'unbuild' creation
The mrp.unbuild model creates a name based on a sequence if no name is given in the value dictionary. This was fine before the new views, because the field name (in the form view) was marked readonly, so the value 'New' was not actually sent to the server. However, this was changed with the new views: readonly fields are always sent on create/write operations, if they have been modified. This is a problem for the mrp.unbuild model, because this means that each new record as effectively the same name: 'New'. So, we simply always use the sequence-based names in the create operation, when the name is 'New', instead of the value given as parameter.
Diffstat (limited to 'addons/web/static/src/xml')
0 files changed, 0 insertions, 0 deletions