summaryrefslogtreecommitdiff
path: root/addons/pos_mercury/views
diff options
context:
space:
mode:
authorMansi Gandhi <mag@odoo.com>2017-01-11 18:48:19 +0530
committerChristophe Monniez <moc@odoo.com>2017-08-07 14:24:45 +0200
commit80e89c7a11d16fad6248e7b1cc4bebeea9e71545 (patch)
tree98c3b57e3ac0c039b66d5ff1b22d436324bff970 /addons/pos_mercury/views
parentbbcebcc12360eb7edca75ccb65180a954fcd6120 (diff)
[IMP] point_of_sale: Add new settings form per POS
Purpose: Replace POS APP settings with a clean POS Form settings, one per POS - add state button for (active/inactive) archive/unarchive and remove boolean field. - remove 'Reprint Receipt' field from pos_reprint module and related code. - remove 'Multi-currencies' field and related code. - put 'Company' field under the 'Taxes' block and 'Sales Channel' under the 'Pricing' block. - add 'save' buttons to install needed modules manually. - removed constrains and set default fiscal value on fiscal position ids even if that not selected. - change the skip Receipt Screen label to a more appropriate one. - Tax help only appears when Tax-included is selected. * [IMP] point_of_sale: Removing multiple prices prod Purpose: The choice of the method for "Multiple price per product" was not appropriate for the Point Of Sale. Only the choice of the Pricelist make sense. So, only the Pricelist can be choosen in the POS config. * [IMP] point_of_sale, pos_discount, pos_restaurant: Generic module install Purpose: Before this improvement, some fields were used in pos.config to automatically install some modules. This fix tries to mimic the ResConfigSettings transient so that when a field starts with 'module_', it's automaticaly installed.
Diffstat (limited to 'addons/pos_mercury/views')
-rw-r--r--addons/pos_mercury/views/pos_config_setting_views.xml17
-rw-r--r--addons/pos_mercury/views/pos_mercury_views.xml2
2 files changed, 11 insertions, 8 deletions
diff --git a/addons/pos_mercury/views/pos_config_setting_views.xml b/addons/pos_mercury/views/pos_config_setting_views.xml
index 4d9677344a9..6a2331d0079 100644
--- a/addons/pos_mercury/views/pos_config_setting_views.xml
+++ b/addons/pos_mercury/views/pos_config_setting_views.xml
@@ -1,13 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
- <record id="pos_config_settings_view_form_inherit_pos_mercury" model="ir.ui.view">
- <field name="name">pos.config.settings.form.inherit.mercury</field>
- <field name="model">pos.config.settings</field>
- <field name="inherit_id" ref="point_of_sale.pos_config_settings_view_form"/>
+ <record id="pos_config_view_form_inherit_pos_mercury" model="ir.ui.view">
+ <field name="name">pos.config.form.inherit.mercury</field>
+ <field name="model">pos.config</field>
+ <field name="inherit_id" ref="point_of_sale.pos_config_view_form"/>
<field name="arch" type="xml">
- <div id="msg_pos_mercury" position="replace">
- <div class="mt16" attrs="{'invisible': [('module_pos_mercury', '=', False)]}">
- <button name="%(pos_mercury.action_configuration_form)d" icon="fa-arrow-right" type="action" string="Mercury Configuration" class="btn-link"/>
+ <div id="btn_use_pos_mercury" position="replace">
+ <div class="mt16">
+ <button name="%(pos_mercury.action_configuration_form)d" icon="fa-arrow-right" type="action" string="Vantiv Accounts" class="btn-link"/>
+ </div>
+ <div>
+ <a class="oe_link" href="https://www.odoo.com/page/point-of-sale-hardware#part_8" target="_blank"><i class="fa fa-fw fa-arrow-right"/>Buy a card reader</a>
</div>
</div>
</field>
diff --git a/addons/pos_mercury/views/pos_mercury_views.xml b/addons/pos_mercury/views/pos_mercury_views.xml
index a201a02070f..d9f668b6c0d 100644
--- a/addons/pos_mercury/views/pos_mercury_views.xml
+++ b/addons/pos_mercury/views/pos_mercury_views.xml
@@ -104,6 +104,6 @@
</field>
</record>
- <menuitem parent="point_of_sale.pos_config_menu_configuration" action="pos_mercury.action_configuration_form" id="menu_pos_pos_mercury_config" sequence="35"/>
+ <menuitem parent="point_of_sale.menu_point_config_product" action="pos_mercury.action_configuration_form" id="menu_pos_pos_mercury_config" groups="base.group_no_one" sequence="35"/>
</data>
</odoo>