From 71203e0aa28e358dfe432835557ea38bf1edae24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20Voet=20=28ryv=29?= Date: Tue, 12 Jan 2021 11:16:38 +0000 Subject: [PATCH] [REM] stock: remove unused fields of `stock.move` 3 fields were useless in `stock.move` (only one store): - `picking_partner_id` not used and we should use `partner_id` instead - `backorder_id` not used and no sense - `note` (store), not used and always empty. remove it. task-2424248 --- addons/stock/models/stock_move.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/addons/stock/models/stock_move.py b/addons/stock/models/stock_move.py index 39c31bbf3fd..1708ffa3b6d 100644 --- a/addons/stock/models/stock_move.py +++ b/addons/stock/models/stock_move.py @@ -94,8 +94,6 @@ class StockMove(models.Model): copy=False, help="Optional: previous stock move when chaining them") picking_id = fields.Many2one('stock.picking', 'Transfer', index=True, states={'done': [('readonly', True)]}, check_company=True) - picking_partner_id = fields.Many2one('res.partner', 'Transfer Destination Address', related='picking_id.partner_id', readonly=False) - note = fields.Text('Notes') state = fields.Selection([ ('draft', 'New'), ('cancel', 'Cancelled'), ('waiting', 'Waiting Another Move'), @@ -112,7 +110,6 @@ class StockMove(models.Model): price_unit = fields.Float( 'Unit Price', help="Technical field used to record the product cost set by the user during a picking confirmation (when costing " "method used is 'average price' or 'real'). Value given in company currency and in product uom.", copy=False) # as it's a technical field, we intentionally don't provide the digits attribute - backorder_id = fields.Many2one('stock.picking', 'Back Order of', related='picking_id.backorder_id', readonly=False) origin = fields.Char("Source Document") procure_method = fields.Selection([ ('make_to_stock', 'Default: Take From Stock'),