From 900e642af02dd7d52b91965708b805d6d0ffb33e Mon Sep 17 00:00:00 2001 From: mehjabin Date: Sun, 22 Jan 2023 18:24:40 +0000 Subject: [PATCH] [FIX] purchase_stock: remove duplicate field before this commit, the field incoterm_id is defined twice in purchase.order model, i.e., in purchase and purchase_stock modules after this commit incoterm_id field is removed from purchase_stock module closes odoo/odoo#123602 Signed-off-by: William Henrotin (whe) --- addons/purchase_stock/models/purchase.py | 1 - 1 file changed, 1 deletion(-) diff --git a/addons/purchase_stock/models/purchase.py b/addons/purchase_stock/models/purchase.py index 4aa5f7cea6f..b9cb60d66c9 100644 --- a/addons/purchase_stock/models/purchase.py +++ b/addons/purchase_stock/models/purchase.py @@ -17,7 +17,6 @@ class PurchaseOrder(models.Model): def _default_picking_type(self): return self._get_picking_type(self.env.context.get('company_id') or self.env.company.id) - incoterm_id = fields.Many2one('account.incoterms', 'Incoterm', states={'done': [('readonly', True)]}, help="International Commercial Terms are a series of predefined commercial terms used in international transactions.") incoterm_location = fields.Char(string='Incoterm Location', states={'done': [('readonly', True)]}) incoming_picking_count = fields.Integer("Incoming Shipment count", compute='_compute_incoming_picking_count') picking_ids = fields.Many2many('stock.picking', compute='_compute_picking_ids', string='Receptions', copy=False, store=True)