[IMP] point_of_sale: moved the barcode field to the view header, and gave it a simple...
authorFrederic van der Essen <fva@openerp.com / fvdessen+o@gmail.com>
Tue, 18 Nov 2014 22:14:10 +0000 (23:14 +0100)
committerFrédéric van der Essen <fvdessen@gmail.com>
Wed, 26 Nov 2014 11:18:50 +0000 (12:18 +0100)
addons/point_of_sale/point_of_sale.py
addons/point_of_sale/point_of_sale_view.xml

index f48f800..b235896 100644 (file)
@@ -91,7 +91,7 @@ class pos_config(osv.osv):
         'group_by' : fields.boolean('Group Journal Items', help="Check this if you want to group the Journal Items by Product while closing a Session"),
         'pricelist_id': fields.many2one('product.pricelist','Pricelist', required=True),
         'company_id': fields.many2one('res.company', 'Company', required=True),
-        'barcode_nomenclature_id':  fields.many2one('barcode.nomenclature','Barcode Nomenclature', help='A barcode nomenclature', required=True),
+        'barcode_nomenclature_id':  fields.many2one('barcode.nomenclature','Barcodes', help='Defines what kind of barcodes are available and how they are assigned to products, customers and cashiers', required=True),
         'group_pos_manager_id': fields.many2one('res.groups','Point of Sale Manager Group', help='This field is there to pass the id of the pos manager group to the point of sale client'),
         'group_pos_user_id':    fields.many2one('res.groups','Point of Sale User Group', help='This field is there to pass the id of the pos user group to the point of sale client'),
     }
index 7c5bee0..d7a0331 100644 (file)
                             <field name="pricelist_id" groups="product.group_sale_pricelist"/>
                             <field name="journal_id" widget="selection"/>
                             <field name="group_by" groups="account.group_account_user"/>
+                            <field name="barcode_nomenclature_id" />
                             <field name="sequence_id" readonly="1" groups="base.group_no_one"/>
                             <field name="currency_id" invisible="1"/>
                         </group>
                             <field name="receipt_header" placeholder="A custom receipt header message"/>
                             <field name="receipt_footer" placeholder="A custom receipt header footage"/>
                         </group>
-                        <group string="Barcode Nomenclature" col="4">
-                            <field name="barcode_nomenclature_id" />
-                        </group>
                     </sheet>
 
                 </form>