Skip to content

Add relates to sale and purchase lines from party and product

In order to display lines in a relate, we need to ensure that user can not add new lines to confirmed order.
Also from referential form, it is good to show the number of pending and done instead of just pending because it gives to the user the information that the party or the product has been already buy or sold.
And finally adding some Function field on the line is lighter than creating a new model that must be extended by all other modules (like secondary unit etc.).

Cf. https://discuss.tryton.org/t/purchase-sale-history-of-a-product/5550

Merge request reports

Loading