[IMP] point_of_sale: improve the yml
bzr revid: sbh@tinyerp.com-20100514093250-g60bdqefpwp7bcsx
This commit is contained in:
@@ -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"),
|
||||
})
|
||||
|
||||
|
||||
@@ -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"/>
|
||||
|
||||
Reference in New Issue
Block a user