Skip to content

Commit

Permalink
[IMP] pricelist_share_companies - retab xml views
Browse files Browse the repository at this point in the history
  • Loading branch information
yvaucher committed May 2, 2013
1 parent d5f2b2e commit 70d004c
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 36 deletions.
36 changes: 18 additions & 18 deletions pricelist_share_companies/company_view.xml
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<data>

<record id="company_form_price_fields" model="ir.ui.view">
<field name="name">res.company.form.inherit</field>
<field name="model">res.company</field>
<field name="inherit_id" ref="base.view_company_form"/>
<field name="arch" type="xml">
<data>
<page string="Configuration" position="inside">
<separator string="Prices Fields"/>
<group>
<field name="standard_price_field"/>
</group>
</page>
</data>
</field>
</record>
<record id="company_form_price_fields" model="ir.ui.view">
<field name="name">res.company.form.inherit</field>
<field name="model">res.company</field>
<field name="inherit_id" ref="base.view_company_form"/>
<field name="arch" type="xml">
<data>
<page string="Configuration" position="inside">
<separator string="Prices Fields"/>
<group>
<field name="standard_price_field"/>
</group>
</page>
</data>
</field>
</record>

</data>
</openerp>
</data>
</openerp>
24 changes: 12 additions & 12 deletions pricelist_share_companies/pricelist_view.xml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<data>

<record id="product_price_type_view" model="ir.ui.view">
<field name="name">product.price.type.form</field>
<field name="model">product.price.type</field>
<field name="inherit_id" ref="product.product_price_type_view" />
<field name="arch" type="xml">
<field name="currency_id" position="after">
<field name="company_id" widget="selection"/>
</field>
</field>
</record>
<record id="product_price_type_view" model="ir.ui.view">
<field name="name">product.price.type.form</field>
<field name="model">product.price.type</field>
<field name="inherit_id" ref="product.product_price_type_view" />
<field name="arch" type="xml">
<field name="currency_id" position="after">
<field name="company_id" widget="selection"/>
</field>
</field>
</record>

</data>
</data>
</openerp>
12 changes: 6 additions & 6 deletions pricelist_share_companies/security/pricelist_security.xml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data noupdate="1">
<data noupdate="1">

<record id="product_pricetype_comp_rule" model="ir.rule">
<field name="name" >Product price type multi-company</field>
<field name="model_id" ref="model_product_price_type"/>
<field name="global" eval="True"/>
<field name="domain_force">['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]</field>
<field name="name" >Product price type multi-company</field>
<field name="model_id" ref="model_product_price_type"/>
<field name="global" eval="True"/>
<field name="domain_force">['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]</field>
</record>

</data>
</data>
</openerp>

0 comments on commit 70d004c

Please sign in to comment.