[MERGE] Merge with jrp branch unique name of repair order
bzr revid: jco@openerp.com-20140124133812-tsit53xxegeq1eha
This commit is contained in:
commit
e9989e22a5
|
@ -186,6 +186,10 @@ class mrp_repair(osv.osv):
|
||||||
'product_qty': 1.0,
|
'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):
|
def copy(self, cr, uid, id, default=None, context=None):
|
||||||
if not default:
|
if not default:
|
||||||
default = {}
|
default = {}
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
partner_invoice_id: base.res_partner_address_1
|
partner_invoice_id: base.res_partner_address_1
|
||||||
location_dest_id: stock.stock_location_14
|
location_dest_id: stock.stock_location_14
|
||||||
location_id: stock.stock_location_stock
|
location_id: stock.stock_location_stock
|
||||||
name: RMA00004
|
|
||||||
operations:
|
operations:
|
||||||
- location_dest_id: stock.location_production
|
- location_dest_id: stock.location_production
|
||||||
location_id: stock.stock_location_stock
|
location_id: stock.stock_location_stock
|
||||||
|
@ -37,7 +36,6 @@
|
||||||
partner_invoice_id: base.res_partner_address_1
|
partner_invoice_id: base.res_partner_address_1
|
||||||
location_dest_id: stock.stock_location_14
|
location_dest_id: stock.stock_location_14
|
||||||
location_id: stock.stock_location_stock
|
location_id: stock.stock_location_stock
|
||||||
name: RMA-00007
|
|
||||||
operations:
|
operations:
|
||||||
- location_dest_id: stock.location_production
|
- location_dest_id: stock.location_production
|
||||||
location_id: stock.stock_location_stock
|
location_id: stock.stock_location_stock
|
||||||
|
@ -66,7 +64,6 @@
|
||||||
partner_invoice_id: base.res_partner_address_1
|
partner_invoice_id: base.res_partner_address_1
|
||||||
location_dest_id: stock.stock_location_stock
|
location_dest_id: stock.stock_location_stock
|
||||||
location_id: stock.stock_location_14
|
location_id: stock.stock_location_14
|
||||||
name: RMA-00011
|
|
||||||
operations:
|
operations:
|
||||||
- location_dest_id: stock.location_production
|
- location_dest_id: stock.location_production
|
||||||
location_id: stock.stock_location_stock
|
location_id: stock.stock_location_stock
|
||||||
|
|
Loading…
Reference in New Issue