From 82091624699b46cf95131cee4c95aa06aa958ca1 Mon Sep 17 00:00:00 2001 From: Invitu Date: Sun, 26 Feb 2017 09:58:45 -1000 Subject: [PATCH] [IMP] api.one is deprecated --- pos_default_empty_image/product.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pos_default_empty_image/product.py b/pos_default_empty_image/product.py index ad3d5ffd..a56611e1 100644 --- a/pos_default_empty_image/product.py +++ b/pos_default_empty_image/product.py @@ -8,8 +8,9 @@ from openerp import models, fields, api class ProductTemplate(models.Model): _inherit = ['product.template'] - @api.one + @api.multi def _get_has_image(self): + self.ensure_one() self.has_image = self.image is not False has_image = fields.Boolean(compute='_get_has_image', string='Has Image')