| 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <odoo> |
| 3 | |
| 4 | <record id="product_product_view_form_normalized_website_sale" model="ir.ui.view"> |
| 5 | <field name="name">product.product.view.form.normalized.website.sale.inherit</field> |
| 6 | <field name="model">product.product</field> |
| 7 | <field name="mode">primary</field> |
| 8 | <field name="inherit_id" ref="product.product_product_view_form_normalized"/> |
| 9 | <field name="arch" type="xml"> |
| 10 | <xpath expr="//form" position="attributes"> |
| 11 | <attribute name="js_class">website_new_content_form</attribute> |
| 12 | </xpath> |
| 13 | <xpath expr="//field[@name='company_id']" position="before"> |
| 14 | <field name="website_url" invisible="1"/> |
| 15 | </xpath> |
| 16 | </field> |
| 17 | </record> |
| 18 | |
| 19 | <record id="product_product_view_form_normalized" model="ir.ui.view"> |
| 20 | <field name="name">product.product.view.form.normalized.website.sale</field> |
| 21 | <field name="model">product.product</field> |
| 22 | <field name="inherit_id" ref="product.product_product_view_form_normalized"/> |
| 23 | <field name="arch" type="xml"> |
| 24 | <div name="tax_info" position="after"> |
| 25 | <field name="public_categ_ids" string="Website Category" class="oe_inline" widget="many2many_tags" placeholder="Unpublished"/> |
| 26 | </div> |
| 27 | </field> |
| 28 | </record> |
| 29 | |
| 30 | <record id="product_product_action_add" model="ir.actions.act_window"> |
| 31 | <field name="name">New Product</field> |
| 32 | <field name="res_model">product.product</field> |
| 33 | <field name="view_mode">form</field> |
| 34 | <field name="target">new</field> |
| 35 | <field name="context" eval="{'dialog_size': 'medium'}"/> |
| 36 | <field name="view_id" ref="product_product_view_form_normalized_website_sale"/> |
| 37 | </record> |
| 38 | |
| 39 | </odoo> |