[ADD] added carrier_cost_delivery.yml in delivery module

bzr revid: tpa@tinyerp.com-20111222070517-tzkg4mvdtt93t6re
This commit is contained in:
Turkesh Patel (Open ERP) 2011-12-22 12:35:17 +05:30
parent c0380d53d3
commit f2836bbb5f
2 changed files with 18 additions and 1 deletions

View File

@ -44,7 +44,10 @@ When creating invoices from picking, OpenERP is able to add and compute the ship
'partner_view.xml'
],
'demo_xml': ['delivery_demo.xml'],
'test':['test/delivery_report.yml'],
'test':[
'test/delivery_report.yml',
'test/carrier_cost_delivery.yml',
],
'installable': True,
'active': False,
'certificate': '0033981912253',

View File

@ -0,0 +1,14 @@
-
IN order to test carrier cost on delivery,
-
I add delivery cost in sale order.
-
!python {model: delivery.sale.order}: |
new_id = self.create(cr ,uid ,{"carrier_id": ref("delivery_carrier")})
self.delivery_set(cr, uid, [new_id], {'active_id': ref("sale.order")})
-
I check Delivery cost is added properly or not.
-
!python {model: sale.order.line}: |
line_ids = self.search(cr, uid, [('order_id','=', ref('sale.order')), ('name','=','The Poste')])
assert len(line_ids), "Delivery cost is not Added"