summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/models/thread_view/thread_view.js
diff options
context:
space:
mode:
authornans <nans.lefebvre@acsone.eu>2020-10-22 10:23:27 +0000
committernans <nans.lefebvre@acsone.eu>2020-11-02 11:28:09 +0000
commit49caedfb7d9349eb0a3df7278c7548c5683352b2 (patch)
treef4b63743cf452e01331cabf3dec5bc665fbf7d3b /addons/mail/static/src/models/thread_view/thread_view.js
parente2e1ecd0de467cb97748092554c5abc3b0c9f993 (diff)
[IMP] product: extract pricelist item price computation into its model
The pricelist item model (product.pricelist.item) has a compute_price field, and the necessary fields to be able to compute the price of a product. However, these fields are never used into the model itself; the parent model (product.pricelist) actually makes the computation, embedded into _compute_price_rule. Because of this, it's not possible to inherit pricelist items. It's also a better design, on object principles. Last, it lighten a method that is still 130+ lines long. opw 2368733 X-original-commit: 9cd0bf740706a64e49599111304a6fb5ec6d7287
Diffstat (limited to 'addons/mail/static/src/models/thread_view/thread_view.js')
0 files changed, 0 insertions, 0 deletions