fix internal_type_product default data

This commit is contained in:
ivan deng
2017-12-19 21:07:37 +08:00
parent bdd9591f86
commit 9d7ec8b556
35 changed files with 1441 additions and 12 deletions

View File

@@ -20,7 +20,7 @@ from openerp import models, fields, api, exceptions, _
class ProductProduct(models.Model):
_inherit = 'product.product'
default_code = fields.Char('Internal Reference', index=True, readonly=True, default='New', copy=False)
default_code = fields.Char('Internal Reference', index=True, readonly=True, default=lambda self: _('New'), copy=False)
default_code_index = fields.Integer('Internal Reference Index', readonly=True)
_sql_constraints = [