|
@@ -8,10 +8,10 @@
|
|
<field name="inherit_id" ref="account.invoice_supplier_form"/>
|
|
<field name="inherit_id" ref="account.invoice_supplier_form"/>
|
|
<field name="arch" type="xml">
|
|
<field name="arch" type="xml">
|
|
<field name="type" position="after">
|
|
<field name="type" position="after">
|
|
- <field name="is_a_expense" invisible="1"/>
|
|
|
|
- </field>
|
|
|
|
|
|
+ <field name="is_a_expense" invisible="1"/>
|
|
|
|
+ </field>
|
|
<field name="origin" position="replace">
|
|
<field name="origin" position="replace">
|
|
- <field name="origin" attrs="{'invisible': [('is_a_expense', '=', True)]}"/>
|
|
|
|
|
|
+ <field name="origin" attrs="{'invisible': [('is_a_expense', '=', True)]}" readonly="1"/>
|
|
</field>
|
|
</field>
|
|
</field>
|
|
</field>
|
|
</record>
|
|
</record>
|
|
@@ -23,7 +23,7 @@
|
|
<field name="type">ir.actions.act_window</field>
|
|
<field name="type">ir.actions.act_window</field>
|
|
<field name="res_model">account.invoice</field>
|
|
<field name="res_model">account.invoice</field>
|
|
<field name="view_type">form</field>
|
|
<field name="view_type">form</field>
|
|
- <field name="view_id" ref="account.invoice_tree"/>
|
|
|
|
|
|
+ <field name="view_id" eval="False"/>
|
|
<field name="view_mode">tree,form</field>
|
|
<field name="view_mode">tree,form</field>
|
|
<field name="context">{'default_type': 'in_invoice', 'type': 'in_invoice', 'journal_type': 'purchase','default_is_a_expense':True,'is_a_expense':True}</field>
|
|
<field name="context">{'default_type': 'in_invoice', 'type': 'in_invoice', 'journal_type': 'purchase','default_is_a_expense':True,'is_a_expense':True}</field>
|
|
<field name="domain">['|',('origin', 'ilike', 'AA'),('origin', '=', False),('type', '=', 'in_invoice')]</field>
|
|
<field name="domain">['|',('origin', 'ilike', 'AA'),('origin', '=', False),('type', '=', 'in_invoice')]</field>
|
|
@@ -59,7 +59,7 @@
|
|
<field name="view_mode">tree,form,calendar</field>
|
|
<field name="view_mode">tree,form,calendar</field>
|
|
<field eval="False" name="view_id"/>
|
|
<field eval="False" name="view_id"/>
|
|
<field name="domain">['|',('origin', 'ilike', 'PO'),('origin', '!=', False),('type', '=', 'in_invoice')]</field>
|
|
<field name="domain">['|',('origin', 'ilike', 'PO'),('origin', '!=', False),('type', '=', 'in_invoice')]</field>
|
|
- <field name="context">{'default_type': 'in_invoice', 'type': 'in_invoice', 'journal_type': 'purchase'}</field>
|
|
|
|
|
|
+ <field name="context">{'default_type': 'in_invoice', 'type': 'in_invoice', 'journal_type': 'purchase', 'default_origin':'PO', 'origin':'PO'}</field>
|
|
<field name="search_view_id" ref="account.view_account_invoice_filter"/>
|
|
<field name="search_view_id" ref="account.view_account_invoice_filter"/>
|
|
<field name="help" type="html">
|
|
<field name="help" type="html">
|
|
<p class="oe_view_nocontent_create">
|
|
<p class="oe_view_nocontent_create">
|