Skip to content
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

[14.0][mig]pos_empty_home #694

Merged
merged 23 commits into from
Aug 5, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
9cac997
[ADD] module pos_empty_home
legalsylvain May 5, 2017
d6d517c
Translated using Weblate (Spanish)
lromero-solvos Jan 28, 2020
4a58647
[MIG] pos_empty_home: Migration to 12.0
ivantodorovich Feb 10, 2020
ae0a627
[FIX] Remove scrollbar when showing the empty page
ivantodorovich Feb 12, 2020
2aa86bf
[IMP] Improve javascript show/hide message
ivantodorovich Feb 20, 2020
e3fdf28
[UPD] Update pos_empty_home.pot
oca-travis Feb 20, 2020
a2b39ba
[UPD] README.rst
OCA-git-bot Feb 20, 2020
167d2a7
Update translation files
oca-transbot Feb 21, 2020
3c88a30
Translated using Weblate (Catalan)
mtbochaca Mar 13, 2020
60b6cb1
Added translation using Weblate (Spanish)
danimv5 Jul 27, 2020
ebf317b
Translated using Weblate (Spanish)
danimv5 Jul 27, 2020
f0578ca
[IMP] pos_empty_home: isort, black, prettier.
dsolanki-initos Apr 19, 2021
9794d55
[MIG] Migrate module pos_empty_home to v13.
dsolanki-initos Apr 19, 2021
ef2c838
[UPD] Update pos_empty_home.pot
oca-travis May 7, 2021
62a47c9
[UPD] README.rst
OCA-git-bot May 7, 2021
dda1f55
[IMP] Simplify code by using qweb
ivantodorovich May 10, 2021
fcf612b
[IMP] Make empty home configurable on each pos.config
ivantodorovich May 10, 2021
02fb0a9
[UPD] Update pos_empty_home.pot
oca-travis Jun 2, 2021
7f86739
[UPD] README.rst
OCA-git-bot Jun 2, 2021
04efcef
pos_empty_home 13.0.1.1.0
OCA-git-bot Jun 2, 2021
53104ba
Update translation files
oca-transbot Jun 2, 2021
7060d17
[IMP] pos_empty_home: black, isort, prettier
hkapatel-initos Jul 29, 2021
d2217fc
[MIG] pos_empty_home: Migration to 14.0
hkapatel-initos Aug 2, 2021
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
89 changes: 89 additions & 0 deletions pos_empty_home/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
==========================
Point of Sale - Empty Home
==========================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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-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:/OCA/pos/tree/13.0/pos_empty_home
:alt: OCA/pos
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/pos-13-0/pos-13-0-pos_empty_home
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/184/13.0
:alt: Try me on Runbot

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

This module extends Odoo Point Of Sale features, displaying an empty home page
at the start of the Point of Sale, or when no search is done and no category
is selected. (when root category is selected)

This module is interesting to avoid to display useless products, when user did
not yet realized a search. (Default displayed products are just the first
eighty products)

It can limits errors to avoid users to select undesired product.


.. image:: https://raw.githubusercontent.com/OCA/pos/13.0/pos_empty_home/static/description/pos_empty_home.png
:width: 800 px

**Table of contents**

.. contents::
:local:

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https:/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 <https:/OCA/pos/issues/new?body=module:%20pos_empty_home%0Aversion:%2013.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
~~~~~~~

* La Louve
* GRAP

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

* Sylvain LE GAL <https://twitter.com/legalsylvain>
* Druidoo <https://www.druidoo.io>
* Dhara Solanki <[email protected]>
* Iván Todorovich <[email protected]>

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.

This module is part of the `OCA/pos <https:/OCA/pos/tree/13.0/pos_empty_home>`_ 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_empty_home/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
18 changes: 18 additions & 0 deletions pos_empty_home/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright (C) 2017-Today: La Louve (<http://www.lalouve.net/>)
# Copyright (C) 2020-Today: Druidoo (<https://www.druidoo.io>)
# @author: Sylvain LE GAL (https://twitter.com/legalsylvain)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

{
"name": "Point of Sale - Empty Home",
"version": "14.0.1.0.0",
"category": "Point Of Sale",
"summary": "Point of Sale - Hide products if no category is selected",
"author": "La Louve, GRAP, Odoo Community Association (OCA)",
"website": "https:/OCA/pos",
"license": "AGPL-3",
"depends": ["point_of_sale"],
"data": ["views/assets.xml", "views/pos_config.xml"],
"qweb": ["static/src/xml/pos_empty_home.xml"],
"demo": ["demo/pos_empty_home.xml"],
}
9 changes: 9 additions & 0 deletions pos_empty_home/demo/pos_empty_home.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<data noupdate="1">
<!-- Disable empty home on pos_config_main, because it can affect test tours -->
<record id="point_of_sale.pos_config_main" model="pos.config">
<field name="iface_empty_home" eval="False" />
</record>
</data>
</odoo>
47 changes: 47 additions & 0 deletions pos_empty_home/i18n/ca.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_empty_home
#
# Translators:
# Marc Tormo i Bochaca <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-06-09 03:08+0000\n"
"PO-Revision-Date: 2020-03-13 11:13+0000\n"
"Last-Translator: mtbochaca <[email protected]>\n"
"Language-Team: Catalan (https://www.transifex.com/oca/teams/23907/ca/)\n"
"Language: ca\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 3.10\n"

#. module: pos_empty_home
#: model:ir.model.fields,field_description:pos_empty_home.field_pos_config__iface_empty_home
msgid "Empty Home"
msgstr ""

#. module: pos_empty_home
#: model:ir.model.fields,help:pos_empty_home.field_pos_config__iface_empty_home
#: model_terms:ir.ui.view,arch_db:pos_empty_home.view_pos_config_form
msgid "Hide products if no category is selected."
msgstr ""

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

#. module: pos_empty_home
#. openerp-web
#: code:addons/pos_empty_home/static/src/xml/pos_empty_home.xml:0
#, python-format
msgid ""
"To select a product, please scan a barcode or search products by category or "
"by name"
msgstr ""
"Per seleccionar un producte, si us plau llegiu un codi de barres o cerqueu "
"un producte per categoria o per nom"
44 changes: 44 additions & 0 deletions pos_empty_home/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_empty_home
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2020-07-27 11:19+0000\n"
"Last-Translator: Daniel Martinez Vila <[email protected]>\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 3.10\n"

#. module: pos_empty_home
#: model:ir.model.fields,field_description:pos_empty_home.field_pos_config__iface_empty_home
msgid "Empty Home"
msgstr ""

#. module: pos_empty_home
#: model:ir.model.fields,help:pos_empty_home.field_pos_config__iface_empty_home
#: model_terms:ir.ui.view,arch_db:pos_empty_home.view_pos_config_form
msgid "Hide products if no category is selected."
msgstr ""

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

#. module: pos_empty_home
#. openerp-web
#: code:addons/pos_empty_home/static/src/xml/pos_empty_home.xml:0
#, python-format
msgid ""
"To select a product, please scan a barcode or search products by category or "
"by name"
msgstr ""
"Para seleccionar un producto, escanee un código de barras o busque productos "
"por categoría o por nombre"
44 changes: 44 additions & 0 deletions pos_empty_home/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_empty_home
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-05-05 09:32+0000\n"
"PO-Revision-Date: 2017-05-05 09:32+0000\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: pos_empty_home
#: model:ir.model.fields,field_description:pos_empty_home.field_pos_config__iface_empty_home
msgid "Empty Home"
msgstr ""

#. module: pos_empty_home
#: model:ir.model.fields,help:pos_empty_home.field_pos_config__iface_empty_home
#: model_terms:ir.ui.view,arch_db:pos_empty_home.view_pos_config_form
msgid "Hide products if no category is selected."
msgstr ""

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

#. module: pos_empty_home
#. openerp-web
#: code:addons/pos_empty_home/static/src/xml/pos_empty_home.xml:0
#, python-format
msgid ""
"To select a product, please scan a barcode or search products by category or "
"by name"
msgstr ""
"Pour sélectionner un produit, veuillez scanner un code barre, ou bien "
"réaliser une recherche de produits par catégorie ou par nom"
39 changes: 39 additions & 0 deletions pos_empty_home/i18n/pos_empty_home.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_empty_home
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 13.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_empty_home
#: model:ir.model.fields,field_description:pos_empty_home.field_pos_config__iface_empty_home
msgid "Empty Home"
msgstr ""

#. module: pos_empty_home
#: model:ir.model.fields,help:pos_empty_home.field_pos_config__iface_empty_home
#: model_terms:ir.ui.view,arch_db:pos_empty_home.view_pos_config_form
msgid "Hide products if no category is selected."
msgstr ""

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

#. module: pos_empty_home
#. openerp-web
#: code:addons/pos_empty_home/static/src/xml/pos_empty_home.xml:0
#, python-format
msgid ""
"To select a product, please scan a barcode or search products by category or"
" by name"
msgstr ""
1 change: 1 addition & 0 deletions pos_empty_home/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import pos_config
14 changes: 14 additions & 0 deletions pos_empty_home/models/pos_config.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright 2021 Iván Todorovich <[email protected]>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from odoo import fields, models


class PosConfig(models.Model):
_inherit = "pos.config"

iface_empty_home = fields.Boolean(
string="Empty Home",
help="Hide products if no category is selected.",
default=True,
)
5 changes: 5 additions & 0 deletions pos_empty_home/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
* Sylvain LE GAL <https://twitter.com/legalsylvain>
* Druidoo <https://www.druidoo.io>
* Dhara Solanki <[email protected]>
* Iván Todorovich <[email protected]>
* Helly kapatel <[email protected]>
13 changes: 13 additions & 0 deletions pos_empty_home/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
This module extends Odoo Point Of Sale features, displaying an empty home page
at the start of the Point of Sale, or when no search is done and no category
is selected. (when root category is selected)

This module is interesting to avoid to display useless products, when user did
not yet realized a search. (Default displayed products are just the first
eighty products)

It can limits errors to avoid users to select undesired product.


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