[IMP] create a constraint to avoid the users create same serial number

Bug #1318447 reported by Ariel E. Figueroa - http://www.humanytek.com
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SF Soluciones
Fix Released
Undecided
Unassigned

Bug Description

Hi team, please create a constraint to avoid the users create same serial number

http://youtu.be/HSZth35Rkys

Thanks!

Related branches

Revision history for this message
Ariel E. Figueroa - http://www.humanytek.com (arielfigue) wrote :

Hi team. i see this code inside of file sfs_stock_customisation/stock.py but im testing and dont are working

class stock_production_lot(osv.osv):

    _inherit = "stock.production.lot"

    _sql_constraints = [
        ('name_uniq', 'unique (name)', 'The Serial Number must be unique !'),
    ]

Revision history for this message
Ariel E. Figueroa - http://www.humanytek.com (arielfigue) wrote :

Done!

Changed in sfsoluciones:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.