[FIX] l10n_generic_coa : define journal_id in the demo data creating vendor bills

The default function commputing the journal_id on invoices uses the context to get the type of the invoice and choose the journal. In regular cases, it works fine, but not with demo data. Hence, we need to explicitly set the journal on them.
This commit is contained in:
Mehul Patel
2018-03-05 13:20:30 +01:00
committed by Olivier Colson
parent fc9855d419
commit a27488fa23
@@ -118,6 +118,7 @@
<field name="reference_type">none</field>
<field name="payment_term_id" ref="account.account_payment_term"/>
<field name="type">in_invoice</field>
<field name="journal_id" search="[('type', '=', 'purchase')]"/>
<field name="date_invoice" eval="time.strftime('%Y-%m')+'-01'"/>
</record>
<record id="demo_invoice_0_line_1" model="account.invoice.line">
@@ -141,6 +142,7 @@
<field name="partner_id" ref="base.res_partner_12"/>
<field name="type">in_invoice</field>
<field name="date_invoice" eval="time.strftime('%Y-%m')+'-01'"/>
<field name="journal_id" search="[('type', '=', 'purchase')]"/>
</record>
<record id="ceo_wages_line" model="account.invoice.line">
@@ -160,6 +162,7 @@
<field name="partner_id" ref="base.res_partner_1"/>
<field name="type">in_invoice</field>
<field name="date_invoice" eval="time.strftime('%Y-%m')+'-15'"/>
<field name="journal_id" search="[('type', '=', 'purchase')]"/>
</record>
<record id="coffee_machine_line" model="account.invoice.line">