In B2B sales workflow, we need to provide to customers their own product code and name on the reports (invoice, packing,…)
Adding to tryton the management of customer product code and name at the template or variant level.
We should allowed to have many customer code on one product code (many2one).
We define 2 new one2many fields “product_customers” : one for the template and another one for the variant. Those fields are sequence_ordered, first item will be used as default value.
We add both fields on the customer tab of the product form.
We add a many2one field on the sale line to select the product customer code (with as default value the first customer product code found)