Skip to content
Permalink
Browse files

⬆️1️⃣2️⃣ pos_partner_deselection

  • Loading branch information...
Ommo73 committed Aug 9, 2019
1 parent e4efe01 commit 0983d1aedfce7a8e9d20a8bc93907a341229f668
@@ -44,4 +44,4 @@ Changelog: `<doc/changelog.rst>`_

Notifications on updates: `via Atom <https://github.com/it-projects-llc/pos-addons/commits/10.0/.atom>`_, `by Email <https://blogtrottr.com/?subscribe=https://github.com/it-projects-llc/pos-addons/commits/10.0/.atom>`_

Tested on Odoo 10.0 db994ca57af4f09953946dede3950c2eb7a94871
Tested on Odoo 12.0 db994ca57af4f09953946dede3950c2eb7a94871
@@ -1,13 +1,13 @@
# -*- coding: utf-8 -*-
# Copyright 2019 Kolushov Alexandr <https://it-projects.info/team/KolushovAlexandr>
# Copyright 2019 Artem Rafailov <https://it-projects.info/team/Ommo73>
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
{
"name": """Partner Deselection""",
"summary": """The module deselects a partner in opened POS on expiry the predefined time interval after the customer was set.""",
"category": "Point of Sale",
# "live_test_url": "http://apps.it-projects.info/shop/product/DEMO-URL?version=10.0",
"images": ['images/pos_partner_deselection.jpg'],
"version": "10.0.1.0.0",
"version": "12.0.1.0.0",
"application": False,

"author": "IT-Projects LLC, Kolushov Alexandr",
@@ -36,7 +36,7 @@
"uninstall_hook": None,

"auto_install": False,
"installable": False,
"installable": True,

# "demo_title": "Deselect Partner",
# "demo_addons": [
@@ -13,8 +13,8 @@ Configuration
* Open menu ``[[ Point of Sale ]]``

* Select a Point of Sale (POS)
* Click on ``[More]`` at the right corner of this POS and then select ``[Settings]`` inside a POS
* Go to the ``Features`` section
* Click on dropdown menu icon at the right corner of this POS and then select ``[Settings]`` inside a POS
* Go to the ``Customer deselection interval`` section
* Specify a **Customer Deselection Interval** in seconds
* Click ``[Save]``

@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# Copyright 2019 Kolushov Alexandr <https://it-projects.info/team/KolushovAlexandr>
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).

@@ -8,7 +8,7 @@ odoo.define('pos_partner_deselection.tour', function (require) {
var _t = core._t;

function pos_opening(){
return [{
return [tour.STEPS.SHOW_APPS_MENU_ITEM, {
trigger: '.o_app[data-menu-xmlid="point_of_sale.menu_point_root"], .oe_menu_toggler[data-menu-xmlid="point_of_sale.menu_point_root"]',
content: _t("Ready to launch your <b>point of sale</b>? <i>Click here</i>."),
position: 'bottom',
@@ -25,7 +25,7 @@ odoo.define('pos_partner_deselection.tour', function (require) {
}

function set_customer(name) {
return [{
return [tour.STEPS.SHOW_APPS_MENU_ITEM, {
trigger: '.button.set-customer',
content: _t("Open the customer screen"),
}, {
@@ -39,7 +39,7 @@ odoo.define('pos_partner_deselection.tour', function (require) {
}

function set_customer_and_check_deselection(nam) {
return set_customer(name).concat([{
return set_customer(name).concat([tour.STEPS.SHOW_APPS_MENU_ITEM, {
trigger: '.order-button.selected',
content: _t("Dummy Ation"),
}, {
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).

from . import test_partner_deselection
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# Copyright 2019 Kolushov Alexandr <https://it-projects.info/team/KolushovAlexandr>
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).

@@ -1,16 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<!--Copyright 2019 Kolushov Alexandr <https://it-projects.info/team/KolushovAlexandr>
Copyright 2019 Artem Rafailov <https://it-projects.info/team/Ommo73>
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). -->
<odoo>

<record id="view_pos_config_form" model="ir.ui.view">
<field name="name">pos.config.form</field>
<field name="model">pos.config</field>
<field name="inherit_id" ref="point_of_sale.view_pos_config_form"/>
<field name="inherit_id" ref="point_of_sale.pos_config_view_form"/>
<field name="arch" type="xml">
<field name="iface_display_categ_images" position="after">
<field name="customer_deselection_interval"/>
</field>
<xpath expr="//h2[text()='Order Interface']/following::div[@class='row mt16 o_settings_container']" position="after">
<h2>Deselection interval</h2>
<div class="row mt16 o_settings_container">
<div id="category_reference" class="col-12 col-lg-6 o_setting_box">
<div class="o_setting_left_pane">
<field name="customer_deselection_interval"/>
</div>
<div class="o_setting_right_pane">
<label for="customer_deselection_interval" string="Customer deselection interval"/>
<div class="text-muted">
Set interval for customer deselection
</div>
</div>
</div>
</div>
</xpath>
</field>
</record>

0 comments on commit 0983d1a

Please sign in to comment.
You can’t perform that action at this time.