[IMP] point_of_sale: remove the record_id and used active_id

bzr revid: sbh@tinyerp.com-20100506123224-7ekkisu26jgkwo4t
This commit is contained in:
sbh (Open ERP) 2010-05-06 18:02:24 +05:30
parent b1ba2545e8
commit 163d2bb69d
3 changed files with 2 additions and 3 deletions

View File

@ -61,7 +61,7 @@
<separator colspan="4" string="Actions"/>
<group colspan="4" col="6">
<field name="state" select="1"/>
<button name="%(action_pos_payment)d" string="Ma_ke Payment" icon="gtk-ok" type="action" states="draft,advance" context="{'record_id':'active_id'}" />
<button name="%(action_pos_payment)d" string="Ma_ke Payment" icon="gtk-ok" type="action" states="draft,advance" />
<button name="%(action_report_pos_receipt)d" string="_Reprint" icon="gtk-print" type="action" states="paid,done,invoiced"/>
<button name="set_to_draft" string="Set to draft" states="paid" icon="gtk-execute" type="object" />
<button name="%(action_view_pos_return)d" string="Return Picking" type="action" icon="gtk-ok" states="paid"

View File

@ -71,7 +71,7 @@ class add_product(osv.osv_memory):
if obj.amount_total != obj.amount_paid:
return {
'name': _('Make Payment'),
'context ':context and context.get('record_id', False),
'context ':context and context.get('active_id', False),
'view_type': 'form',
'view_mode': 'form',
'res_model': 'pos.make.payment',

View File

@ -29,7 +29,6 @@
<field name="view_type">form</field>
<field name="view_mode">form</field>
<field name="target">new</field>
<field name="context">{'record_id' : active_id}</field>
</record>