You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.6 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="product_variant_easy_edit_view_inherit" model="ir.ui.view">
  4. <field name="name">product.product.view.form.inherit</field>
  5. <field name="model">product.product</field>
  6. <field name="inherit_id" ref="product.product_variant_easy_edit_view" />
  7. <field name="arch" type="xml">
  8. <group name="tags" position="after">
  9. <group name="description" string="Sale descriptions">
  10. <field name="description_sale" readonly="1" string="Product" />
  11. <field name="variant_description_sale" string="Variant"
  12. placeholder="This note is added to sales orders and invoices for this particular variant." />
  13. </group>
  14. </group>
  15. </field>
  16. </record>
  17. <record id="product_normal_form_view_inherit" model="ir.ui.view">
  18. <field name="name">product.product.view.form.inherit</field>
  19. <field name="model">product.product</field>
  20. <field name="inherit_id" ref="product.product_normal_form_view" />
  21. <field name="arch" type="xml">
  22. <group name="description" position="attributes">
  23. <attribute name="string">Sale descriptions</attribute>
  24. </group>
  25. <field name="description_sale" position="attributes">
  26. <attribute name="nolabel">0</attribute>
  27. <attribute name="string">Product</attribute>
  28. </field>
  29. <field name="description_sale" position="after">
  30. <field name="variant_description_sale" string="Variant" attrs="{'invisible': [('product_variant_count','=',1)]}"
  31. placeholder="This note is added to sales orders and invoices for this particular variant." />
  32. </field>
  33. </field>
  34. </record>
  35. </odoo>