[IMP] pos, -u point_of_sale works better

bzr revid: fp@tinyerp.com-20110925184012-t1x14v2it65zsm0o
This commit is contained in:
Fabien Pinckaers
2011-09-25 20:40:12 +02:00
parent fccc5304ed
commit aa96975247
3 changed files with 8 additions and 9 deletions
@@ -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'
+7 -7
View File
@@ -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: