Iván Todorovich
5 years ago
10 changed files with 65 additions and 97 deletions
-
67pos_quick_logout/README.rst
-
1pos_quick_logout/__init__.py
-
6pos_quick_logout/__manifest__.py
-
1pos_quick_logout/models/__init__.py
-
1pos_quick_logout/models/pos_config.py
-
2pos_quick_logout/readme/CONTRIBUTORS.rst
-
19pos_quick_logout/readme/DESCRIPTION.rst
-
38pos_quick_logout/static/src/js/pos_quick_logout.js
-
8pos_quick_logout/views/assets.xml
-
19pos_quick_logout/views/pos_config_view.xml
@ -1,67 +0,0 @@ |
|||
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg |
|||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html |
|||
:alt: License: AGPL-3 |
|||
|
|||
================== |
|||
PoS - Quick Logout |
|||
================== |
|||
|
|||
This module was written to extend the functionality of Odoo Point Of Sale about |
|||
changing of cashier. |
|||
|
|||
This module add a simple button 'Log Out' available in Point Of Sale Front End |
|||
UI. This button is available when the cashier is not the initial user logged in |
|||
Odoo. It allows to log out quickly, wihout selecting again the user in the |
|||
list. This module is useful for users that use regularly the change of cashier, |
|||
especialy with 'pos_access_right', when users doesn't have the right to do some |
|||
actions like set discount, change unit price, ... |
|||
|
|||
Implemented Features |
|||
-------------------- |
|||
|
|||
* By default, the header is unchanged |
|||
|
|||
.. image:: /pos_quick_logout/static/description/cashier_user_identical.png |
|||
|
|||
|
|||
* If the cashier changed, and is not the user logged in Odoo, the extra button appears |
|||
|
|||
.. image:: /pos_quick_logout/static/description/cashier_user_different.png |
|||
|
|||
Usage |
|||
===== |
|||
|
|||
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas |
|||
:alt: Try me on Runbot |
|||
:target: https://runbot.odoo-community.org/runbot/184/9.0 |
|||
|
|||
Bug Tracker |
|||
=========== |
|||
|
|||
Bugs are tracked on `GitHub Issues |
|||
<https://github.com/OCA/pos/issues>`_. In case of trouble, please |
|||
check there if your issue has already been reported. If you spotted it first, |
|||
help us smashing it by providing a detailed and welcomed feedback. |
|||
|
|||
Credits |
|||
======= |
|||
|
|||
Contributors |
|||
------------ |
|||
|
|||
* Sylvain LE GAL <https://twitter.com/legalsylvain> |
|||
|
|||
Maintainer |
|||
---------- |
|||
|
|||
.. image:: https://odoo-community.org/logo.png |
|||
:alt: Odoo Community Association |
|||
:target: https://odoo-community.org |
|||
|
|||
This module is maintained by the OCA. |
|||
|
|||
OCA, or the Odoo Community Association, is a nonprofit organization whose |
|||
mission is to support the collaborative development of Odoo features and |
|||
promote its widespread use. |
|||
|
|||
To contribute to this module, please visit https://odoo-community.org. |
@ -1,2 +1 @@ |
|||
# -*- coding: utf-8 -*- |
|||
from . import models |
@ -1,2 +1 @@ |
|||
# -*- coding: utf-8 -*- |
|||
from . import pos_config |
@ -0,0 +1,2 @@ |
|||
* Sylvain LE GAL <https://twitter.com/legalsylvain> |
|||
* Druidoo <https://www.druidoo.io> |
@ -0,0 +1,19 @@ |
|||
This module was written to extend the functionality of Odoo Point Of Sale about |
|||
changing of cashier. |
|||
|
|||
This module add a simple button 'Log Out' available in Point Of Sale Front End |
|||
UI. This button is available when the cashier is not the initial user logged in |
|||
Odoo. It allows to log out quickly, wihout selecting again the user in the |
|||
list. This module is useful for users that use regularly the change of cashier, |
|||
especialy with 'pos_access_right', when users doesn't have the right to do some |
|||
actions like set discount, change unit price, ... |
|||
|
|||
|
|||
* By default, the header is unchanged |
|||
|
|||
.. image:: ../static/description/cashier_user_identical.png |
|||
|
|||
|
|||
* If the cashier changed, and is not the user logged in Odoo, the extra button appears |
|||
|
|||
.. image:: ../static/description/cashier_user_different.png |
@ -1,13 +1,26 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
|
|||
<odoo> |
|||
|
|||
<record id="view_pos_config_view_form_quick_logout" model="ir.ui.view"> |
|||
<field name="name">pos.config.form.quick.logout</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="priority" eval="30"/> |
|||
<field name="arch" type="xml"> |
|||
<xpath expr="//field[@name='iface_big_scrollbars']" position="after"> |
|||
<field name="logout_timeout"/> |
|||
<xpath expr="//div[hasclass('o_settings_container')][2]" |
|||
position="inside"> |
|||
<div class="col-12 col-lg-6 o_setting_box"> |
|||
<div class="o_setting_right_pane"> |
|||
<span class="o_form_label">Logout Timeout</span> |
|||
<div class="content-group mt16"> |
|||
<field name="logout_timeout" colspan="4" |
|||
nolabel="1"/> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</xpath> |
|||
</field> |
|||
</record> |
|||
|
|||
</odoo> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue