diff options
| author | jem-odoo <jem@openerp.com> | 2018-02-19 15:42:53 +0100 |
|---|---|---|
| committer | jem-odoo <jem@openerp.com> | 2018-02-21 16:59:39 +0100 |
| commit | cb53485d71771242b67a52c9e30bb35e23b81efa (patch) | |
| tree | 0b4049c6129f9fe64a2977eee722f67b7fb22758 /addons/mail/static/src/js/thread.js | |
| parent | 113385fdd7d7a98be249bf8396e3692ab5fe3d8e (diff) | |
[FIX] sale: reinvoice only vendor bills
When validating a vendor bill, we want the product
with expense policy set to be reinvoice on the open
sales order matching the analytic account of the invoice
line. Applying the same mecanism for customer invoice
does not make sense, as we might confirm a SO and validate
its invoice, we don't want a new SO line to appear (avoid
loop).
Unfortunately, since a long time, this is possible in Odoo,
and really make no sense. We should only take negative
analytic lines (coming from vendor bills and expense, not
the customer invoice) into account for adding SO line.
This commit correct this problem to avoid having
many null SO line created on customer invoice validation.
All test cases are correctly written, but there was no
check to prevent this mecanism to be apply on customer
invoice.
Diffstat (limited to 'addons/mail/static/src/js/thread.js')
0 files changed, 0 insertions, 0 deletions
