summaryrefslogtreecommitdiff
path: root/addons/account
diff options
context:
space:
mode:
authorRaphael Collet <rco@odoo.com>2019-04-10 08:16:33 +0000
committerRaphael Collet <rco@odoo.com>2019-07-08 13:51:35 +0000
commitc552fb7a618afe2feea2e0358ead9eb6ebff0c94 (patch)
treedff502e0d0ced6cea06c940e664533ff175ae9c7 /addons/account
parentfa5037650db987c0aece183758d59ce6026add4e (diff)
[IMP] api: remove deprecated decorators
Diffstat (limited to 'addons/account')
-rw-r--r--addons/account/models/account_analytic_line.py1
-rw-r--r--addons/account/models/account_move.py1
-rw-r--r--addons/account/report/account_invoice_report.py1
3 files changed, 0 insertions, 3 deletions
diff --git a/addons/account/models/account_analytic_line.py b/addons/account/models/account_analytic_line.py
index 92e3dc6c973..9a7235ac9a0 100644
--- a/addons/account/models/account_analytic_line.py
+++ b/addons/account/models/account_analytic_line.py
@@ -17,7 +17,6 @@ class AccountAnalyticLine(models.Model):
code = fields.Char(size=8)
ref = fields.Char(string='Ref.')
- @api.v8
@api.onchange('product_id', 'product_uom_id', 'unit_amount', 'currency_id')
def on_change_unit_amount(self):
if not self.product_id:
diff --git a/addons/account/models/account_move.py b/addons/account/models/account_move.py
index f69db68a67f..1309145169c 100644
--- a/addons/account/models/account_move.py
+++ b/addons/account/models/account_move.py
@@ -2779,7 +2779,6 @@ class AccountMoveLine(models.Model):
# LOW-LEVEL METHODS
# -------------------------------------------------------------------------
- @api.model_cr
def init(self):
""" change index on partner_id to a multi-column index on (partner_id, ref), the new index will behave in the
same way when we search on partner_id, with the addition of being optimal when having a query that will
diff --git a/addons/account/report/account_invoice_report.py b/addons/account/report/account_invoice_report.py
index d63c997347f..1ac06b0372d 100644
--- a/addons/account/report/account_invoice_report.py
+++ b/addons/account/report/account_invoice_report.py
@@ -164,7 +164,6 @@ class AccountInvoiceReport(models.Model):
COALESCE(partner.country_id, commercial_partner.country_id)
'''
- @api.model_cr
def init(self):
tools.drop_view_if_exists(self.env.cr, self._table)
self.env.cr.execute('''