summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/graph
diff options
context:
space:
mode:
authorNans Lefebvre <len@odoo.com>2019-08-27 06:42:16 +0000
committerNans Lefebvre <len@odoo.com>2019-08-27 06:42:43 +0000
commit3d6e91789968719c726420554d25b25f81282a55 (patch)
tree167e841a8e7ec2fd53de91e8686502144f670da3 /addons/web/static/src/js/views/graph
parent21ae503cf401afe4dddae6225fd346f89a210aeb (diff)
[FIX] stock: error at application re-install
Fine-tuning of 1da058f8edd, for the same use-case. The _valid_barcode method is here to bypass the barcode_company_uniq constraint. The constraint is put on barcode/company couples; however if checked without a given 'company_id' in the values, which ends up as False, then the check is actually not the correct one: the company_id is going to be filled later by the default_get. Instead we use the value given by the default_get, consistently with the create. The same error could affect _create_missing_locations, since it gives an explicit value to company_id that was not passed in values. We give it to make sure that the company is consistent there to. opw 2058888 closes odoo/odoo#36102 Signed-off-by: Nans Lefebvre (len) <len@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/views/graph')
0 files changed, 0 insertions, 0 deletions