diff options
| author | Nicolas Martinelli <nim@odoo.com> | 2016-02-25 13:44:25 +0100 |
|---|---|---|
| committer | Nicolas Martinelli <nim@odoo.com> | 2016-02-25 15:46:09 +0100 |
| commit | 16f698f6be1e9d20b8232900a8990f5383875c8b (patch) | |
| tree | 92b8b529ab52360bb46c6793e8dabd0e592657c9 /addons/web_editor/static/src/js/transcoder.js | |
| parent | 67edccbc7f7169229c3dabfe13f9a334e0a27da9 (diff) | |
[FIX] sale_margin, delivery: margin at creation
The `purchase_price` is filled in automatically thanks to the onchange
method `product_id_change_margin`. However, when a SO is created
programatically, it is necessary to call manually the method in order to
fill in the field. This is not convenient since the module sale_margin
might not be installed, and crappy workaround (such as the use of
`hasattr`) are necessary.
To avoid this, this fix automatically computes the purchase price at
creation if no value is provided.
Diffstat (limited to 'addons/web_editor/static/src/js/transcoder.js')
0 files changed, 0 insertions, 0 deletions
