diff --git a/modules/purchase_trade/coffee.py b/modules/purchase_trade/coffee.py index e6e61c1..3a36c2b 100644 --- a/modules/purchase_trade/coffee.py +++ b/modules/purchase_trade/coffee.py @@ -1110,6 +1110,16 @@ class CoffeeLineMixin: coffee_defect_max = fields.Integer('Defects max') coffee_cup_score_min = fields.Numeric( 'Cup score min', digits=(5, 2)) + coffee_packing_count = fields.Integer('Packages') + coffee_packing_unit_weight = fields.Numeric( + 'Package weight', digits=(16, 5)) + coffee_packing_weight_unit = fields.Many2One( + 'product.uom', 'Package weight unit') + coffee_packing_description = fields.Char('Packing description') + coffee_market_reference = fields.Many2One( + 'price.price', 'Market reference') + coffee_market_price = fields.Numeric('Market price', digits=(16, 5)) + coffee_market_delta = fields.Numeric('Market delta', digits=(16, 5)) def _coffee_samples(self): return list(getattr(self, 'coffee_samples', None) or []) diff --git a/modules/purchase_trade/view/purchase_line_form.xml b/modules/purchase_trade/view/purchase_line_form.xml index d265d51..eecb7e0 100755 --- a/modules/purchase_trade/view/purchase_line_form.xml +++ b/modules/purchase_trade/view/purchase_line_form.xml @@ -30,6 +30,7 @@ this repository contains the full copyright notices and license terms. --> colspan="1" col="4" panel="card" icon="tryton-archive" xalign="0" yalign="0" col_widths="min-content,1fr,min-content,1fr"> +