Skip to content

[18.0][MIG] pos_remove_pos_category #1355

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

Open
wants to merge 43 commits into
base: 18.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
e1f4f0f
[REF] Rename module name to "pos_remove_pos_category"
sylvainc Apr 1, 2015
735ea1c
Add bug tracker link on README.rst
yvaucher May 22, 2015
e411430
[IMP] make category visible or not in pos
bealdav Jul 23, 2015
b6b4204
[FIX] translation & doc
bealdav Jul 24, 2015
15682fe
Update product.py
jcarlosmontoya Aug 25, 2015
d705f10
Update pos_category.xml
jcarlosmontoya Aug 25, 2015
d9749c0
updates for:
jcarlosmontoya Aug 25, 2015
3ae4874
updates for:
jcarlosmontoya Aug 25, 2015
1795c33
- change self.image by record.image
jcarlosmontoya Aug 25, 2015
a34e771
update for bad definition inverse method in field image_medium
jcarlosmontoya Aug 25, 2015
129ddf2
update js file POS
jcarlosmontoya Aug 27, 2015
b851b44
add widgets2.js file
jcarlosmontoya Aug 27, 2015
458d772
*Modify XML view (style image field)
jcarlosmontoya Aug 30, 2015
7aa4463
update _get_image, _set_image
jcarlosmontoya Aug 31, 2015
a40fc8d
Fixed PEP8 warning: line too long
jcarlosmontoya Sep 2, 2015
008a146
[UPD] prefix versions with 8.0
sbidoul Oct 9, 2015
35c884f
[MIG] Make modules uninstallable
pedrobaeza Oct 14, 2015
9906378
[MIG] Rename manifest files
pedrobaeza Oct 6, 2016
330b6bb
pos_remove_pos_category (#148)
simahawk Feb 28, 2017
5f251ff
OCA Transbot updated translations from Transifex
oca-transbot Mar 4, 2017
ddefc4b
[MIG] pos_remove_pos_category: Migrated to 10.0
mourad-ehm Mar 13, 2017
ebe49ae
[FIX] static javascript assets
sylvainc Apr 10, 2017
16247f2
OCA Transbot updated translations from Transifex
oca-transbot Jun 10, 2017
f16bee5
OCA Transbot updated translations from Transifex
oca-transbot Jul 15, 2017
e506498
[REM] remove pos_remove_pos_category Fix : #200
legalsylvain Aug 21, 2017
b37cc09
Revert "[REM] remove pos_remove_pos_category Fix : #200"
Aug 23, 2017
59f3eb0
[FIX] avoid monkey patch and error on foreign key constraint
Jun 20, 2017
4bb237f
pos_remove_pos_category: inherit the proper view of product.template
alexis-via Aug 28, 2017
05355ea
OCA Transbot updated translations from Transifex
oca-transbot Mar 3, 2018
270cc8f
remove obsolete .pot files [ci skip]
sbidoul Jun 15, 2018
82a3918
[UPD] Update pos_remove_pos_category.pot
oca-travis Jun 22, 2018
4db039d
[ADD] icon.png
OCA-git-bot Apr 3, 2019
4d0afa4
[FIX] pos_remove_pos_category: Add license to manifest
pedrobaeza Jun 7, 2019
1b0e7dd
[12.0][MIG] migrate module pos_remove_pos_category
sebastienbeau Oct 12, 2020
1b3113e
[MIG] pos_remove_pos_category: Migration to 14.0
hparfr Dec 17, 2020
abb52f3
pos_remove_pos_category: Migration to 14.0
hparfr Dec 17, 2020
04d2f52
pos_remove_pos_category: black, isort, ...
hparfr Dec 17, 2020
f8e4157
fixup! pos_remove_pos_category: black, isort, ...
sebastienbeau Jun 10, 2021
3693fc5
[MIG][14.0] pos_remove_pos_category
xavier-bouquiaux Jun 14, 2021
57f89e3
[IMP] add group on pos_category_view for available_in_pos field
mathieudelva Mar 18, 2025
6c50737
[IMP] pos_remove_pos_category: pre-commit auto fixes
thibaultrey Mar 31, 2025
427aaf5
[MIG] pos_remove_pos_category: Migration to 18.0
thibaultrey Mar 31, 2025
ccdf727
[MIG] pos_remove_pos_category: migration 18.0
thibaultrey Apr 2, 2025
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
64 changes: 64 additions & 0 deletions pos_remove_pos_category/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:alt: License

POS Remove POS Category
=======================

This module was written to replace POS categories by product categories
in the point of sale.

Important notes
---------------
- When the module is installed the link beetween products and POS categories
is **overwritten** by a link beetween products and product categories
(the link is the field pos_categ_id in the table product_template)
- When the module is uninstalled the link beetween products and POS categories
is restored in an **empty** state (NULL values)

Installation
============

This module depends on the `point_of_sale` Odoo official module.

Configuration
=============

No configuration is needed just use product categories as standard
pos categories.
You may uncheck 'Available in the Point of Sale' field
in regular product categories if you want that a category becomes invisible
in POS.
Children categories will becomes invisible too, whatever their checkbox state.


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


Credits
=======

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

* Sylvain Calador <[email protected]>
* Simone Orsi <[email protected]>
* Cédric Pigeon <[email protected]>

Maintainer
----------

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

This module is maintained by the OCA.

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.

To contribute to this module, please visit http://odoo-community.org.
4 changes: 4 additions & 0 deletions pos_remove_pos_category/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Copyright (C) 2015-TODAY Akretion (<http://www.akretion.com>).
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from . import models
24 changes: 24 additions & 0 deletions pos_remove_pos_category/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Copyright (C) 2015-TODAY Akretion (<http://www.akretion.com>).
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "POS Remove POS Category",
"version": "18.0.1.0.0",
"author": "Akretion, Camptocamp SA, ACSONE SA/NV, "
"Odoo Community Association (OCA)",
"category": "Point of Sale",
"depends": [
"point_of_sale",
],
"website": "https://github.com/OCA/pos",
"data": [
"views/pos_view.xml",
"views/pos_category_view.xml",
],
"assets": {
"point_of_sale._assets_pos": [
"/pos_remove_pos_category/static/src/overrides/components/**"
],
},
"installable": True,
"license": "AGPL-3",
}
75 changes: 75 additions & 0 deletions pos_remove_pos_category/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_remove_pos_category
#
# Translators:
# enjolras <[email protected]>, 2018
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-03-01 02:01+0000\n"
"PO-Revision-Date: 2018-03-01 02:01+0000\n"
"Last-Translator: enjolras <[email protected]>, 2018\n"
"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\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"

#. module: pos_remove_pos_category
#: model:ir.ui.view,arch_db:pos_remove_pos_category.product_category_list_view
msgid "Available in POS"
msgstr "Disponible en TPV"

#. module: pos_remove_pos_category
#: model:ir.model.fields,field_description:pos_remove_pos_category.field_product_category_available_in_pos
msgid "Available in the Point of Sale"
msgstr "Disponible en el terminal de punto de venta"

#. module: pos_remove_pos_category
#: model:ir.model.fields,help:pos_remove_pos_category.field_product_category_available_in_pos
msgid ""
"Check if you want this category to appear in Point Of Sale.\n"
"If you uncheck, children categories will becomes invisible too, whatever "
"their checkbox state."
msgstr ""
"Active esta casilla si desea que esta categoría aparezca en el TPV.\n"
"Si no está marcada también se ocultarán las categorías hijas, con "
"independencia de su estado."

#. module: pos_remove_pos_category
#: model:ir.model.fields,field_description:pos_remove_pos_category.field_product_category_image
msgid "Image"
msgstr "Imagen"

#. module: pos_remove_pos_category
#: model:ir.model.fields,field_description:pos_remove_pos_category.field_product_category_image_medium
msgid "Image medium"
msgstr "Medio de la imagen"

#. module: pos_remove_pos_category
#: model:ir.model,name:pos_remove_pos_category.model_ir_module_module
msgid "Module"
msgstr "Módulo"

#. module: pos_remove_pos_category
#: model:ir.model,name:pos_remove_pos_category.model_product_category
msgid "Product Category"
msgstr "Categoría de producto"

#. module: pos_remove_pos_category
#: model:ir.model,name:pos_remove_pos_category.model_product_template
msgid "Product Template"
msgstr "Plantilla de producto"

#. module: pos_remove_pos_category
#: model:ir.model.fields,help:pos_remove_pos_category.field_product_category_image
msgid "Show Image Category in Form View"
msgstr "Mostrar categoría de imagen en vista de formulario"

#. module: pos_remove_pos_category
#: model:ir.model.fields,help:pos_remove_pos_category.field_product_category_image_medium
msgid "Show image category button in POS"
msgstr "Mostrar botón de categoría de imagen en el TPV"
77 changes: 77 additions & 0 deletions pos_remove_pos_category/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_remove_pos_category
#
# Translators:
# OCA Transbot <[email protected]>, 2017
# leemannd <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-07-12 02:44+0000\n"
"PO-Revision-Date: 2017-07-12 02:44+0000\n"
"Last-Translator: leemannd <[email protected]>, 2017\n"
"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n"
"Language: fr\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"

#. module: pos_remove_pos_category
#: model:ir.ui.view,arch_db:pos_remove_pos_category.product_category_list_view
msgid "Available in POS"
msgstr "Disponible dans le PDV"

#. module: pos_remove_pos_category
#: model:ir.model.fields,field_description:pos_remove_pos_category.field_product_category_available_in_pos
msgid "Available in the Point of Sale"
msgstr "Disponible dans le Point de Vente"

#. module: pos_remove_pos_category
#: model:ir.model.fields,help:pos_remove_pos_category.field_product_category_available_in_pos
msgid ""
"Check if you want this category to appear in Point Of Sale.\n"
"If you uncheck, children categories will becomes invisible too, whatever "
"their checkbox state."
msgstr ""
"Cochez si vous voulez que cette catégorie apparaisse dans le Point de "
"Vente.\n"
"Si vous décochez, les catégories enfants deviendront invisible également, "
"quel que soit l'état de leur case à cocher."

#. module: pos_remove_pos_category
#: model:ir.model.fields,field_description:pos_remove_pos_category.field_product_category_image
msgid "Image"
msgstr "Image"

#. module: pos_remove_pos_category
#: model:ir.model.fields,field_description:pos_remove_pos_category.field_product_category_image_medium
msgid "Image medium"
msgstr ""

#. module: pos_remove_pos_category
#: model:ir.model,name:pos_remove_pos_category.model_ir_module_module
msgid "Module"
msgstr "Module"

#. module: pos_remove_pos_category
#: model:ir.model,name:pos_remove_pos_category.model_product_category
msgid "Product Category"
msgstr "Catégorie de Produit"

#. module: pos_remove_pos_category
#: model:ir.model,name:pos_remove_pos_category.model_product_template
msgid "Product Template"
msgstr "Modèle d'article"

#. module: pos_remove_pos_category
#: model:ir.model.fields,help:pos_remove_pos_category.field_product_category_image
msgid "Show Image Category in Form View"
msgstr ""

#. module: pos_remove_pos_category
#: model:ir.model.fields,help:pos_remove_pos_category.field_product_category_image_medium
msgid "Show image category button in POS"
msgstr ""
75 changes: 75 additions & 0 deletions pos_remove_pos_category/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_remove_pos_category
#
# Translators:
# OCA Transbot <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-03-01 04:05+0000\n"
"PO-Revision-Date: 2017-03-01 04:05+0000\n"
"Last-Translator: OCA Transbot <[email protected]>, 2017\n"
"Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\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"

#. module: pos_remove_pos_category
#: model:ir.ui.view,arch_db:pos_remove_pos_category.product_category_list_view
msgid "Available in POS"
msgstr "Disponibile nel POS"

#. module: pos_remove_pos_category
#: model:ir.model.fields,field_description:pos_remove_pos_category.field_product_category_available_in_pos
msgid "Available in the Point of Sale"
msgstr "Disponibile nel POS"

#. module: pos_remove_pos_category
#: model:ir.model.fields,help:pos_remove_pos_category.field_product_category_available_in_pos
msgid ""
"Check if you want this category to appear in Point Of Sale.\n"
"If you uncheck, children categories will becomes invisible too, whatever "
"their checkbox state."
msgstr ""
"Attiva per far apparire questa categoria nel POS.\n"
"Se disattivato, anche le sotto-categorie saranno nascoste, anche se attivate "
"singolarmente."

#. module: pos_remove_pos_category
#: model:ir.model.fields,field_description:pos_remove_pos_category.field_product_category_image
msgid "Image"
msgstr ""

#. module: pos_remove_pos_category
#: model:ir.model.fields,field_description:pos_remove_pos_category.field_product_category_image_medium
msgid "Image medium"
msgstr ""

#. module: pos_remove_pos_category
#: model:ir.model,name:pos_remove_pos_category.model_ir_module_module
msgid "Module"
msgstr "Module"

#. module: pos_remove_pos_category
#: model:ir.model,name:pos_remove_pos_category.model_product_category
msgid "Product Category"
msgstr "Categoria Prodotto"

#. module: pos_remove_pos_category
#: model:ir.model,name:pos_remove_pos_category.model_product_template
msgid "Product Template"
msgstr "Template Prodotto"

#. module: pos_remove_pos_category
#: model:ir.model.fields,help:pos_remove_pos_category.field_product_category_image
msgid "Show Image Category in Form View"
msgstr ""

#. module: pos_remove_pos_category
#: model:ir.model.fields,help:pos_remove_pos_category.field_product_category_image_medium
msgid "Show image category button in POS"
msgstr ""
73 changes: 73 additions & 0 deletions pos_remove_pos_category/i18n/nl_NL.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_remove_pos_category
#
# Translators:
# Peter Hageman <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-05-30 02:44+0000\n"
"PO-Revision-Date: 2017-05-30 02:44+0000\n"
"Last-Translator: Peter Hageman <[email protected]>, 2017\n"
"Language-Team: Dutch (Netherlands) (https://www.transifex.com/oca/"
"teams/23907/nl_NL/)\n"
"Language: nl_NL\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"

#. module: pos_remove_pos_category
#: model:ir.ui.view,arch_db:pos_remove_pos_category.product_category_list_view
msgid "Available in POS"
msgstr "Beschikbaar in de Kassa"

#. module: pos_remove_pos_category
#: model:ir.model.fields,field_description:pos_remove_pos_category.field_product_category_available_in_pos
msgid "Available in the Point of Sale"
msgstr "Beschikbaar in de Kassa"

#. module: pos_remove_pos_category
#: model:ir.model.fields,help:pos_remove_pos_category.field_product_category_available_in_pos
msgid ""
"Check if you want this category to appear in Point Of Sale.\n"
"If you uncheck, children categories will becomes invisible too, whatever "
"their checkbox state."
msgstr ""

#. module: pos_remove_pos_category
#: model:ir.model.fields,field_description:pos_remove_pos_category.field_product_category_image
msgid "Image"
msgstr "Afbeelding"

#. module: pos_remove_pos_category
#: model:ir.model.fields,field_description:pos_remove_pos_category.field_product_category_image_medium
msgid "Image medium"
msgstr ""

#. module: pos_remove_pos_category
#: model:ir.model,name:pos_remove_pos_category.model_ir_module_module
msgid "Module"
msgstr "Module"

#. module: pos_remove_pos_category
#: model:ir.model,name:pos_remove_pos_category.model_product_category
msgid "Product Category"
msgstr "Productcategorie"

#. module: pos_remove_pos_category
#: model:ir.model,name:pos_remove_pos_category.model_product_template
msgid "Product Template"
msgstr "Productsjabloon"

#. module: pos_remove_pos_category
#: model:ir.model.fields,help:pos_remove_pos_category.field_product_category_image
msgid "Show Image Category in Form View"
msgstr ""

#. module: pos_remove_pos_category
#: model:ir.model.fields,help:pos_remove_pos_category.field_product_category_image_medium
msgid "Show image category button in POS"
msgstr "Toon afbeelding categorie-knop in Kassa"
Loading