[IMP] point_of_sale: improve the yml

bzr revid: sbh@tinyerp.com-20100514093250-g60bdqefpwp7bcsx
This commit is contained in:
sbh (Open ERP)
2010-05-14 15:02:50 +05:30
parent f06c15b364
commit 3cb540be39
2 changed files with 18 additions and 3 deletions
+17 -2
View File
@@ -335,6 +335,7 @@
product_id: product_product_lgviewtysmart0
qty: 10.0
qty_rfd: 0.0
partner_id: base.res_partner_agrolait
name: POS/001
price_type: tax_excluded
pricelist_id: product.list0
@@ -461,5 +462,19 @@
-
!python {model: pos.return}: |
self.create_returns2(cr, uid, [ref("pos_return_0")], {"lang": "en_US", "active_model":
"pos.order", "active_ids": [ref("point_of_sale.pos_order_pos0")], "tz":
False, "active_id": ref("point_of_sale.pos_order_pos0"), })
"pos.order", "active_ids": [ref("pos_order_pos0")], "tz":
False, "active_id": ref("pos_order_pos0"), })
-
Creating a pos.confirm record
-
!record {model: pos.confirm, id: pos_confirm_0}:
{}
-
I have close this order
-
!python {model: pos.confirm}: |
self.action_confirm(cr, uid, [ref("pos_confirm_0")], {"lang": "en_US", "active_model":
"pos.order", "active_ids": [ref("pos_order_pos0")], "tz": False, "active_id": ref("pos_order_pos0"),
})
+1 -1
View File
@@ -112,7 +112,7 @@ class pos_make_payment(osv.osv_memory):
order = self.pool.get('pos.order').browse(cr, uid, active_id)
if order.amount_total == order.amount_paid:
res['arch'] = """ <form string="Make Payment" colspan="4">
result['arch'] = """ <form string="Make Payment" colspan="4">
<group col="2" colspan="2">
<label string="Do you want to print the Receipt?" colspan="4"/>
<separator colspan="4"/>