| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<odoo> |
| 3 |
|
| 4 |
<record id="product_feed_search" model="ir.ui.view"> |
| 5 |
<field name="name">product.feed.view.search</field> |
| 6 |
<field name="model">product.feed</field> |
| 7 |
<field name="arch" type="xml"> |
| 8 |
<search> |
| 9 |
<field name="website_id" groups="website.group_multi_website"/> |
| 10 |
<field name="pricelist_id" groups="product.group_product_pricelist"/> |
| 11 |
<field name="lang_id"/> |
| 12 |
<field name="product_category_ids"/> |
| 13 |
<group> |
| 14 |
<filter |
| 15 |
name="groupby_website" |
| 16 |
string="Website" |
| 17 |
context="{'group_by': 'website_id'}" |
| 18 |
groups="website.group_multi_website" |
| 19 |
/> |
| 20 |
<filter |
| 21 |
name="groupby_pricelist" |
| 22 |
string="Pricelist" |
| 23 |
context="{'group_by': 'pricelist_id'}" |
| 24 |
groups="product.group_product_pricelist" |
| 25 |
/> |
| 26 |
<filter |
| 27 |
name="groupby_lang" |
| 28 |
string="Language" |
| 29 |
context="{'group_by': 'lang_id'}" |
| 30 |
/> |
| 31 |
<filter |
| 32 |
name="groupby_product_category" |
| 33 |
string="eCommerce Category" |
| 34 |
context="{'group_by': 'product_category_ids'}" |
| 35 |
/> |
| 36 |
</group> |
| 37 |
</search> |
| 38 |
</field> |
| 39 |
</record> |
| 40 |
|
| 41 |
<record id="product_feed_list" model="ir.ui.view"> |
| 42 |
<field name="name">product.feed.view.list</field> |
| 43 |
<field name="model">product.feed</field> |
| 44 |
<field name="arch" type="xml"> |
| 45 |
<list string="Product Feeds" editable="top" multi_edit="True"> |
| 46 |
<field name="name"/> |
| 47 |
<field |
| 48 |
name="website_id" |
| 49 |
column_invisible="context.get('hide_website_column')" |
| 50 |
groups="website.group_multi_website" |
| 51 |
options="{'no_create': True}" |
| 52 |
/> |
| 53 |
<field |
| 54 |
name="pricelist_id" |
| 55 |
placeholder="Default" |
| 56 |
options="{'no_create': True}" |
| 57 |
groups="product.group_product_pricelist" |
| 58 |
/> |
| 59 |
<field name="lang_id" options="{'no_create': True}"/> |
| 60 |
<field |
| 61 |
name="product_category_ids" |
| 62 |
placeholder="All Categories" |
| 63 |
widget="many2many_tags" |
| 64 |
options="{'no_create': True}" |
| 65 |
/> |
| 66 |
<!-- The `o_field_handle` class disables the o-text-overflow styling added by the |
| 67 |
list renderer, which, if not disabled, causes misalignment of the icon. --> |
| 68 |
<field |
| 69 |
name="url" |
| 70 |
string="Copy URL" |
| 71 |
widget="CopyClipboardButton" |
| 72 |
class="o_field_handle" |
| 73 |
width="100px" |
| 74 |
nolabel="1" |
| 75 |
options="{'btn_class': 'primary btn-sm'}" |
| 76 |
/> |
| 77 |
</list> |
| 78 |
</field> |
| 79 |
</record> |
| 80 |
|
| 81 |
<record id="product_feed_form" model="ir.ui.view"> |
| 82 |
<field name="name">product.feed.view.form</field> |
| 83 |
<field name="model">product.feed</field> |
| 84 |
<field name="arch" type="xml"> |
| 85 |
<form string="Product Feed"> |
| 86 |
<sheet> |
| 87 |
<div class="oe_title"> |
| 88 |
<h1><field name="name"/></h1> |
| 89 |
</div> |
| 90 |
<div name="button_box"> |
| 91 |
<field name="url" string="Copy URL" widget="CopyClipboardButton"/> |
| 92 |
</div> |
| 93 |
<group> |
| 94 |
<field name="website_id"/> |
| 95 |
<field name="pricelist_id" placeholder="Default" groups="product.group_product_pricelist"/> |
| 96 |
<field name="lang_id" options="{'no_create': True}"/> |
| 97 |
<field |
| 98 |
name="product_category_ids" |
| 99 |
placeholder="All Categories" |
| 100 |
widget="many2many_tags" |
| 101 |
/> |
| 102 |
</group> |
| 103 |
</sheet> |
| 104 |
</form> |
| 105 |
</field> |
| 106 |
</record> |
| 107 |
|
| 108 |
<record id="action_product_feeds" model="ir.actions.act_window"> |
| 109 |
<field name="name">Product Feeds</field> |
| 110 |
<field name="res_model">product.feed</field> |
| 111 |
<field name="view_mode">list,form</field> |
| 112 |
</record> |
| 113 |
|
| 114 |
<record id="action_invalidate_cache" model="ir.actions.server"> |
| 115 |
<field name="name">Reset Cache</field> |
| 116 |
<field name="model_id" ref="model_product_feed"/> |
| 117 |
<field name="binding_model_id" ref="website_sale.model_product_feed"/> |
| 118 |
<field name="binding_view_types">list,form</field> |
| 119 |
<field name="state">code</field> |
| 120 |
<field name="code">action = records.action_invalidate_cache()</field> |
| 121 |
<field name="group_ids" eval="[Command.link(ref('base.group_no_one'))]"/> |
| 122 |
</record> |
| 123 |
|
| 124 |
</odoo> |