| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<odoo> |
| 3 |
|
| 4 |
<record id="product_document_form" model="ir.ui.view"> |
| 5 |
<field name="name">product.document.form.website_sale</field> |
| 6 |
<field name="model">product.document</field> |
| 7 |
<field name="inherit_id" ref="sale.product_document_form"/> |
| 8 |
<field name="arch" type="xml"> |
| 9 |
<sheet position="inside"> |
| 10 |
<group name="website_sale" string="E-commerce" invisible="res_model == 'product.product'"> |
| 11 |
<field name="shown_on_product_page"/> |
| 12 |
</group> |
| 13 |
</sheet> |
| 14 |
</field> |
| 15 |
</record> |
| 16 |
|
| 17 |
<record id="product_document_kanban" model="ir.ui.view"> |
| 18 |
<field name="name">product.document.kanban.website_sale</field> |
| 19 |
<field name="model">product.document</field> |
| 20 |
<field name="inherit_id" ref="sale.product_document_kanban"/> |
| 21 |
<field name="arch" type="xml"> |
| 22 |
<xpath expr="//main/div" position="inside"> |
| 23 |
<div class="d-flex mt-2" invisible="res_model == 'product.product'"> |
| 24 |
<span>Publish on website</span> |
| 25 |
<field name="shown_on_product_page" class="ms-2" widget="boolean_toggle"/> |
| 26 |
</div> |
| 27 |
</xpath> |
| 28 |
</field> |
| 29 |
</record> |
| 30 |
|
| 31 |
<record id="product_document_list" model="ir.ui.view"> |
| 32 |
<field name="name">product.document.list.website_sale</field> |
| 33 |
<field name="model">product.document</field> |
| 34 |
<field name="inherit_id" ref="sale.product_document_list"/> |
| 35 |
<field name="arch" type="xml"> |
| 36 |
<field name="attached_on_sale" position="after"> |
| 37 |
<field name="shown_on_product_page" invisible="res_model == 'product.product'"/> |
| 38 |
</field> |
| 39 |
</field> |
| 40 |
</record> |
| 41 |
|
| 42 |
<record id="product_document_search" model="ir.ui.view"> |
| 43 |
<field name="name">product.document.search.sale</field> |
| 44 |
<field name="model">product.document</field> |
| 45 |
<field name="inherit_id" ref="sale.product_document_search"/> |
| 46 |
<field name="arch" type="xml"> |
| 47 |
<search position="inside"> |
| 48 |
<separator/> |
| 49 |
<filter name="e_commerce" string="Show on Ecommerce" domain="[('shown_on_product_page', '=', True)]"/> |
| 50 |
</search> |
| 51 |
</field> |
| 52 |
</record> |
| 53 |
</odoo> |