From d153e950e7b657d3a24a64b8d9ffcc7b4affa404 Mon Sep 17 00:00:00 2001 From: Jaydeep Barot Date: Tue, 11 Dec 2018 09:11:48 +0000 Subject: [PATCH] [IMP] account, purchase, sale, repair: sync tree & form readonly views This commit synchronises the editable tree view and the form readonly view of the following objects: - account.invoice.line - purchase.order.line - sale.order.line - repair.line Task-1912608 Closes : #29566 Signed-off-by: Thibault Delavallee (tde) --- addons/account/views/account_invoice_view.xml | 7 +-- addons/purchase/models/purchase.py | 2 +- addons/purchase/views/purchase_views.xml | 5 +- addons/repair/views/repair_views.xml | 55 +++++++++---------- addons/sale/views/sale_views.xml | 19 +++---- addons/sale_stock/views/sale_order_views.xml | 6 +- 6 files changed, 44 insertions(+), 50 deletions(-) diff --git a/addons/account/views/account_invoice_view.xml b/addons/account/views/account_invoice_view.xml index 988c7d14e22..d376e45cbe1 100644 --- a/addons/account/views/account_invoice_view.xml +++ b/addons/account/views/account_invoice_view.xml @@ -95,14 +95,13 @@ + - - + - - + diff --git a/addons/purchase/models/purchase.py b/addons/purchase/models/purchase.py index 773d8962d49..4702fc85c29 100644 --- a/addons/purchase/models/purchase.py +++ b/addons/purchase/models/purchase.py @@ -434,7 +434,7 @@ class PurchaseOrderLine(models.Model): product_uom_qty = fields.Float(string='Total Quantity', compute='_compute_product_uom_qty', store=True) date_planned = fields.Datetime(string='Scheduled Date', required=True, index=True) taxes_id = fields.Many2many('account.tax', string='Taxes', domain=['|', ('active', '=', False), ('active', '=', True)]) - product_uom = fields.Many2one('uom.uom', string='Product Unit of Measure', required=True) + product_uom = fields.Many2one('uom.uom', string='Unit of Measure', required=True) product_id = fields.Many2one('product.product', string='Product', domain=[('purchase_ok', '=', True)], change_default=True, required=True) product_type = fields.Selection(related='product_id.type', readonly=True) price_unit = fields.Float(string='Unit Price', required=True, digits=dp.get_precision('Product Price')) diff --git a/addons/purchase/views/purchase_views.xml b/addons/purchase/views/purchase_views.xml index 8c1e37a7c3f..33c85b5eb83 100644 --- a/addons/purchase/views/purchase_views.xml +++ b/addons/purchase/views/purchase_views.xml @@ -218,10 +218,13 @@ + + + + - diff --git a/addons/repair/views/repair_views.xml b/addons/repair/views/repair_views.xml index 3a6b14c9832..e72c8867cf4 100644 --- a/addons/repair/views/repair_views.xml +++ b/addons/repair/views/repair_views.xml @@ -75,36 +75,31 @@
- - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + +
diff --git a/addons/sale/views/sale_views.xml b/addons/sale/views/sale_views.xml index 51491aac778..1a93bb16c04 100644 --- a/addons/sale/views/sale_views.xml +++ b/addons/sale/views/sale_views.xml @@ -337,6 +337,8 @@ +