-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtemplates.xml
More file actions
29 lines (29 loc) · 1.43 KB
/
templates.xml
File metadata and controls
29 lines (29 loc) · 1.43 KB
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
<openerp>
<data>
<record id="product_template_only_form_view_msync" model="ir.ui.view">
<field name="name">product_template_only_form_view_msync</field>
<field name="model">product.template</field>
<field name="inherit_id" ref="product.product_template_only_form_view"/>
<field name="arch" type="xml">
<field name="default_code" position="after">
<field name="magento_sync"/>
<field name="magento_sync_date"/>
</field>
</field>
</record>
<record id="magento_sync_orders_tree_action" model="ir.actions.server">
<field name="name">Update magento orders</field>
<field name="model_id" ref="model_sale_order"></field>
<field name="state">code</field>
<field name="condition">True</field>
<field name="code">self.update_magento_orders(cr, uid, context['active_ids'], context=context)</field>
</record>
<record id="magento_sync_orders_tree_value" model="ir.values">
<field name="name">Update magento orders</field>
<field name="model">sale.order</field>
<field name="key" >action</field>
<field name="key2">client_action_multi</field>
<field name="value" eval="'ir.actions.server,%d'%magento_sync_orders_tree_action"/>
</record>
</data>
</openerp>