[IMP] sale_*: multi-editable list views
closes odoo/odoo#37547 Signed-off-by: Damien Bouvy (dbo) <dbo@odoo.com>
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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"/>
|
||||
|
||||
Reference in New Issue
Block a user