summaryrefslogtreecommitdiff
path: root/addons/website/static/src
diff options
context:
space:
mode:
authorDaniel Duque <daniel.duque@factorlibre.com>2020-10-28 10:38:01 +0000
committerRaphael Collet <rco@odoo.com>2020-11-02 13:20:16 +0000
commit7ff174ee3c6f6344c8afd7a8a723e370670de518 (patch)
tree541593e85e207eab4ae3fd51a9d243c019605dea /addons/website/static/src
parent3eaeb124eadd90704126a71723f48be646c3ddeb (diff)
[FIX] core: missing default values with inherits
Consider some model A that "_inherits" from model B, which itself "_inherits" from model C. Also consider a field F on model C, which is inherited by both models B and A. Now create a record from model A, with a given record for model C, no record for model B, and a default value for field F. This should create a record in A, connected to a new record in B, connected to the given record in C, and the default value should be ignored, as a record from C is given. Before this commit, the given record in C is modified with the default value for F. The default value is considered because no record is given for B, and that value is used to modify the given record in C. The fix consists in discarding default values by considering potential ancestor records when parent records are not given. closes odoo/odoo#61160 X-original-commit: b83dfaa2c9bcc6bc7f8df19ed0e442554816709b Signed-off-by: Raphael Collet (rco) <rco@openerp.com> Co-authored-by: Raphael Collet <rco@odoo.com>
Diffstat (limited to 'addons/website/static/src')
0 files changed, 0 insertions, 0 deletions