Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
99 changes: 99 additions & 0 deletions pos_hide_empty_category/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association

=====================================
Point of Sale - Hide Empty Categories
=====================================

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

.. |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/license-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fpos-lightgray.png?logo=github
:target: https://github.com/OCA/pos/tree/16.0/pos_hide_empty_category
:alt: OCA/pos
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/pos-16-0/pos-16-0-pos_hide_empty_category
: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=16.0
:alt: Try me on Runboat

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

This module extends Odoo Point Of Sale features, hidding empty PoS categories.

this module can be usefull to avoid to display categories, if they contains only non saleable products
that can occurs frequently if your shop has seasonal products.


.. image:: https://raw.githubusercontent.com/OCA/pos/16.0/pos_hide_empty_category/static/description/pos_category_tree_view.png
:width: 800 px


.. image:: https://raw.githubusercontent.com/OCA/pos/16.0/pos_hide_empty_category/static/description/pos_front_ui.png
:width: 800 px

**Table of contents**

.. contents::
:local:

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_hide_empty_category%0Aversion:%2016.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
~~~~~~~

* GRAP

Contributors
~~~~~~~~~~~~

* Sylvain LE GAL <https://twitter.com/legalsylvain>

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-legalsylvain| image:: https://github.com/legalsylvain.png?size=40px
:target: https://github.com/legalsylvain
:alt: legalsylvain

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

|maintainer-legalsylvain|

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

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Empty file.
24 changes: 24 additions & 0 deletions pos_hide_empty_category/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Copyright (C) 2021 - Today: GRAP (http://www.grap.coop)
# @author: Sylvain LE GAL
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

{
"name": "Point of Sale - Hide Empty Categories",
"version": "16.0.1.0.0",
"category": "Point Of Sale",
"summary": """Hide PoS categories that doesn't have any products""",
"author": "GRAP, Odoo Community Association (OCA)",
"maintainers": ["legalsylvain"],
"website": "https://github.com/OCA/pos",
"license": "AGPL-3",
"depends": ["point_of_sale"],
"data": [],
"assets": {
"point_of_sale.assets": [
"pos_hide_empty_category/static/src/js/db.js",
]
},
"demo": [
"demo/pos_category.xml",
],
}
20 changes: 20 additions & 0 deletions pos_hide_empty_category/demo/pos_category.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!--
Copyright (C) 2021 - Today: GRAP (http://www.grap.coop)
@author: Sylvain LE GAL
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
-->
<odoo>

<record id="empty_main_category" model="pos.category">
<field name="name">Empty Main Category</field>
<field name="sequence">99</field>
</record>

<record id="empty_child_category" model="pos.category">
<field name="name">Empty Child Category</field>
<field name="parent_id" ref="empty_main_category" />
<field name="sequence">100</field>
</record>

</odoo>
9 changes: 9 additions & 0 deletions pos_hide_empty_category/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#. module: pos_hide_empty_category
#: model:pos.category,name:pos_hide_empty_category.empty_child_category
msgid "Empty Child Category"
msgstr ""

#. module: pos_hide_empty_category
#: model:pos.category,name:pos_hide_empty_category.empty_main_category
msgid "Empty Main Category"
msgstr ""
27 changes: 27 additions & 0 deletions pos_hide_empty_category/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_hide_empty_category
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-03-23 12:22+0000\n"
"Last-Translator: mymage <stefano.consolaro@mymage.it>\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.14.1\n"

#. module: pos_hide_empty_category
#: model:pos.category,name:pos_hide_empty_category.empty_child_category
msgid "Empty Child Category"
msgstr "Categoria figlia vuota"

#. module: pos_hide_empty_category
#: model:pos.category,name:pos_hide_empty_category.empty_main_category
msgid "Empty Main Category"
msgstr "Categoria principale vuota"
25 changes: 25 additions & 0 deletions pos_hide_empty_category/i18n/pos_hide_empty_category.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_hide_empty_category
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.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_hide_empty_category
#: model:pos.category,name:pos_hide_empty_category.empty_child_category
msgid "Empty Child Category"
msgstr ""

#. module: pos_hide_empty_category
#: model:pos.category,name:pos_hide_empty_category.empty_main_category
msgid "Empty Main Category"
msgstr ""

1 change: 1 addition & 0 deletions pos_hide_empty_category/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* Sylvain LE GAL <https://twitter.com/legalsylvain>
12 changes: 12 additions & 0 deletions pos_hide_empty_category/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
This module extends Odoo Point Of Sale features, hidding empty PoS categories.

this module can be usefull to avoid to display categories, if they contains only non saleable products
that can occurs frequently if your shop has seasonal products.


.. image:: ../static/description/pos_category_tree_view.png
:width: 800 px


.. image:: ../static/description/pos_front_ui.png
:width: 800 px
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading