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.

40 lines
1.8 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. <field name="additional_product_tag_ids" position="attributes">
  23. <attribute name="widget">many2many_tags</attribute>
  24. </field>
  25. <group name="description" position="attributes">
  26. <attribute name="string">Sale descriptions</attribute>
  27. </group>
  28. <field name="description_sale" position="attributes">
  29. <attribute name="nolabel">0</attribute>
  30. <attribute name="string">Product</attribute>
  31. </field>
  32. <field name="description_sale" position="after">
  33. <field name="variant_description_sale" string="Variant" attrs="{'invisible': [('product_variant_count','=',1)]}"
  34. placeholder="This note is added to sales orders and invoices for this particular variant." />
  35. </field>
  36. </field>
  37. </record>
  38. </odoo>