diff options
| author | Nans Lefebvre <len@odoo.com> | 2019-03-29 14:36:48 +0000 |
|---|---|---|
| committer | Nans Lefebvre <len@odoo.com> | 2019-03-29 15:04:50 +0000 |
| commit | 3f9a0d862f230d3b576d9ed183c976bb96eb15ab (patch) | |
| tree | 804c7d08775020489227ad80f5de8021895f90ac /addons/l10n_generic_coa | |
| parent | 3f50c16d5a79ce55e1f5aa913405f502e0157330 (diff) | |
[FIX] l10n_generic_coa: fix demo data install
The demo data could crash trying to send a (6, 0, [False]) to the ORM.
closes odoo/odoo#32256
Signed-off-by: Nans Lefebvre (len) <len@odoo.com>
Diffstat (limited to 'addons/l10n_generic_coa')
| -rw-r--r-- | addons/l10n_generic_coa/data/account_invoice_demo.xml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/l10n_generic_coa/data/account_invoice_demo.xml b/addons/l10n_generic_coa/data/account_invoice_demo.xml index e4ba19c4bf0..9f1d09934a9 100644 --- a/addons/l10n_generic_coa/data/account_invoice_demo.xml +++ b/addons/l10n_generic_coa/data/account_invoice_demo.xml @@ -191,10 +191,10 @@ ('user_type_id', '=', ref('account.data_account_type_expenses')), ('company_id', '=', obj().env['res.company']._company_default_get('account.account').id)]"/> <field name="invoice_line_tax_ids" model="account.tax" - eval="[(6, 0, [obj().search([ + eval="[(6, 0, obj().search([ ('type_tax_use', '=', 'purchase'), ('amount', '>', 0), - ('company_id', '=', obj().env['res.company']._company_default_get('account.tax').id)], limit=1).id])]"/> + ('company_id', '=', obj().env['res.company']._company_default_get('account.tax').id)], limit=1).ids)]"/> </record> <function model="account.invoice" name="_onchange_invoice_line_ids"> |
