summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/xml/editor.xml
diff options
context:
space:
mode:
authorjem-odoo <jem@openerp.com>2018-10-23 08:19:45 +0000
committerjem-odoo <jem@openerp.com>2018-11-19 08:29:08 +0000
commit255816c03539147a930d79f44476c08e10832714 (patch)
treeb4bb23ca4d640ebfdb4dc1e3cc2e33c54292552e /addons/web_editor/static/src/xml/editor.xml
parenta2c5b44df8c538b0a43b86502849e72c55c2d2ff (diff)
[IMP] sale: reflection refund of invoices from SO in all cases
When creating a credit note from an invoice coming from a Sales Order, only the "modify" mode links the refund lines with the sale lines. This link make the invoiced quantity decreased on the sale line, which is a willing behavior. The 2 other modes ("cancel", and "create") does not do that link. As the behavior of the "modify" mode was introduced as bugfix years ago, it was time to clean that ! This commit - extends the behavior to every mode: all refund lines are now linked to their origin sale lines, so the invoiced quantities are correctly applied - clean the bricolage used to determine the invoice of the sales order (`_get_invoiced` method) by avoiding searching on the document source field. - provides some tests. The old one was moved and extended. Task-1859308 closes odoo/odoo#28471
Diffstat (limited to 'addons/web_editor/static/src/xml/editor.xml')
0 files changed, 0 insertions, 0 deletions