mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
fix internal_type_product default data
This commit is contained in:
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user