summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_renderer.js
diff options
context:
space:
mode:
authorWilliam Henrotin <whe@odoo.com>2020-01-15 08:36:05 +0000
committerWilliam Henrotin <whe@odoo.com>2020-01-15 08:52:21 +0000
commit139f6b1f55f711d5710800c433123449a76f5844 (patch)
treefebc2e768df60ac0dbdf4b75ff43804701fb959e /addons/web/static/src/js/views/basic/basic_renderer.js
parent59a96739e09d8f1adb8baff6d96f976cb514820e (diff)
[FIX] purchase_mrp: return string instead or recordset
Commit e923058 aims to ensure the key 'created_purchase_line_id is returned only if the move as this field filled. The issue is due to the way python compare falsy object. a = b and c will return b (not False) if b is falsy will return c if neither b nor c are falsy. If move_raw_id passed in the method doesn't have created_purchase_line_id iterate_key = purchase.line.id() or 'created_purchase_line_id' = purchase.line.id() which is not correct as the method should return a string or False. closes odoo/odoo#43320 Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_renderer.js')
0 files changed, 0 insertions, 0 deletions