diff options
| author | Nicolas Martinelli <nim@odoo.com> | 2015-07-31 16:18:03 +0200 |
|---|---|---|
| committer | Nicolas Martinelli <nim@odoo.com> | 2015-08-03 09:04:43 +0200 |
| commit | 9b1ab76eb29eb6297425a24a4a8d8beb86e5372f (patch) | |
| tree | 1c9c1ca9ff7954acd0c46776692cd8a5354bc3cc /addons/analytic_user_function/analytic_user_function.py | |
| parent | a6831546c1c48939fef544406f9a007224ee8eab (diff) | |
[IMP] purchase: invoice state of PO line calculated from invoice state of move
Before this fix, a PO line was set as invoiced if all associated invoices were
validated. This is an issue if the invoice_method of a PO is set on 'picking',
and that only a partial quantity is received and invoiced. Indeed, in this case
it was never possible to meet the condition, and the PO could not be set to
'done'.
After this fix, the PO line invoice state is calculated from the invoice state
of the related moves, if the invoice_method of a PO is set on 'picking'. This
is more logical, and moreover this makes possible to set a PO line as invoiced
as soon as all the related moves are done or cancelled.
opw-644399
Diffstat (limited to 'addons/analytic_user_function/analytic_user_function.py')
0 files changed, 0 insertions, 0 deletions
