forked from OCA/connector-magento
-
Notifications
You must be signed in to change notification settings - Fork 1
/
magento_model_view.xml
30 lines (28 loc) · 1.3 KB
/
magento_model_view.xml
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
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data noupdate="0">
<record id="view_magento_backend_form" model="ir.ui.view">
<field name="name">magento.backend.form</field>
<field name="model">magento.backend</field>
<field name="inherit_id" ref="magentoerpconnect.view_magento_backend_form"/>
<field name="arch" type="xml">
<field name="warehouse_id" position="after">
<field name="pricelist_id" on_change="onchange_pricelist_id(pricelist_id)"/>
</field>
</field>
</record>
<record id="view_magento_website_form" model="ir.ui.view">
<field name="name">magento.website.form</field>
<field name="model">magento.website</field>
<field name="inherit_id" ref="magentoerpconnect.view_magento_website_form"/>
<field name="arch" type="xml">
<group name="options" position="inside">
<field name="pricelist_id"
attrs="{'invisible': [('magento_id', '==', '0')]}"
on_change="onchange_pricelist_id(pricelist_id)"
groups="product.group_sale_pricelist"/>
</group>
</field>
</record>
</data>
</openerp>