summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml
diff options
context:
space:
mode:
authorDamien Bouvy <dbo@odoo.com>2019-07-16 08:29:03 +0000
committerDamien Bouvy <dbo@odoo.com>2019-07-17 05:12:39 +0000
commitd629f90eb57ac59fb5abcb745bbf18758f08abf8 (patch)
tree2cfec33dda3f4b9b0e96deaa09ba98ca56be54bc /addons/web/static/src/xml
parent81a2ad4e05ad1f6018969de56911fcd98ae2f07b (diff)
[IMP] sale_management: no client reload when adding optional product
Purpose ======= Avoid a complete reload of the web client when adding a optional product, which loses searches, breadcrumb, etc. This is achieved by adding a non-stored 'is_present' computed field which is computed depending on the presence of a SO line linked to the option line - that way its is dynamically adapted when the option is added to the SO. Since we wanted a clear feedback when the option was added to the quote, green colouring and the disappearance of the 'add to quote' button have been added. Note that this field *cannot* be stored - since the line_id field on the option bypasses the ORM (`set null` for the on_delete attribute), it would not recompute properly upon deletion of the linked SO line. Task#1950410 closes odoo/odoo#34929 Signed-off-by: Damien Bouvy (dbo) <dbo@odoo.com>
Diffstat (limited to 'addons/web/static/src/xml')
0 files changed, 0 insertions, 0 deletions