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

[16.0] [MIG] pos_product_template: Migration to 16.0 #1204

Draft
wants to merge 1 commit into
base: 16.0
Choose a base branch
from
Draft
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
116 changes: 116 additions & 0 deletions pos_product_template/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
======================
POS - Product Template
======================

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

.. |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://github.com/OCA/pos/tree/15.0/pos_product_template
:alt: OCA/pos
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/pos-15-0/pos-15-0-pos_product_template
: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=15.0
:alt: Try me on Runboat

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

* In Point Of Sale Front End - Products list:
* Display only one product per template;
* Display template name instead of product name;
* Display products quantity instead of price;
* Click on template displays an extra screen to select Variant;

* In Point Of Sale Front End - Variants list:
* Display all the products of the selected variant;
* Click on a attribute value filters products;
* Click on a product adds it to the current Order or display normal
extra screen if it is a weightable product;

**Table of contents**

.. contents::
:local:

Usage
=====

Open the Point of Sale, search an article with variants.
You will see one article instead of all the variants.

Known issues / Roadmap
======================

* Templates with lot of variants are not shown. See https://github.com/OCA/pos/pull/135

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_product_template%0Aversion:%2015.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
~~~~~~~

* Akretion

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

* Sylvain LE GAL (https://twitter.com/legalsylvain)
* Navarromiguel (https://github.com/navarromiguel)
* Damendieta (https://github.com/damendieta)
* Raphaël Reverdy (https://akretion.com)
* Pedro Guirao (https://ingenieriacloud.com)

* `Ooops <https://www.ooops404.com>`_:

* Giovanni Serra <[email protected]>

* `Aures Tic <https://aurestic.es>`_:

* Jose Zambudio <[email protected]>

Funders
-------

The development of this module has been financially supported by:

* Akretion

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://github.com/OCA/pos/tree/15.0/pos_product_template>`_ 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_product_template/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
30 changes: 30 additions & 0 deletions pos_product_template/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"name": "POS - Product Template",
"version": "16.0.1.0.0",
"category": "Point Of Sale",
"author": "Zurab Kituashvili",
"summary": "Manage Product Template in Front End Point Of Sale",
"website": "https://github.com/OCA/pos",
"license": "AGPL-3",
"depends": [
"point_of_sale",
],
"data": [
"views/pos_config_view.xml",
],
"assets": {
"web.assets_qweb": ["pos_product_template/static/src/xml/**/*.xml"],
"point_of_sale.assets": [
"pos_product_template/static/src/**/*.js",
"pos_product_template/static/src/css/ppt.css",
],
},
"demo": [
"demo/product_attribute_value.xml",
"demo/product_product.xml",
],
"images": [
"static/src/img/screenshots/pos_product_template.png",
],
"installable": True,
}
31 changes: 31 additions & 0 deletions pos_product_template/demo/product_attribute_value.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="utf-8" ?>
<!--
##############################################################################
#
# Point Of Sale - Product Template module for Odoo
# Copyright (C) 2014-Today Akretion (http://www.akretion.com)
# @author Sylvain LE GAL (https://twitter.com/legalsylvain)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
-->
<odoo>

<record id="attribute_wifi_extra" model="product.attribute.value">
<field name="attribute_id" eval="ref('product.product_attribute_3')" />
<field name="name">2.399GHz</field>
</record>

</odoo>
45 changes: 45 additions & 0 deletions pos_product_template/demo/product_product.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<?xml version="1.0" encoding="utf-8" ?>
<!--
##############################################################################
#
# Point Of Sale - Product Template module for Odoo
# Copyright (C) 2014-Today Akretion (http://www.akretion.com)
# @author Sylvain LE GAL (https://twitter.com/legalsylvain)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
-->
<odoo>

<record id="product.product_product_4" model="product.product">
<field name="available_in_pos" eval="True" />
</record>

<record id="product.product_product_4b" model="product.product">
<field name="available_in_pos" eval="True" />
</record>

<record id="product.product_product_4c" model="product.product">
<field name="available_in_pos" eval="True" />
</record>

<record id="product.product_product_11" model="product.product">
<field name="available_in_pos" eval="True" />
</record>

<record id="product.product_product_11b" model="product.product">
<field name="available_in_pos" eval="True" />
</record>
</odoo>
80 changes: 80 additions & 0 deletions pos_product_template/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_product_template
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-12-18 12:01+0000\n"
"PO-Revision-Date: 2023-07-26 13:10+0000\n"
"Last-Translator: Anna Martínez <[email protected]>\n"
"Language-Team: \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_product_template
#: model:product.attribute.value,name:pos_product_template.attribute_wifi_extra
msgid "2.399GHz"
msgstr "2.399GHz"

#. module: pos_product_template
#. openerp-web
#: code:addons/pos_product_template/static/src/xml/SelectVariantPopup.xml:0
#, python-format
msgid "Cancel"
msgstr "Cancelar"

#. module: pos_product_template
#. openerp-web
#: code:addons/pos_product_template/static/src/xml/SelectVariantPopup.xml:0
#, python-format
msgid "Confirm"
msgstr "Confirmar"

#. module: pos_product_template
#: model:ir.model.fields,field_description:pos_product_template.field_pos_config__display_name
msgid "Display Name"
msgstr "Nombre a mostrar"

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

#. module: pos_product_template
#: model:ir.model.fields,help:pos_product_template.field_pos_config__iface_product_template_show_variants
msgid ""
"If selected the product variant selection screen will show the variants, "
"else it will only allow to confirm once all the attributes are chosen."
msgstr ""
"Si de marca, la pantalla de selección de productos mostrará las variantes, "
"de lo contrario, solo permitirá confirmar una vez elegidos todos los "
"atributos."

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

#. module: pos_product_template
#: model:ir.model,name:pos_product_template.model_pos_config
msgid "Point of Sale Configuration"
msgstr "Configuración del punto de venta"

#. module: pos_product_template
#: model:ir.model.fields,field_description:pos_product_template.field_pos_config__iface_product_template_show_variants
msgid "Product template show variants"
msgstr "La plantilla de producto mostrará las variantes"

#, python-format
#~ msgid "Variant Selection of"
#~ msgstr "Seleccina una variante de"

#, python-format
#~ msgid "Variants"
#~ msgstr "Variantes"
76 changes: 76 additions & 0 deletions pos_product_template/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_product_template
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-12-18 11:57+0000\n"
"PO-Revision-Date: 2014-12-18 11:57+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_product_template
#: model:product.attribute.value,name:pos_product_template.attribute_wifi_extra
msgid "2.399GHz"
msgstr ""

#. module: pos_product_template
#. openerp-web
#: code:addons/pos_product_template/static/src/xml/SelectVariantPopup.xml:0
#, python-format
msgid "Cancel"
msgstr "Annuler"

#. module: pos_product_template
#. openerp-web
#: code:addons/pos_product_template/static/src/xml/SelectVariantPopup.xml:0
#, python-format
msgid "Confirm"
msgstr ""

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

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

#. module: pos_product_template
#: model:ir.model.fields,help:pos_product_template.field_pos_config__iface_product_template_show_variants
msgid ""
"If selected the product variant selection screen will show the variants, "
"else it will only allow to confirm once all the attributes are chosen."
msgstr ""

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

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

#. module: pos_product_template
#: model:ir.model.fields,field_description:pos_product_template.field_pos_config__iface_product_template_show_variants
msgid "Product template show variants"
msgstr ""

#, python-format
#~ msgid "Variant Selection of"
#~ msgstr "Sélection d'une variante de"

#, python-format
#~ msgid "Variants"
#~ msgstr "Variantes"
Loading
Loading