diff options
| author | Prakash Prajapati <ppr@odoo.com> | 2020-06-16 13:00:28 +0000 |
|---|---|---|
| committer | Barad Mahendra <mba@openerp.com> | 2020-07-16 10:22:57 +0000 |
| commit | 696ea173d3f6cb1230444c34d6f19bc4519fda04 (patch) | |
| tree | 99710f90281a7785b60de498e03a30192757eca3 /addons/mail/static/src/models/thread_cache/thread_cache.js | |
| parent | 52b1b9c255251959d8d1515efa3f0165d8959361 (diff) | |
[IMP] sale: Apply discount on all SO lines onchage of first SO line
Purpose fo the task is to Allow changing a discount for the whole SO.
So in this commit, On a quotation, with "discount per line" option
enabled, if the user changes the discount on the first SO line, display
a pop-up requesting if they want to apply the change to all the lines
of the SO.
There is condition to open the confirmation dialog to change on all SO lines:
1. There should be 3 or more lines in SO
2. Happens only when changing the discount of the first SO line
3. The initial discount is the same on all lines
For Ex: Example : a SO with a discount of 10% on all 6 SO lines.
The user clicks the discount field on the first so line, changes to 20%.
A pop-up "apply this discount to all quotation lines"
-> if yes, apply 20% to all SO lines.
closes odoo/odoo#54262
Taskid: 2276759
Closes: #54262
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Diffstat (limited to 'addons/mail/static/src/models/thread_cache/thread_cache.js')
0 files changed, 0 insertions, 0 deletions
