base_partner_ref: Copy=False on 'ref' field
This commit is contained in:
@@ -8,6 +8,8 @@ from odoo import models, fields, api, _
|
|||||||
class ResPartner(models.Model):
|
class ResPartner(models.Model):
|
||||||
_inherit = 'res.partner'
|
_inherit = 'res.partner'
|
||||||
|
|
||||||
|
ref = fields.Char(copy=False) # To avoid blocking duplicate
|
||||||
|
|
||||||
_sql_constraints = [(
|
_sql_constraints = [(
|
||||||
'ref_unique',
|
'ref_unique',
|
||||||
'unique(ref)',
|
'unique(ref)',
|
||||||
|
|||||||
Reference in New Issue
Block a user