Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🎉1️⃣0️⃣ pos_disable_payment_restaurant module (#941)
* [10.0][NEW] pos_disable_payment_restaurant module (it-projects-llc/addons-dev#394) * [REF] remove old code * [10.0][NEW] Disable payments in Restaurant * [10.0][FIX] pos_disable_payment_restaurant: line is undefined (it-projects-llc/addons-dev#404) * [DOC] pos_disable_payment_restaurant description (it-projects-llc/addons-dev#401) * [DOC] pos_disable_payment_restaurant description * 🚑 pos_disable_payment_resturant: the options work correctly now (it-projects-llc/addons-dev#595) * 📖 pos_disable_payment_restaurant (it-projects-llc/addons-dev#593) * [10.0][NEW] pos_disable_payment_restaurant module (it-projects-llc/addons-dev#394) * [REF] remove old code * [10.0][NEW] Disable payments in Restaurant * [DOC] pos_disable_payment_restaurant description * [10.0][FIX] pos_disable_payment_restaurant: line is undefined (it-projects-llc/addons-dev#404) * 📖 pos_disable_payment_restaurant module * 📖 pos_disable_payment_restaurant: update for the docs * 🛡️ added ci tests * 🛡️ fix tests * 🛡️ pos_disable_payment_restaurant: fixes for ci tests (it-projects-llc/addons-dev#615) * 🛡️ pos_disable_payment_restaurant: ci tests * 🛡️ fix tests * 🛡️ new fix * 🛡️ update for tests; 📖 update for docs * 📖 update for description * 🛡️ fixes for test * 🛡️ minor fix * 🌹 pos_disable_payment: changelog * 🌹 fix version * 🌹 version
- Loading branch information
Showing
26 changed files
with
575 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
.. image:: https://img.shields.io/badge/license-LGPL--3-blue.png | ||
:target: https://www.gnu.org/licenses/lgpl | ||
:alt: License: LGPL-3 | ||
|
||
=============================================== | ||
Disable options in POS (restaurant extension) | ||
=============================================== | ||
|
||
Control access to POS Restaurant options | ||
|
||
The module adds new options on user form (``Point of Sale`` tab): | ||
|
||
* ``Allow change Qty for kitchen orders`` | ||
* ``Allow remove kitchen order line`` | ||
|
||
Credits | ||
======= | ||
|
||
Contributors | ||
------------ | ||
* `Dinar Gabbasov <https://it-projects.info/team/GabbasovDinar>`__ | ||
|
||
Sponsors | ||
-------- | ||
* `IT-Projects LLC <https://it-projects.info>`__ | ||
|
||
Maintainers | ||
----------- | ||
* `IT-Projects LLC <https://it-projects.info>`__ | ||
|
||
To get a guaranteed support you are kindly requested to purchase the module at `odoo apps store <https://apps.odoo.com/apps/modules/10.0/pos_disable_payment_restaurant/>`__. | ||
|
||
Thank you for understanding! | ||
|
||
`IT-Projects Team <https://www.it-projects.info/team>`__ | ||
|
||
Further information | ||
=================== | ||
|
||
Demo: http://runbot.it-projects.info/demo/pos-addons/10.0 | ||
|
||
HTML Description: https://apps.odoo.com/apps/modules/10.0/pos_disable_payment_restaurant/ | ||
|
||
Usage instructions: `<doc/index.rst>`_ | ||
|
||
Changelog: `<doc/changelog.rst>`_ | ||
|
||
Tested on Odoo 10.0 c4a11cb42a4a3f3f49c2024fb2b081d638e383b0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html). | ||
from . import models |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2018 Dinar Gabbasov <https://it-projects.info/team/GabbasovDinar> | ||
# Copyright 2018 Ilmir Karamov <https://it-projects.info/team/ilmir-k> | ||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). | ||
{ | ||
"name": """Disable options in POS (restaurant extension)""", | ||
"summary": """Control access to POS restaurant options""", | ||
"category": "Point of Sale", | ||
"live_test_url": "http://apps.it-projects.info/shop/product/pos-disable-payment-restaurant?version=10.0", | ||
"images": ['images/pos_disable_payment_restaurant.jpg'], | ||
"version": "10.0.1.0.0", | ||
"application": False, | ||
|
||
"author": "IT-Projects LLC, Dinar Gabbasov", | ||
"support": "pos@it-projects.info", | ||
"website": "https://it-projects.info/team/GabbasovDinar", | ||
"license": "LGPL-3", | ||
"price": 29.00, | ||
"currency": "EUR", | ||
|
||
"depends": [ | ||
"pos_disable_payment", | ||
"pos_restaurant", | ||
"web_tour", | ||
], | ||
"external_dependencies": {"python": [], "bin": []}, | ||
"data": [ | ||
"views/template.xml", | ||
"views/view.xml", | ||
"views/assets_demo.xml", | ||
], | ||
"qweb": [ | ||
], | ||
"demo": [ | ||
], | ||
|
||
"post_load": None, | ||
"pre_init_hook": None, | ||
"post_init_hook": None, | ||
"uninstall_hook": None, | ||
|
||
"auto_install": False, | ||
"installable": True, | ||
|
||
"demo_title": "Disable options in POS (restaurant extension)", | ||
"demo_addons": [ | ||
], | ||
"demo_addons_hidden": [ | ||
], | ||
"demo_url": "pos-disable-payment-restaurant", | ||
"demo_summary": "Control access to POS restaurant options", | ||
"demo_images": [ | ||
"images/pos_disable_payment_restaurant.jpg", | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
`1.0.0` | ||
------- | ||
|
||
- Init version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
=============================================== | ||
Disable options in POS (restaurant extension) | ||
=============================================== | ||
|
||
Installation | ||
============ | ||
|
||
* `Install <https://odoo-development.readthedocs.io/en/latest/odoo/usage/install-module.html>`__ this module in a usual way | ||
|
||
Usage | ||
===== | ||
|
||
* Go to ``[Settings] >> Users`` menu | ||
|
||
* Open user form | ||
* Open **Point of Sale** tab | ||
* Uncheck ``[x] Allow change Qty for kitchen orders`` box | ||
* Uncheck ``[x] Allow remove kitchen order line`` box | ||
* Click ``[Save]`` | ||
|
||
* Go to ``[Point of Sale]`` menu | ||
* Open POS session | ||
|
||
* Add products allowed to be sent to kitchen | ||
* Click ``[Order]`` | ||
* RESULT: Disabled ``Qty`` button | ||
* Then set product quantity to ``0`` using ``Backspace`` button | ||
* RESULT: Once the qty equals to 0, ``Backspace`` button is disabled | ||
|
Binary file added
BIN
+154 KB
pos_disable_payment_restaurant/images/pos_disable_payment_restaurant.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html). | ||
from . import model |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2018 Dinar Gabbasov <https://it-projects.info/team/GabbasovDinar> | ||
# Copyright 2018 Kolushov Alexandr <https://it-projects.info/team/KolushovAlexandr> | ||
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html). | ||
from odoo import fields, models, api | ||
|
||
|
||
class ResUsers(models.Model): | ||
_inherit = 'res.users' | ||
|
||
allow_decrease_kitchen = fields.Boolean('Allow change Qty for kitchen orders', default=True) | ||
allow_remove_kitchen_order_line = fields.Boolean('Allow remove kitchen order line', default=True) | ||
|
||
@api.onchange('allow_delete_order_line') | ||
def _onchange_allow_delete_order_line(self): | ||
if self.allow_delete_order_line is False: | ||
self.allow_remove_kitchen_order_line = False |
Binary file added
BIN
+283 KB
pos_disable_payment_restaurant/static/description/disable_backspace_button.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.