[IMP] Add settings in Sales Config to install pos_restaurant,pos_loyalty,pos_discount
This commit is contained in:
@@ -26,3 +26,6 @@ import report
|
||||
import res_users
|
||||
import res_partner
|
||||
import wizard
|
||||
import res_config
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
||||
@@ -72,6 +72,7 @@ Main Features
|
||||
'account_statement_report.xml',
|
||||
'res_users_view.xml',
|
||||
'res_partner_view.xml',
|
||||
'res_config_view.xml',
|
||||
'views/report_statement.xml',
|
||||
'views/report_usersproduct.xml',
|
||||
'views/report_receipt.xml',
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
from openerp.osv import fields, osv
|
||||
|
||||
class sale_configuration(osv.TransientModel):
|
||||
_inherit = 'sale.config.settings'
|
||||
|
||||
_columns = {
|
||||
'module_pos_restaurant': fields.boolean("Use restaurant extensions",
|
||||
help='This module adds several restaurant features to the Point of Sale: \n\n- Bill Printing: Allows you to print a receipt before the order is paid \n\n- Bill Splitting: Allows you to split an order into different orders \n\n- Kitchen Order Printing: allows you to print orders updates to kitchen or bar printers'),
|
||||
'module_pos_loyalty': fields.boolean("Use loyalty programs",
|
||||
help='Allows you to define a loyalty program in the point of sale, where the customers earn loyalty points and get rewards'),
|
||||
'module_pos_discount': fields.boolean("Allow global discounts on point of sales orders",
|
||||
help='Allows the cashier to quickly give a percentage sale discount for all the sales order to a customer'),
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<openerp>
|
||||
<data>
|
||||
<record id="view_sale_config_settings_form_pos" model="ir.ui.view">
|
||||
<field name="name">sale.config.settings.form.pos</field>
|
||||
<field name="model">sale.config.settings</field>
|
||||
<field name="inherit_id" ref="base_setup.view_sale_config_settings"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='module_crm']" position="before">
|
||||
<separator string="Point of Sale"/>
|
||||
<group>
|
||||
<label for="id" string="Extensions"/>
|
||||
<div>
|
||||
<div>
|
||||
<field name="module_pos_restaurant" class="oe_inline"/>
|
||||
<label for="module_pos_restaurant"/>
|
||||
</div>
|
||||
<div>
|
||||
<field name="module_pos_loyalty" class="oe_inline"/>
|
||||
<label for="module_pos_loyalty"/>
|
||||
</div>
|
||||
<div>
|
||||
<field name="module_pos_discount" class="oe_inline"/>
|
||||
<label for="module_pos_discount"/>
|
||||
</div>
|
||||
</div>
|
||||
</group>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
</data>
|
||||
</openerp>
|
||||
Reference in New Issue
Block a user