diff options
| author | Damien Bouvy <dbo@odoo.com> | 2019-09-27 17:36:08 +0000 |
|---|---|---|
| committer | Damien Bouvy <dbo@odoo.com> | 2019-09-30 13:34:36 +0000 |
| commit | b6b42ef73f4c517d9b7bc2da4909c13d7fe8f2c6 (patch) | |
| tree | f0223c5ec9504d696a5b663b7c02d7d94a21375a /addons | |
| parent | 652ebb96e5a9b8bedf0879691fc726e619d5de78 (diff) | |
[IMP] sale_*: multi-editable list views
closes odoo/odoo#37547
Signed-off-by: Damien Bouvy (dbo) <dbo@odoo.com>
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/product/views/product_template_views.xml | 16 | ||||
| -rw-r--r-- | addons/product/views/product_views.xml | 18 | ||||
| -rw-r--r-- | addons/sale/views/sale_views.xml | 14 |
3 files changed, 24 insertions, 24 deletions
diff --git a/addons/product/views/product_template_views.xml b/addons/product/views/product_template_views.xml index 058229ce51a..5633ea50dfd 100644 --- a/addons/product/views/product_template_views.xml +++ b/addons/product/views/product_template_views.xml @@ -4,17 +4,17 @@ <field name="name">product.template.product.tree</field> <field name="model">product.template</field> <field name="arch" type="xml"> - <tree string="Product"> + <tree string="Product" multi_edit="1"> <field name="sequence" widget="handle"/> - <field name="default_code" optional="show"/> - <field name="barcode" optional="hide"/> - <field name="name"/> - <field name="company_id" groups="base.group_multi_company" optional="hide"/> + <field name="default_code" optional="show" readonly="1"/> + <field name="barcode" optional="hide" readonly="1"/> + <field name="name" readonly="1"/> + <field name="company_id" groups="base.group_multi_company" optional="hide" readonly="1"/> <field name="list_price" string="Sales Price" optional="show"/> - <field name="standard_price" optional="show"/> + <field name="standard_price" optional="show" readonly="1"/> <field name="categ_id" optional="hide"/> - <field name="type" optional="hide"/> - <field name="uom_id" options="{'no_open': True, 'no_create': True}" groups="uom.group_uom" optional="show"/> + <field name="type" optional="hide" readonly="1"/> + <field name="uom_id" options="{'no_open': True, 'no_create': True}" groups="uom.group_uom" optional="show" readonly="1"/> <field name="active" invisible="1"/> <field name="activity_exception_decoration" widget="activity_exception"/> </tree> diff --git a/addons/product/views/product_views.xml b/addons/product/views/product_views.xml index 33c51a98d11..728451e496d 100644 --- a/addons/product/views/product_views.xml +++ b/addons/product/views/product_views.xml @@ -296,19 +296,19 @@ <field name="model">product.product</field> <field eval="7" name="priority"/> <field name="arch" type="xml"> - <tree string="Product Variants"> - <field name="default_code" optional="show"/> - <field name="barcode" optional="hide"/> - <field name="name"/> + <tree string="Product Variants" multi_edit="1"> + <field name="default_code" optional="show" readonly="1"/> + <field name="barcode" optional="hide" readonly="1"/> + <field name="name" readonly="1"/> <field name="product_template_attribute_value_ids" widget="many2many_tags" groups="product.group_product_variant" readonly="1"/> - <field name="company_id" groups="base.group_multi_company" optional="hide"/> + <field name="company_id" groups="base.group_multi_company" optional="hide" readonly="1"/> <field name="lst_price" optional="show" string="Sales Price"/> - <field name="standard_price" optional="show"/> + <field name="standard_price" optional="show" readonly="1"/> <field name="categ_id" optional="hide"/> - <field name="type" optional="hide"/> + <field name="type" optional="hide" readonly="1"/> <field name="price" invisible="not context.get('pricelist',False)"/> - <field name="uom_id" options="{'no_open': True, 'no_create': True}" groups="uom.group_uom" optional="show"/> - <field name="product_tmpl_id" invisible="1"/> + <field name="uom_id" options="{'no_open': True, 'no_create': True}" groups="uom.group_uom" optional="show" readonly="1"/> + <field name="product_tmpl_id" invisible="1" readonly="1"/> <field name="active" invisible="1"/> </tree> </field> diff --git a/addons/sale/views/sale_views.xml b/addons/sale/views/sale_views.xml index 8a6f1aaca64..2f900e6e7cc 100644 --- a/addons/sale/views/sale_views.xml +++ b/addons/sale/views/sale_views.xml @@ -186,16 +186,16 @@ <field name="model">sale.order</field> <field name="priority">2</field> <field name="arch" type="xml"> - <tree string="Sales Orders" decoration-bf="message_needaction==True" decoration-muted="state=='cancel'"> + <tree string="Sales Orders" decoration-bf="message_needaction==True" decoration-muted="state=='cancel'" multi_edit="1"> <field name="message_needaction" invisible="1"/> - <field name="name" string="Order Number"/> + <field name="name" string="Order Number" readonly="1"/> <field name="date_order" string="Order Date"/> <field name="commitment_date"/> <field name="expected_date"/> - <field name="partner_id"/> + <field name="partner_id" readonly="1"/> <field name="user_id" optional="show"/> <field name="team_id" optional="hide"/> - <field name="company_id" groups="base.group_multi_company" optional="show"/> + <field name="company_id" groups="base.group_multi_company" optional="show" readonly="1"/> <field name="amount_untaxed" sum="Total Tax Excluded" widget="monetary" optional="hide"/> <field name="amount_tax" sum="Tax Total" widget="monetary" optional="hide"/> <field name="amount_total" sum="Total Tax Included" widget="monetary" optional="show"/> @@ -212,16 +212,16 @@ <field name="model">sale.order</field> <field name="priority">4</field> <field name="arch" type="xml"> - <tree string="Quotation" class="o_sale_order" decoration-bf="message_needaction==True" decoration-muted="state=='cancel'"> + <tree string="Quotation" class="o_sale_order" decoration-bf="message_needaction==True" decoration-muted="state=='cancel'" multi_edit="1"> <field name="message_needaction" invisible="1"/> <field name="name" string="Quotation Number" readonly="1"/> <field name="create_date" string="Create Date"/> <field name="commitment_date"/> <field name="expected_date"/> - <field name="partner_id"/> + <field name="partner_id" readonly="1" /> <field name="user_id" optional="show"/> <field name="team_id" optional="hide"/> - <field name="company_id" groups="base.group_multi_company" optional="show"/> + <field name="company_id" groups="base.group_multi_company" optional="show" readonly="1"/> <field name="amount_untaxed" sum="Total Tax Excluded" widget="monetary" optional="hide"/> <field name="amount_tax" sum="Tax Total" widget="monetary" optional="hide"/> <field name="amount_total" sum="Total Tax Included" widget="monetary" optional="show"/> |
