Skip to content
Snippets Groups Projects
Commit aa969752 authored by Fabien Pinckaers's avatar Fabien Pinckaers
Browse files

[IMP] pos, -u point_of_sale works better

bzr revid: fp@tinyerp.com-20110925184012-t1x14v2it65zsm0o
parent fccc5304
No related branches found
No related tags found
No related merge requests found
......@@ -31,7 +31,6 @@
-
!python {model: pos.order}: |
order = self.browse(cr,uid,ref('pos_order_pos1'))
print order.state, order.invoice_id, order.amount_total, order.amount_paid
-
!assert {model: pos.order, id: pos_order_pos1, string: State not correct}:
- state == 'paid'
......
......@@ -9,13 +9,13 @@
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Apply Discount">
<group col="2" colspan="4">
<field name="discount"/>
<button icon='gtk-cancel' special="cancel"
string="Close" />
<button name="apply_discount" string="Apply Discount"
colspan="1" type="object" icon="gtk-ok" />
</group>
<field name="discount" colspan="4"/>
<separator colspan="2" string=""/>
<group colspan="2"/>
<button icon='gtk-cancel' special="cancel"
string="Close" />
<button name="apply_discount" string="Apply Discount"
colspan="1" type="object" icon="gtk-ok" />
</form>
</field>
</record>
......
......@@ -51,7 +51,7 @@ class pos_open_statement(osv.osv_memory):
for journal in journal_obj.browse(cr, uid, journal_ids, context=context):
ids = statement_obj.search(cr, uid, [('state', '!=', 'confirm'), ('user_id', '=', uid), ('journal_id', '=', journal.id)], context=context)
if len(ids):
raise osv.except_osv(_('Message'), _('You can not open a Cashbox for "%s".\nPlease close its related cash register.') %(journal.name))
continue
number = ''
if journal.sequence_id:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment