|
@@ -0,0 +1,54 @@
|
|
|
+<openerp>
|
|
|
+ <data>
|
|
|
+ <record model="ir.ui.view" id="account_bank_statement_multi_store">
|
|
|
+ <field name="name">account.bank.statement.multi.store</field>
|
|
|
+ <field name="model">account.bank.statement</field>
|
|
|
+ <field name="inherit_id" ref="account.view_bank_statement_form2"/>
|
|
|
+ <field name="arch" type="xml">
|
|
|
+ <field name="journal_id" position="replace">
|
|
|
+ <field name="journal_id" domain="[('type','=','cash'),('store_ids','=',store_id)]" widget="selection" on_change="onchange_journal_id(journal_id)" string="Metodo de pago"/>
|
|
|
+ </field>
|
|
|
+ <field name="journal_id" position="before">
|
|
|
+ <field name="store_id" string="Sucursal" widget="selection" invisible="1"/>
|
|
|
+ </field>
|
|
|
+ </field>
|
|
|
+ </record>
|
|
|
+ <record model="ir.ui.view" id="account_bank_statement_multi_store_bank">
|
|
|
+ <field name="name">account.bank.statement.multi.store.bank</field>
|
|
|
+ <field name="model">account.bank.statement</field>
|
|
|
+ <field name="inherit_id" ref="account.view_bank_statement_form"/>
|
|
|
+ <field name="arch" type="xml">
|
|
|
+ <field name="journal_id" position="replace">
|
|
|
+ <field name="journal_id" domain="[('type','=','bank'),('store_ids','=',store_id)]" widget="selection" on_change="onchange_journal_id(journal_id)" string="Metodo de pago"/>
|
|
|
+ </field>
|
|
|
+ <field name="journal_id" position="before">
|
|
|
+ <field name="store_id" string="Sucursal" widget="selection" invisible="1"/>
|
|
|
+ </field>
|
|
|
+ </field>
|
|
|
+ </record>
|
|
|
+ <record model="ir.ui.view" id="account_bank_statement_multi_store_usability">
|
|
|
+ <field name="name">account.bank.statement.multi.store.usability</field>
|
|
|
+ <field name="model">account.bank.statement</field>
|
|
|
+ <field name="inherit_id" ref="account_bank_statement_multi_store.account_bank_statement_multi_store"/>
|
|
|
+ <field name="groups_id" eval="[(6, 0, [ref('multi_store.group_multi_store')])]"/>
|
|
|
+ <field name="arch" type="xml">
|
|
|
+ <field name="store_id" position="attributes">
|
|
|
+ <attribute name="invisible">0</attribute>
|
|
|
+ <attribute name="required">1</attribute>
|
|
|
+ </field>
|
|
|
+ </field>
|
|
|
+ </record>
|
|
|
+ <record model="ir.ui.view" id="account_bank_statement_multi_store_usability">
|
|
|
+ <field name="name">account.bank.statement.multi.store.usability</field>
|
|
|
+ <field name="model">account.bank.statement</field>
|
|
|
+ <field name="inherit_id" ref="account_bank_statement_multi_store.account_bank_statement_multi_store_bank"/>
|
|
|
+ <field name="groups_id" eval="[(6, 0, [ref('multi_store.group_multi_store')])]"/>
|
|
|
+ <field name="arch" type="xml">
|
|
|
+ <field name="store_id" position="attributes">
|
|
|
+ <attribute name="invisible">0</attribute>
|
|
|
+ <attribute name="required">1</attribute>
|
|
|
+ </field>
|
|
|
+ </field>
|
|
|
+ </record>
|
|
|
+ </data>
|
|
|
+</openerp>
|