[MERGE] Merge with jrp branch unique name of repair order

bzr revid: jco@openerp.com-20140124133812-tsit53xxegeq1eha
This commit is contained in:
Josse Colpaert 2014-01-24 14:38:12 +01:00
commit e9989e22a5
2 changed files with 4 additions and 3 deletions

View File

@ -186,6 +186,10 @@ class mrp_repair(osv.osv):
'product_qty': 1.0,
}
_sql_constraints = [
('name', 'unique (name)', 'The name of the Repair Order must be unique!'),
]
def copy(self, cr, uid, id, default=None, context=None):
if not default:
default = {}

View File

@ -8,7 +8,6 @@
partner_invoice_id: base.res_partner_address_1
location_dest_id: stock.stock_location_14
location_id: stock.stock_location_stock
name: RMA00004
operations:
- location_dest_id: stock.location_production
location_id: stock.stock_location_stock
@ -37,7 +36,6 @@
partner_invoice_id: base.res_partner_address_1
location_dest_id: stock.stock_location_14
location_id: stock.stock_location_stock
name: RMA-00007
operations:
- location_dest_id: stock.location_production
location_id: stock.stock_location_stock
@ -66,7 +64,6 @@
partner_invoice_id: base.res_partner_address_1
location_dest_id: stock.stock_location_stock
location_id: stock.stock_location_14
name: RMA-00011
operations:
- location_dest_id: stock.location_production
location_id: stock.stock_location_stock