Unable to duplicate invoice if using a secondary unit.
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