Issue 11515

Title
Unable to duplicate invoice if using a secondary unit.
Priority
bug
Status
chatting
Nosy list
hodeinavarro, pokoli
Assigned to
Keywords
backport, easy

Created on 2022-05-25.10:08:31 by hodeinavarro, last changed 1 month ago by pokoli.

Messages

Author: [hidden] (pokoli) Tryton committer Tryton translator
Date: 2022-05-25.10:12:39

As the origin is cleared, we should clear the secondary unit also.

Author: [hidden] (hodeinavarro)
Date: 2022-05-25.10:08:31

Invoice secondary_unit attribute contains a domain that evaluates the secondary_unit category vs a functional field that on account_invoice_secondary_unit is set to None by default.

The functional field is "filled" by sale_secondary_unit which uses the invoice origin to calculate the category, but the origin is cleared when duplicating, making the secondary_unit category invalid since the functional field is None

History
Date User Action Args
2022-05-25 10:12:40pokolisetkeyword: + easy, backport
messages: + msg76775
nosy: + pokoli
status: unread -> chatting
2022-05-25 10:08:31hodeinavarrocreate

Showing 10 items. Show all history (warning: this could be VERY long)