summaryrefslogtreecommitdiff
path: root/addons/repair
diff options
context:
space:
mode:
authorwan <wan@odoo.com>2021-01-22 11:03:16 +0000
committerwan <wan@odoo.com>2021-01-22 11:57:05 +0000
commit523cfc447bada2617d0e2cce61806aa188bc59b8 (patch)
treed99ba76a115b531fe85da5e6dea04857be907c2e /addons/repair
parent8d0c25f359f92533eb25f2990d6e2aceef33b77a (diff)
[FIX] account: missing renaming type -> move_type
Following https://github.com/odoo/odoo/commit/d675dbaa4c7174591e0e7c1a3caf3e76877312ce Also updated tests to be more consistant. Regex used to find problematic lines: `\btype\b.*\b(out|in)_(invoice|refund)\b` closes odoo/odoo#64915 Related: odoo/enterprise#15908 Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
Diffstat (limited to 'addons/repair')
-rw-r--r--addons/repair/models/repair.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/repair/models/repair.py b/addons/repair/models/repair.py
index 4a90fdd4717..487c328e4fc 100644
--- a/addons/repair/models/repair.py
+++ b/addons/repair/models/repair.py
@@ -330,7 +330,7 @@ class Repair(models.Model):
currency = repair.pricelist_id.currency_id
company = repair.env.company
- journal = repair.env['account.move'].with_context(type='out_invoice')._get_default_journal()
+ journal = repair.env['account.move'].with_context(move_type='out_invoice')._get_default_journal()
if not journal:
raise UserError(_('Please define an accounting sales journal for the company %s (%s).') % (company.name, company.id))