From 668193fd78c60234b6af4c9f6d4213d19da18c4b Mon Sep 17 00:00:00 2001 From: Prakash Prajapati Date: Wed, 5 Jun 2019 10:29:26 +0000 Subject: [PATCH 01/10] [IMP] project, hr_timesheet: set optional field to simplify the tree view Purpose of the commit is to set the new attribute OPTIONAL = SHOW/Hide on tree view so the user can easily hide/show the optional fields on the tree view. task-1997453 Closes: #33888 --- addons/hr_timesheet/views/project_views.xml | 8 +++----- addons/project/views/project_views.xml | 12 +++++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/addons/hr_timesheet/views/project_views.xml b/addons/hr_timesheet/views/project_views.xml index d9a205f8c4e..b34d5b6e037 100644 --- a/addons/hr_timesheet/views/project_views.xml +++ b/addons/hr_timesheet/views/project_views.xml @@ -148,13 +148,11 @@ - - + + + - - - diff --git a/addons/project/views/project_views.xml b/addons/project/views/project_views.xml index 725cffbbb71..f9d2d7e2529 100644 --- a/addons/project/views/project_views.xml +++ b/addons/project/views/project_views.xml @@ -631,11 +631,13 @@ - - - - - + + + + + + + From 67ad4632a1910198b42c212799a2b8cce54148f1 Mon Sep 17 00:00:00 2001 From: Prakash Prajapati Date: Wed, 5 Jun 2019 10:31:22 +0000 Subject: [PATCH 02/10] [IMP] mrp: set optional field to simplify the tree view Purpose of the commit is to set the new attribute OPTIONAL = SHOW/Hide on tree view so the user can easily hide/show the optional fields on the tree view. Update string date_start_wo field from mrp.production model. task-1997453 Closes: #33888 --- addons/mrp/models/mrp_production.py | 2 +- addons/mrp/views/mrp_bom_views.xml | 13 +++++++------ addons/mrp/views/mrp_production_views.xml | 21 ++++++++++++--------- 3 files changed, 20 insertions(+), 16 deletions(-) diff --git a/addons/mrp/models/mrp_production.py b/addons/mrp/models/mrp_production.py index 5131ad30b2d..930ce953948 100644 --- a/addons/mrp/models/mrp_production.py +++ b/addons/mrp/models/mrp_production.py @@ -106,7 +106,7 @@ class MrpProduction(models.Model): date_start = fields.Datetime('Start Date', copy=False, index=True, readonly=True) date_finished = fields.Datetime('End Date', copy=False, index=True, readonly=True) date_start_wo = fields.Datetime( - 'Planning Start Date', copy=False, readonly=True, + 'Planned Start Date', copy=False, readonly=True, states={'draft': [('readonly', False)], 'confirmed': [('readonly', False)]}, help="The work orders will be planned based on the availability of the work centers starting from " "this date. If emtpy, the work orders are planned as soon as possible.") diff --git a/addons/mrp/views/mrp_bom_views.xml b/addons/mrp/views/mrp_bom_views.xml index ef1d696ab5c..6a66e7f82e6 100644 --- a/addons/mrp/views/mrp_bom_views.xml +++ b/addons/mrp/views/mrp_bom_views.xml @@ -114,12 +114,13 @@ - - - - - - + + + + + + + diff --git a/addons/mrp/views/mrp_production_views.xml b/addons/mrp/views/mrp_production_views.xml index 507aa9ab1e1..2324f76389d 100644 --- a/addons/mrp/views/mrp_production_views.xml +++ b/addons/mrp/views/mrp_production_views.xml @@ -9,15 +9,18 @@ - - - - - - - - - + + + + + + + + + + + + From d5ffe890587d73c5079ee71087a08344e82b643b Mon Sep 17 00:00:00 2001 From: Prakash Prajapati Date: Wed, 5 Jun 2019 10:39:04 +0000 Subject: [PATCH 03/10] [IMP] repair: set optional field to simplify the tree view Purpose of the commit is to set the new attribute OPTIONAL = SHOW/Hide on tree view so the user can easily hide/show the optional fields on the tree view. task-1997453 Closes: #33888 --- addons/repair/views/repair_views.xml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/addons/repair/views/repair_views.xml b/addons/repair/views/repair_views.xml index abbf31fefc4..cecd336973a 100644 --- a/addons/repair/views/repair_views.xml +++ b/addons/repair/views/repair_views.xml @@ -8,12 +8,15 @@ - - - - - - + + + + + + + + + From 5f6c698a75fff9a5d35df3e8591d1387a0ac0193 Mon Sep 17 00:00:00 2001 From: Prakash Prajapati Date: Wed, 5 Jun 2019 09:56:23 +0000 Subject: [PATCH 04/10] [IMP] base: set optional field to simplify the tree view Purpose of the commit is to set the new attribute OPTIONAL = SHOW/Hide on tree view so the user can easily hide/show the optional fields on the tree view. task-1997453 Closes: #33888 --- odoo/addons/base/views/res_partner_views.xml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/odoo/addons/base/views/res_partner_views.xml b/odoo/addons/base/views/res_partner_views.xml index 5a93c801e9d..c6b748463fb 100644 --- a/odoo/addons/base/views/res_partner_views.xml +++ b/odoo/addons/base/views/res_partner_views.xml @@ -46,12 +46,14 @@ - - + + + + + - From fd5e297707d6c42de620cc7064e7d8961d87dfc3 Mon Sep 17 00:00:00 2001 From: Prakash Prajapati Date: Wed, 5 Jun 2019 10:09:23 +0000 Subject: [PATCH 05/10] [IMP] product: set optional field to simplify the tree view Purpose of the commit is to set the new attribute OPTIONAL = SHOW/Hide on tree view so the user can easily hide/show the optional fields on the tree view. task-1997453 Closes: #33888 --- addons/product/views/product_template_views.xml | 13 +++++++------ addons/product/views/product_views.xml | 14 ++++++++------ 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/addons/product/views/product_template_views.xml b/addons/product/views/product_template_views.xml index ea7ce47ee30..1aadcfbd5d0 100644 --- a/addons/product/views/product_template_views.xml +++ b/addons/product/views/product_template_views.xml @@ -6,13 +6,14 @@ - + + - - - - - + + + + + diff --git a/addons/product/views/product_views.xml b/addons/product/views/product_views.xml index bfc4e29995a..fe533e325bf 100644 --- a/addons/product/views/product_views.xml +++ b/addons/product/views/product_views.xml @@ -347,15 +347,17 @@ - + + - - - + + + + + - - + From e0389c0f1525da7c2933247f5dd88040c081a666 Mon Sep 17 00:00:00 2001 From: Prakash Prajapati Date: Wed, 5 Jun 2019 10:36:13 +0000 Subject: [PATCH 06/10] [IMP] purchase(_requisition): set optional field to simplify the tree view Purpose of the commit is to set the new attribute OPTIONAL = SHOW/Hide on tree view so the user can easily hide/show the optional fields on the tree view. task-1997453 Closes #33888 --- addons/purchase/views/purchase_views.xml | 22 ++++++++++--------- .../views/purchase_requisition_views.xml | 13 ++++++----- 2 files changed, 19 insertions(+), 16 deletions(-) diff --git a/addons/purchase/views/purchase_views.xml b/addons/purchase/views/purchase_views.xml index 3c5cc0860ae..4db8dab2043 100644 --- a/addons/purchase/views/purchase_views.xml +++ b/addons/purchase/views/purchase_views.xml @@ -375,6 +375,7 @@ + @@ -454,19 +455,20 @@ + - - + + - - - - - - + + + + + + - - + + diff --git a/addons/purchase_requisition/views/purchase_requisition_views.xml b/addons/purchase_requisition/views/purchase_requisition_views.xml index 06a9b5ea5e1..0308949a4bb 100644 --- a/addons/purchase_requisition/views/purchase_requisition_views.xml +++ b/addons/purchase_requisition/views/purchase_requisition_views.xml @@ -206,12 +206,13 @@ - - - - - - + + + + + + + From cb9e69ce1a2781e003e23c3500bae5a4a1dedae0 Mon Sep 17 00:00:00 2001 From: Prakash Prajapati Date: Wed, 5 Jun 2019 09:57:59 +0000 Subject: [PATCH 07/10] [IMP] crm(_*): set optional field to simplify the tree view * = website_crm_partner_assign Purpose of the commit is to set the new attribute OPTIONAL = SHOW/Hide on tree view so the user can easily hide/show the optional fields on the tree view. task-1997453 Closes: #33888 --- addons/crm/views/crm_lead_views.xml | 50 +++++++++++-------- .../views/crm_lead_views.xml | 6 +-- .../views/res_partner_views.xml | 6 +-- 3 files changed, 36 insertions(+), 26 deletions(-) diff --git a/addons/crm/views/crm_lead_views.xml b/addons/crm/views/crm_lead_views.xml index db526541ae7..6734bdc4bf6 100644 --- a/addons/crm/views/crm_lead_views.xml +++ b/addons/crm/views/crm_lead_views.xml @@ -184,22 +184,27 @@ - + - - - - - - + + + + + + + - + + + + + @@ -686,26 +691,31 @@ - + - - - - + + + + + + + + - - - - - + + + + + - - + + + diff --git a/addons/website_crm_partner_assign/views/crm_lead_views.xml b/addons/website_crm_partner_assign/views/crm_lead_views.xml index 8d07457cfa8..846c5a94bff 100644 --- a/addons/website_crm_partner_assign/views/crm_lead_views.xml +++ b/addons/website_crm_partner_assign/views/crm_lead_views.xml @@ -37,8 +37,8 @@ crm.lead - - + + @@ -99,7 +99,7 @@ - + diff --git a/addons/website_crm_partner_assign/views/res_partner_views.xml b/addons/website_crm_partner_assign/views/res_partner_views.xml index fc5dcbce76d..dba9d112162 100644 --- a/addons/website_crm_partner_assign/views/res_partner_views.xml +++ b/addons/website_crm_partner_assign/views/res_partner_views.xml @@ -93,9 +93,9 @@ - - - + + + From 317802d69e6236a43b2249b38d2f352813644f20 Mon Sep 17 00:00:00 2001 From: Prakash Prajapati Date: Wed, 5 Jun 2019 10:25:54 +0000 Subject: [PATCH 08/10] [IMP] analytic, account: set optional field to simplify the tree view Purpose of the commit is to set the new attribute OPTIONAL = SHOW/Hide on tree view so the user can easily hide/show the optional fields on the tree view. task-1997453 Closes: #33888 --- .../account/views/account_analytic_view.xml | 7 ++- addons/account/views/account_move_views.xml | 49 ++++++++++--------- .../analytic/views/analytic_account_views.xml | 11 +++-- addons/membership/views/partner_views.xml | 4 +- addons/sale/views/sale_views.xml | 11 +++++ 5 files changed, 50 insertions(+), 32 deletions(-) diff --git a/addons/account/views/account_analytic_view.xml b/addons/account/views/account_analytic_view.xml index 7f8164329b7..3c13b0be4d7 100644 --- a/addons/account/views/account_analytic_view.xml +++ b/addons/account/views/account_analytic_view.xml @@ -30,8 +30,11 @@ - - + + + + + diff --git a/addons/account/views/account_move_views.xml b/addons/account/views/account_move_views.xml index 83f79b1b292..0ea26ac6708 100644 --- a/addons/account/views/account_move_views.xml +++ b/addons/account/views/account_move_views.xml @@ -131,24 +131,24 @@ - + - - + + - + - + - + - + @@ -337,10 +337,10 @@ - - + + - + @@ -352,25 +352,26 @@ account.invoice.tree account.move - + + - - - - - - - - - - - + + + + + + + + + + + - - + + diff --git a/addons/analytic/views/analytic_account_views.xml b/addons/analytic/views/analytic_account_views.xml index 8ae4c546a86..8505e72cefa 100644 --- a/addons/analytic/views/analytic_account_views.xml +++ b/addons/analytic/views/analytic_account_views.xml @@ -97,13 +97,16 @@ account.analytic.line - + - - - + + + + + + diff --git a/addons/membership/views/partner_views.xml b/addons/membership/views/partner_views.xml index f44d3ffa14e..cd4feefb6d9 100644 --- a/addons/membership/views/partner_views.xml +++ b/addons/membership/views/partner_views.xml @@ -91,8 +91,8 @@ - - + + diff --git a/addons/sale/views/sale_views.xml b/addons/sale/views/sale_views.xml index 1a75bd33c62..668e3a857fc 100644 --- a/addons/sale/views/sale_views.xml +++ b/addons/sale/views/sale_views.xml @@ -1082,6 +1082,17 @@ + + account.move.tree.inherit.sale + account.move + + + + + + + + Account Invoice From 16db6d8fd075717e3f6c5bfdbd8c38591468ae38 Mon Sep 17 00:00:00 2001 From: Prakash Prajapati Date: Wed, 5 Jun 2019 10:45:10 +0000 Subject: [PATCH 09/10] [IMP] stock(_*): set optional field to simplify the tree view * = stock_account, stock_picking_batch, stock_product_expiry, delivery Purpose of the commit is to set the new attribute OPTIONAL = SHOW/Hide on tree view so the user can easily hide/show the optional fields on the tree view. Update string date field from incoming products tree view. Update string virtual_available field from product tree view. task-1997453 Closes #33888 --- addons/delivery/views/delivery_view.xml | 14 +++++++++++++ .../views/production_lot_views.xml | 13 ++++++++++++ addons/stock/views/product_views.xml | 8 ++++---- addons/stock/views/stock_inventory_views.xml | 2 ++ addons/stock/views/stock_move_views.xml | 6 +++--- addons/stock/views/stock_picking_views.xml | 20 ++++++++++--------- .../views/stock_production_lot_views.xml | 4 ++-- addons/stock/views/stock_quant_views.xml | 4 ++-- .../views/stock_account_views.xml | 11 ++++++++++ .../views/stock_picking_batch_views.xml | 4 ++-- 10 files changed, 64 insertions(+), 22 deletions(-) diff --git a/addons/delivery/views/delivery_view.xml b/addons/delivery/views/delivery_view.xml index 21b7f8dd919..5a451302f91 100644 --- a/addons/delivery/views/delivery_view.xml +++ b/addons/delivery/views/delivery_view.xml @@ -385,4 +385,18 @@ form new + + + stock.picking.delivery.tree.inherit.delivery + stock.picking + + + + + + + + + + diff --git a/addons/product_expiry/views/production_lot_views.xml b/addons/product_expiry/views/production_lot_views.xml index 0465a9b2269..3fb7e3981c2 100644 --- a/addons/product_expiry/views/production_lot_views.xml +++ b/addons/product_expiry/views/production_lot_views.xml @@ -35,4 +35,17 @@ + + stock.production.lot.tree.inherit.product.expiry + stock.production.lot + + + + + + + + + + diff --git a/addons/stock/views/product_views.xml b/addons/stock/views/product_views.xml index 660897759fc..ed326116f38 100644 --- a/addons/stock/views/product_views.xml +++ b/addons/stock/views/product_views.xml @@ -41,8 +41,8 @@ type != 'product' or virtual_available>=0 - - + + @@ -57,8 +57,8 @@ type != 'product' or virtual_available>=0 - - + + diff --git a/addons/stock/views/stock_inventory_views.xml b/addons/stock/views/stock_inventory_views.xml index caeee8a2b09..259f1803d63 100644 --- a/addons/stock/views/stock_inventory_views.xml +++ b/addons/stock/views/stock_inventory_views.xml @@ -114,6 +114,8 @@ + + diff --git a/addons/stock/views/stock_move_views.xml b/addons/stock/views/stock_move_views.xml index 4a9ac214581..be42657afff 100644 --- a/addons/stock/views/stock_move_views.xml +++ b/addons/stock/views/stock_move_views.xml @@ -409,17 +409,17 @@ - + - + - + diff --git a/addons/stock/views/stock_picking_views.xml b/addons/stock/views/stock_picking_views.xml index 612e8a1a568..96b067e1cfb 100644 --- a/addons/stock/views/stock_picking_views.xml +++ b/addons/stock/views/stock_picking_views.xml @@ -179,17 +179,19 @@ - - - + + + + - - + + - - - - + + + + + diff --git a/addons/stock/views/stock_production_lot_views.xml b/addons/stock/views/stock_production_lot_views.xml index e3652942b88..710592d2ce0 100644 --- a/addons/stock/views/stock_production_lot_views.xml +++ b/addons/stock/views/stock_production_lot_views.xml @@ -53,9 +53,9 @@ - + - + diff --git a/addons/stock/views/stock_quant_views.xml b/addons/stock/views/stock_quant_views.xml index e3dc4271566..2730d0b15b9 100644 --- a/addons/stock/views/stock_quant_views.xml +++ b/addons/stock/views/stock_quant_views.xml @@ -98,13 +98,13 @@ - + - + diff --git a/addons/stock_account/views/stock_account_views.xml b/addons/stock_account/views/stock_account_views.xml index 37fc321461a..50a59a11bb6 100644 --- a/addons/stock_account/views/stock_account_views.xml +++ b/addons/stock_account/views/stock_account_views.xml @@ -30,6 +30,17 @@ + + stock.inventory.tree.inherit.stock.account + stock.inventory + + + + + + + + stock.location.form.inherit stock.location diff --git a/addons/stock_picking_batch/views/stock_picking_batch_views.xml b/addons/stock_picking_batch/views/stock_picking_batch_views.xml index 5f1a636cd54..12d9c7a3fea 100644 --- a/addons/stock_picking_batch/views/stock_picking_batch_views.xml +++ b/addons/stock_picking_batch/views/stock_picking_batch_views.xml @@ -132,8 +132,8 @@ stock.picking - - + + From f8814f2a799f5e16b9756d94726d0ef26ebdcfbf Mon Sep 17 00:00:00 2001 From: Prakash Prajapati Date: Wed, 5 Jun 2019 10:39:55 +0000 Subject: [PATCH 10/10] [IMP] sale(_*): set optional field to simplify the tree view * = sale_crm, sale_stock, website_sale Purpose of the commit is to set the new attribute OPTIONAL = SHOW/Hide on tree view so the user can easily hide/show the optional fields on the tree view. task-1997453 Closes: #33888 --- .../product/views/product_template_views.xml | 1 + addons/sale/views/sale_views.xml | 21 +++++++++++------- addons/sale_crm/views/sale_order_views.xml | 22 +++++++++++++++++++ addons/sale_stock/views/sale_order_views.xml | 22 +++++++++++++++++++ addons/website_sale/views/product_views.xml | 4 ++-- .../website_sale/views/sale_order_views.xml | 22 +++++++++++++++++++ 6 files changed, 82 insertions(+), 10 deletions(-) diff --git a/addons/product/views/product_template_views.xml b/addons/product/views/product_template_views.xml index 1aadcfbd5d0..1540b133fe2 100644 --- a/addons/product/views/product_template_views.xml +++ b/addons/product/views/product_template_views.xml @@ -9,6 +9,7 @@ + diff --git a/addons/sale/views/sale_views.xml b/addons/sale/views/sale_views.xml index 668e3a857fc..e0bc1ef3632 100644 --- a/addons/sale/views/sale_views.xml +++ b/addons/sale/views/sale_views.xml @@ -187,14 +187,16 @@ - + - - + + + + - + @@ -208,14 +210,17 @@ - + - - + + + + - + + diff --git a/addons/sale_crm/views/sale_order_views.xml b/addons/sale_crm/views/sale_order_views.xml index 61318da066b..2428a1bb037 100644 --- a/addons/sale_crm/views/sale_order_views.xml +++ b/addons/sale_crm/views/sale_order_views.xml @@ -51,6 +51,28 @@ + + sale.order.tree.inherit.sale.crm + sale.order + + + + + + + + + + sale.order.tree.inherit.sale.crm + sale.order + + + + + + + + + + sale.order.tree.inherit.sale.stock + sale.order + + + + + + + + + + sale.order.tree.inherit.sale.stock + sale.order + + + + + + + + sale.order.line.tree.sale.stock.location diff --git a/addons/website_sale/views/product_views.xml b/addons/website_sale/views/product_views.xml index 76b8e5f3066..25a1aa61181 100644 --- a/addons/website_sale/views/product_views.xml +++ b/addons/website_sale/views/product_views.xml @@ -29,7 +29,7 @@ - + @@ -41,7 +41,7 @@ - + diff --git a/addons/website_sale/views/sale_order_views.xml b/addons/website_sale/views/sale_order_views.xml index c1f72eac0ec..be648ef240f 100644 --- a/addons/website_sale/views/sale_order_views.xml +++ b/addons/website_sale/views/sale_order_views.xml @@ -270,4 +270,26 @@ + + + sale.order.tree.inherit.website.sale + sale.order + + + + + + + + + + sale.order.tree.inherit.website.sale + sale.order + + + + + + +