diff options
| author | Yannick Tivisse <yti@odoo.com> | 2018-06-12 16:27:59 +0200 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2018-06-12 17:26:30 +0200 |
| commit | ce1f1b69e75e8ab77083010a8487bfc35bbbb903 (patch) | |
| tree | 00a3c0525cb057dcb122943e8012916e5066fbed /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | da8d4b5b99e3c103ded6ba7d3b21c5e1ed247f34 (diff) | |
[IMP] purchase: Extract code from _compute_amount to allow inheritance
Purpose
=======
Currently the discount mechanism is not implemented in the purchase module.
This limitation is could be avoided if the _compute_amount arguments could
be overwritten.
While waiting the feature to be implemented in master, we simply introduce
a hook method to allow an easy inheritance of the argument values.
Closes #11235
PS: Also move compute methods under the fields definition to follow
the coding guidelines
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
