-
-
Notifications
You must be signed in to change notification settings - Fork 586
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🎉1️⃣0️⃣ pos_disable_payment_restaurant module #941
Merged
ilmir-k
merged 11 commits into
itpp-labs:10.0
from
ilmir-k:10.0-pos_disable_payment_restaurant
Apr 8, 2019
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
9a2ba85
[10.0][NEW] pos_disable_payment_restaurant module (it-projects-llc/ad…
ad504b1
[10.0][FIX] pos_disable_payment_restaurant: line is undefined (it-pro…
2ee00c9
[DOC] pos_disable_payment_restaurant description (it-projects-llc/add…
ilmir-k 3c44df4
:ambulance: pos_disable_payment_resturant: the options work correctly…
ae7326e
:book: pos_disable_payment_restaurant (it-projects-llc/addons-dev#593)
ilmir-k 7598f58
:shield: pos_disable_payment_restaurant: fixes for ci tests (it-proje…
ilmir-k b1ebbca
:shield: fixes for test
ilmir-k 68517cd
:shield: minor fix
ilmir-k 3865407
:rose: pos_disable_payment: changelog
ilmir-k ee4307a
:rose: fix version
ilmir-k ca955d1
:rose: version
ilmir-k File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this improvement requires the second number to be changed
https://odoo-development.readthedocs.io/en/latest/dev/docs/__manifest__.py.html?highlight=version