summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorYannick Tivisse <yti@odoo.com>2017-06-21 10:24:02 +0200
committerYannick Tivisse <yti@odoo.com>2017-06-21 15:55:27 +0200
commitcc8debe1e86dd1b50cc9f536481796ee6ffafcf6 (patch)
treeb362ef8ba60d839f24fc55e8b5fda0efacf36e29 /addons/web/static/src/js/views/basic/basic_controller.js
parent12a06dcfa678d5317d0a1e62c85e5a9508974aa2 (diff)
[FIX] sale_coupon: Don't update automatic rewards on the fly
Purpose ======= Currently we are updating the coupon rewards on the fly when creating/modifying/deleting a sales order line. To avoid multiple searches on res_partners and product to know whether the customer/product is valid on the sale coupon program, we store the applicable customers and products on the program according to the domain defined on it. This brings 2 issues: - The customers/products stored on the program are not updated (Was the original spec) - The checks are numerous and maybe overkill for the given results Specification ============= - Don't recompute the reward lines on SO modifications. Add a button to compute the line by hand and make an automatic compute on the SO validation or on the page shop/payment. - When recomputing the reward lines, make a search on the res_partners and products instead. Now that the action is not triggered so often we can afford to make a search. - Don't use the fields rule_partners_domain and rule_products_domain. This should be removed in master. - The field is_public_included is useless now. And we decided to make the coupon available for all the partners if they fit the domain on the program.
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions