blob: 973ae181d7376f67f978b9447b30f26a58b87457 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
<odoo>
<data>
<record id="product_pricelist_item_action" model="ir.actions.act_window">
<field name="name">Product Pricelist Item</field>
<field name="res_model">product.pricelist.item</field>
<field name="view_mode">tree,form</field>
</record>
<record id="product_pricelist_item_form_view_inherit" model="ir.ui.view">
<field name="name">product.pricelist.item.form.view.inherit</field>
<field name="model">product.pricelist.item</field>
<field name="inherit_id" ref="product.product_pricelist_item_form_view" />
<field name="arch" type="xml">
<field name="applied_on" position="before">
<field name="pricelist_id" />
</field>
</field>
</record>
<record id="product_pricelist_item_view_search_inherit" model="ir.ui.view">
<field name="name">product.pricelist.item.search.inherit</field>
<field name="model">product.pricelist.item</field>
<field name="inherit_id" ref="product.product_pricelist_item_view_search"/>
<field name="arch" type="xml">
<field name="pricelist_id" position="before">
<field name="product_id" string="Products"/>
</field>
</field>
</record>
<menuitem id="product_pricelist_item"
name="Pricelist Items"
parent="sale.product_menu_catalog"
sequence="2"
action="product_pricelist_item_action"/>
<record id="product_pricelist_item_tree_view_inherit" model="ir.ui.view">
<field name="name">product.pricelist.item.tree.view.inherit</field>
<field name="model">product.pricelist.item</field>
<field name="inherit_id" ref="product.product_pricelist_item_tree_view"/>
<field name="arch" type="xml">
<field name="company_id" position="after">
<field name="manufacture_id" string="Manufactures"/>
</field>
</field>
</record>
<record id="product_pricelist_item_sync_product_solr_ir_actions_server" model="ir.actions.server">
<field name="name">Sync Product to SOLR</field>
<field name="model_id" ref="product.model_product_pricelist_item"/>
<field name="binding_model_id" ref="product.model_product_pricelist_item"/>
<field name="state">code</field>
<field name="code">model.action_sync_to_solr()</field>
</record>
</data>
</odoo>
|