Skip to content
Permalink
Browse files

⬆️1️⃣2️⃣ pos_partner_deselection

  • Loading branch information...
Ommo73 committed Aug 9, 2019
1 parent e4efe01 commit adaf217e979a0d51599e48cf1b975138b6ca72ba
@@ -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).

@@ -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).

@@ -15,10 +14,7 @@ def test_01_partner_deselection(self):
# installed. In js web will only load qweb coming from modules
# that are returned by the backend in module_boot. Without
# this you end up with js, css but no qweb.
cr = self.registry.cursor()
env = Environment(cr, self.uid, {})
cr.release()

env = self.env
env['pos.config'].search([]).write({
'customer_deselection_interval': 1,
})
@@ -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 adaf217

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