From 75fb009dae2a5614e671215a6cf035edcb39af4a Mon Sep 17 00:00:00 2001 From: Fabien Pinckaers Date: Thu, 8 Dec 2011 13:01:11 +0100 Subject: [PATCH] [IMP] fix on PoS module bzr revid: fp@tinyerp.com-20111208120111-skr3af91uiqot1ie --- addons/point_of_sale/point_of_sale.py | 16 +-- addons/point_of_sale/point_of_sale_view.xml | 112 +++++------------- .../security/ir.model.access.csv | 7 +- 3 files changed, 42 insertions(+), 93 deletions(-) diff --git a/addons/point_of_sale/point_of_sale.py b/addons/point_of_sale/point_of_sale.py index b19405bd43f..1afa10b1be3 100644 --- a/addons/point_of_sale/point_of_sale.py +++ b/addons/point_of_sale/point_of_sale.py @@ -122,10 +122,10 @@ class pos_order(osv.osv): 'partner_id': fields.many2one('res.partner', 'Customer', change_default=True, select=1, states={'draft': [('readonly', False)], 'paid': [('readonly', False)]}), 'state': fields.selection([('draft', 'New'), - ('paid', 'Done'), + ('cancel', 'Cancelled'), + ('paid', 'Paid'), ('done', 'Posted'), - ('invoiced', 'Invoiced'), - ('cancel', 'Cancelled')], + ('invoiced', 'Invoiced')], 'State', readonly=True), 'invoice_id': fields.many2one('account.invoice', 'Invoice'), @@ -691,10 +691,12 @@ pos_category() class product_product(osv.osv): _inherit = 'product.product' _columns = { - 'income_pdt': fields.boolean('Product for Input'), - 'expense_pdt': fields.boolean('Product for Output'), - 'img': fields.binary('Pos Image, must be 50x50'), - 'pos_categ_id': fields.many2one('pos.category','POS Category', change_default=True, domain="[('type','=','normal')]" ,help="Select a pos category for the current product") + 'income_pdt': fields.boolean('PoS Cash Input', help="This is a product you can use to put cash into a statement for the point of sale backend."), + 'expense_pdt': fields.boolean('PoS Cash Output', help="This is a product you can use to take cash from a statement for the point of sale backend, exemple: money lost, transfer to bank, etc."), + 'img': fields.binary('Product Image, must be 50x50', help="Use an image size of 50x50."), + 'pos_categ_id': fields.many2one('pos.category','PoS Category', + domain="[('type','=','normal')]", + help="If you want to sell this product through the point of sale, select the category it belongs to.") } product_product() diff --git a/addons/point_of_sale/point_of_sale_view.xml b/addons/point_of_sale/point_of_sale_view.xml index 165c6c83e3a..b69305c1a30 100644 --- a/addons/point_of_sale/point_of_sale_view.xml +++ b/addons/point_of_sale/point_of_sale_view.xml @@ -12,11 +12,11 @@ pos.order form -
+ - +