[REF] base: improve User error message when duplicating company

This commit is contained in:
Laurent Smet
2018-03-01 09:13:37 +01:00
parent 0060e86858
commit 0b0fdb9bd1
+1 -1
View File
@@ -15,7 +15,7 @@ class Company(models.Model):
@api.multi
def copy(self, default=None):
raise UserError(_('Duplicate a company is not allowed. Please create a new one instead.'))
raise UserError(_('Duplicating a company is not allowed. Please create a new company instead.'))
def _get_logo(self):
return base64.b64encode(open(os.path.join(tools.config['root_path'], 'addons', 'base', 'res', 'res_company_logo.png'), 'rb') .read())