Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ parserOptions:

overrides:
- files:
- "**/*.esm.js"
- "**/*.js"
parserOptions:
sourceType: module

Expand Down
120 changes: 120 additions & 0 deletions pos_disable_pricelist_selection/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
===============================
POS Disable Pricelist Selection
===============================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:d2fb6671182ac92b2c8e542696528e2223bec652a703be4de8b434601e6e0094
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-LGPL--3-blue.png
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fpos-lightgray.png?logo=github
:target: https://github.com/OCA/pos/tree/17.0/pos_disable_pricelist_selection
:alt: OCA/pos
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/pos-17-0/pos-17-0-pos_disable_pricelist_selection
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/pos&target_branch=17.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module allows to restrict POS interface user from selecting any or
specific pricelists.

**Table of contents**

.. contents::
:local:

Use Cases / Context
===================

In case there is a structure of pricelists with lines using "Formula:
Based on" (eg: Pricelist 3 is based on Pricelist 2 which is based on
Pricelist 1) they all need to be added in "Available pricelists" for POS
to load correctly.

Usage
=====

In POS configuration, enable advanced pricelists and add all pricelists
with reference to pricelists to be used in POS in "Available
Pricelists".

To restrict POS user from selecting any pricelist (therefore only use
prices from "Default Pricelist"), enable boolean "Hide Pricelist Button"

To restrict POS user's pricelist selection to a set of pricelists, add
them to "Selectable Pricelists". Note: make sure "Default Pricelist" is
among "Selectable Pricelists".

Changelog
=========

14.0.1.0.0
----------

- Initial release

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 to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/pos/issues/new?body=module:%20pos_disable_pricelist_selection%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
-------

* Ooops
* Cetmix
* Almas Kopeyev
* IT-Projects LLC

Contributors
------------

- Ooops404
<`https://www.ooops404.com/\\> <https://www.ooops404.com/\>>`__
- Cetmix <`https://cetmix.com/\\> <https://cetmix.com/\>>`__

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

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.

.. |maintainer-ilyasprogrammer| image:: https://github.com/ilyasprogrammer.png?size=40px
:target: https://github.com/ilyasprogrammer
:alt: ilyasprogrammer

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-ilyasprogrammer|

This module is part of the `OCA/pos <https://github.com/OCA/pos/tree/17.0/pos_disable_pricelist_selection>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions pos_disable_pricelist_selection/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
26 changes: 26 additions & 0 deletions pos_disable_pricelist_selection/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"name": "POS Disable Pricelist Selection",
"summary": "Disable Pricelist selection button in POS",
"version": "17.0.1.0.0",
"category": "Point of Sale",
"author": (
"Ooops, "
"Cetmix, "
"Almas Kopeyev, "
"IT-Projects LLC, "
"Odoo Community Association (OCA)"
),
"contributors": ["Cetmix", "Almas Kopeyev"],
"maintainers": ["ilyasprogrammer"],
"website": "https://github.com/OCA/pos",
"license": "LGPL-3",
"depends": ["point_of_sale"],
"data": ["views/pos_config_view.xml"],
"assets": {
"point_of_sale._assets_pos": [
"pos_disable_pricelist_selection/static/src/**/*",
]
},
"installable": True,
"application": False,
}
69 changes: 69 additions & 0 deletions pos_disable_pricelist_selection/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_disable_pricelist_selection
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2024-03-20 21:34+0000\n"
"Last-Translator: Ivorra78 <informatica@totmaterial.es>\n"
"Language-Team: none\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.17\n"

#. module: pos_disable_pricelist_selection
#: model:ir.model.fields,field_description:pos_disable_pricelist_selection.field_pos_config__display_name
msgid "Display Name"
msgstr "Mostrar Nombre"

#. module: pos_disable_pricelist_selection
#: model:ir.model.fields,field_description:pos_disable_pricelist_selection.field_pos_config__hide_pricelist_button
#: model_terms:ir.ui.view,arch_db:pos_disable_pricelist_selection.pos_config_view_form
msgid "Hide Pricelist Button"
msgstr "Ocultar Botón de Lista de Precios"

#. module: pos_disable_pricelist_selection
#: model:ir.model.fields,field_description:pos_disable_pricelist_selection.field_pos_config__id
msgid "ID"
msgstr "ID"

#. module: pos_disable_pricelist_selection
#: model:ir.model.fields,field_description:pos_disable_pricelist_selection.field_pos_config____last_update
msgid "Last Modified on"
msgstr "Última Modificación el"

#. module: pos_disable_pricelist_selection
#: model_terms:ir.ui.view,arch_db:pos_disable_pricelist_selection.pos_config_view_form
msgid "Make sure Default Pricelist is within selectable pricelists."
msgstr ""
"Asegúrese de que la Lista de Precios por Defecto está dentro de las listas "
"de precios seleccionables."

#. module: pos_disable_pricelist_selection
#: model:ir.model,name:pos_disable_pricelist_selection.model_pos_config
msgid "Point of Sale Configuration"
msgstr "Configuración de Punto de Venta"

#. module: pos_disable_pricelist_selection
#: model:ir.model.fields,field_description:pos_disable_pricelist_selection.field_pos_config__pricelist_id_domain
msgid "Pricelist Id Domain"
msgstr "Lista de precios Id Dominio"

#. module: pos_disable_pricelist_selection
#: model:ir.model.fields,field_description:pos_disable_pricelist_selection.field_pos_config__selectable_pricelist_ids
msgid "Selectable Pricelists"
msgstr "Listas de Precios Seleccionables"

#. module: pos_disable_pricelist_selection
#. openerp-web
#: code:addons/pos_disable_pricelist_selection/static/src/xml/ClientDetailsEdit.xml:0
#, python-format
msgid ""
"env.pos.pricelists.length gt 1 and !env.pos.config.hide_pricelist_button"
msgstr ""
"env.pos.pricelists.length gt 1 and !env.pos.config.hide_pricelist_button"
69 changes: 69 additions & 0 deletions pos_disable_pricelist_selection/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_disable_pricelist_selection
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-12-29 12:33+0000\n"
"Last-Translator: Francesco Foresti <francesco.foresti@ooops404.com>\n"
"Language-Team: none\n"
"Language: it\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.17\n"

#. module: pos_disable_pricelist_selection
#: model:ir.model.fields,field_description:pos_disable_pricelist_selection.field_pos_config__display_name
msgid "Display Name"
msgstr "Nome visualizzato"

#. module: pos_disable_pricelist_selection
#: model:ir.model.fields,field_description:pos_disable_pricelist_selection.field_pos_config__hide_pricelist_button
#: model_terms:ir.ui.view,arch_db:pos_disable_pricelist_selection.pos_config_view_form
msgid "Hide Pricelist Button"
msgstr "Nascondi selezione listino prezzi"

#. module: pos_disable_pricelist_selection
#: model:ir.model.fields,field_description:pos_disable_pricelist_selection.field_pos_config__id
msgid "ID"
msgstr "ID"

#. module: pos_disable_pricelist_selection
#: model:ir.model.fields,field_description:pos_disable_pricelist_selection.field_pos_config____last_update
msgid "Last Modified on"
msgstr "Ultima modifica il"

#. module: pos_disable_pricelist_selection
#: model_terms:ir.ui.view,arch_db:pos_disable_pricelist_selection.pos_config_view_form
msgid "Make sure Default Pricelist is within selectable pricelists."
msgstr ""
"Assicurati che il listino prezzi predefinito sia incluso tra i listini "
"selezionabili."

#. module: pos_disable_pricelist_selection
#: model:ir.model,name:pos_disable_pricelist_selection.model_pos_config
msgid "Point of Sale Configuration"
msgstr "Configurazione punto vendita"

#. module: pos_disable_pricelist_selection
#: model:ir.model.fields,field_description:pos_disable_pricelist_selection.field_pos_config__pricelist_id_domain
msgid "Pricelist Id Domain"
msgstr "Dominio ID listino prezzi"

#. module: pos_disable_pricelist_selection
#: model:ir.model.fields,field_description:pos_disable_pricelist_selection.field_pos_config__selectable_pricelist_ids
msgid "Selectable Pricelists"
msgstr "Listini prezzi selezionabili"

#. module: pos_disable_pricelist_selection
#. openerp-web
#: code:addons/pos_disable_pricelist_selection/static/src/xml/ClientDetailsEdit.xml:0
#, python-format
msgid ""
"env.pos.pricelists.length gt 1 and !env.pos.config.hide_pricelist_button"
msgstr ""
"env.pos.pricelists.length gt 1 and !env.pos.config.hide_pricelist_button"
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_disable_pricelist_selection
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: pos_disable_pricelist_selection
#: model:ir.model.fields,field_description:pos_disable_pricelist_selection.field_pos_config__display_name
msgid "Display Name"
msgstr ""

#. module: pos_disable_pricelist_selection
#: model:ir.model.fields,field_description:pos_disable_pricelist_selection.field_pos_config__hide_pricelist_button
#: model_terms:ir.ui.view,arch_db:pos_disable_pricelist_selection.pos_config_view_form
msgid "Hide Pricelist Button"
msgstr ""

#. module: pos_disable_pricelist_selection
#: model:ir.model.fields,field_description:pos_disable_pricelist_selection.field_pos_config__id
msgid "ID"
msgstr ""

#. module: pos_disable_pricelist_selection
#: model:ir.model.fields,field_description:pos_disable_pricelist_selection.field_pos_config____last_update
msgid "Last Modified on"
msgstr ""

#. module: pos_disable_pricelist_selection
#: model_terms:ir.ui.view,arch_db:pos_disable_pricelist_selection.pos_config_view_form
msgid "Make sure Default Pricelist is within selectable pricelists."
msgstr ""

#. module: pos_disable_pricelist_selection
#: model:ir.model,name:pos_disable_pricelist_selection.model_pos_config
msgid "Point of Sale Configuration"
msgstr ""

#. module: pos_disable_pricelist_selection
#: model:ir.model.fields,field_description:pos_disable_pricelist_selection.field_pos_config__pricelist_id_domain
msgid "Pricelist Id Domain"
msgstr ""

#. module: pos_disable_pricelist_selection
#: model:ir.model.fields,field_description:pos_disable_pricelist_selection.field_pos_config__selectable_pricelist_ids
msgid "Selectable Pricelists"
msgstr ""

#. module: pos_disable_pricelist_selection
#. openerp-web
#: code:addons/pos_disable_pricelist_selection/static/src/xml/ClientDetailsEdit.xml:0
#, python-format
msgid ""
"env.pos.pricelists.length gt 1 and !env.pos.config.hide_pricelist_button"
msgstr ""
1 change: 1 addition & 0 deletions pos_disable_pricelist_selection/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import pos_config
Loading