|
@@ -36,7 +36,7 @@
|
|
|
<group>
|
|
|
<field name="purchases" nolabel="1" attrs="{'readonly': [('state','=', 'approved')]}">
|
|
|
<tree string="Detalles" editable="bottom" >
|
|
|
- <field name="purchase_id" domain="['|',('origin', 'ilike', 'PO'),('origin', '!=', False),('type', '=', 'in_invoice'),('state','=','paid')]"/>
|
|
|
+ <field name="purchase_id" domain="['|',('origin', 'ilike', 'PO'),('origin', '!=', False),('type', '=', 'in_invoice'),('state','=','paid')]" context="{'default_type': 'in_invoice', 'type': 'in_invoice', 'journal_type': 'purchase','default_origin':'PO', 'origin':'PO'}"/>
|
|
|
<field name="product_qty" readonly="1"/>
|
|
|
<field name="purchase_subtotal"/>
|
|
|
<field name="purchase_taxes"/>
|
|
@@ -59,7 +59,7 @@
|
|
|
<group>
|
|
|
<field name="expenses" nolabel="1" attrs="{'readonly': [('state','=', 'approved')]}">
|
|
|
<tree string="Detalles" editable="bottom" >
|
|
|
- <field name="expense_id" domain="['|',('origin', 'ilike', 'AA'),('origin', '=', False),('type', '=', 'in_invoice'),('state','=','paid')]"/>
|
|
|
+ <field name="expense_id" domain="['|',('origin', 'ilike', 'AA'),('origin', '=', False),('type', '=', 'in_invoice'),('state','=','paid')]" context="{'default_type': 'in_invoice', 'type': 'in_invoice', 'journal_type': 'purchase','default_is_a_expense':True,'is_a_expense':True}"/>
|
|
|
<field name="expense_subtotal"/>
|
|
|
<field name="expense_taxes"/>
|
|
|
<field name="expense_total"/>
|