summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
Diffstat (limited to 'addons')
-rw-r--r--addons/account/models/account_invoice.py2
-rw-r--r--addons/purchase/purchase.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/addons/account/models/account_invoice.py b/addons/account/models/account_invoice.py
index e2ead024c30..101f7f26e81 100644
--- a/addons/account/models/account_invoice.py
+++ b/addons/account/models/account_invoice.py
@@ -1378,7 +1378,7 @@ class AccountPaymentTermLine(models.Model):
if self.option in ('last_day_current_month', 'last_day_following_month'):
self.days = 0
-class MailComposeMessage(models.Model):
+class MailComposeMessage(models.TransientModel):
_inherit = 'mail.compose.message'
@api.multi
diff --git a/addons/purchase/purchase.py b/addons/purchase/purchase.py
index a9a8b3dbf9e..407976486f0 100644
--- a/addons/purchase/purchase.py
+++ b/addons/purchase/purchase.py
@@ -1017,7 +1017,7 @@ class ProductCategory(models.Model):
help="This account will be used to value price difference between purchase price and accounting cost.")
-class MailComposeMessage(models.Model):
+class MailComposeMessage(models.TransientModel):
_inherit = 'mail.compose.message'
@api.multi