diff --git a/modules/purchase_trade/coffee.py b/modules/purchase_trade/coffee.py index 97f2de8..48cf7fb 100644 --- a/modules/purchase_trade/coffee.py +++ b/modules/purchase_trade/coffee.py @@ -1110,6 +1110,18 @@ 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..3088db9 100755 --- a/modules/purchase_trade/view/purchase_line_form.xml +++ b/modules/purchase_trade/view/purchase_line_form.xml @@ -39,6 +39,19 @@ this repository contains the full copyright notices and license terms. -->