0
3 答案
0
最佳答案
Hi,
you should both comment the line and remove the constraint from Postgre.
Have a look at: https://www.odoo.com/forum/help-1/question/remove-sql-constraints-5431
Alternatively you may redefine this sql contsraint in your Python class:
class stock_production_lot(models.Model):
_inherit = "stock.production.lot"
_sql_constraints = [('name_ref_inique', 'check(1=1)', 'No error'),]