[IMP] code optimize

bzr revid: rma@tinyerp.com-20130904095228-66c98cs8xe9qhkm4
This commit is contained in:
Randhir Mayatra (OpenERP)
2013-09-04 15:22:28 +05:30
parent 1de64720e5
commit 8456731094
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -525,6 +525,7 @@ class mrp_repair(osv.osv):
'move_type': 'one',
'partner_id': repair.address_id and repair.address_id.id or False,
'note': repair.internal_notes,
'invoice_state': 'none',
'picking_type_id': self.pool.get('ir.model.data').get_object(cr, uid, 'stock', 'picking_type_out', context=context).id
})
move_id = move_obj.create(cr, uid, {
+1 -1
View File
@@ -256,7 +256,7 @@
<para style="P16">[[ o.product_id.name or '' ]]</para>
</td>
<td>
<para style="P16">[[ o.prodlot_id.name or ' ' ]]</para>
<para style="P16">[[ o.prodlot_id.name or ' ' ]]</para>
</td>
<td>
<para style="P16">[[ formatLang(o.guarantee_limit,date = True) ]]</para>