forked from OCA/product-pack
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge commit 'refs/pull/81/head' of https://github.com/oca/product-pack…
… into 15.0-157
- Loading branch information
Showing
27 changed files
with
2,242 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,121 @@ | ||
================= | ||
Sale Product Pack | ||
================= | ||
|
||
.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! 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%2Fproduct--pack-lightgray.png?logo=github | ||
:target: https://github.com/OCA/product-pack/tree/14.0/sale_product_pack | ||
:alt: OCA/product-pack | ||
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png | ||
:target: https://translation.odoo-community.org/projects/product-pack-14-0/product-pack-14-0-sale_product_pack | ||
:alt: Translate me on Weblate | ||
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png | ||
:target: https://runbot.odoo-community.org/runbot/286/14.0 | ||
:alt: Try me on Runbot | ||
|
||
|badge1| |badge2| |badge3| |badge4| |badge5| | ||
|
||
This module adds *Product Pack* functionality to sales orders. You can choose | ||
a *Pack* in *sales order lines* and see different behaviors depending on | ||
"Pack type" and "Pack component price" fields options selected on this *Pack*. | ||
|
||
**Table of contents** | ||
|
||
.. contents:: | ||
:local: | ||
|
||
Usage | ||
===== | ||
|
||
To use this module, you need to: | ||
|
||
#. Go to *Sales > Products > Products*, create or select a product and check | ||
*Is Pack?* | ||
#. Set "Product type" and "Pack component price" fields in the *Pack* page. | ||
#. Add the products to be included in it. | ||
#. Go to *Sales > Orders > Quotations* and create a Quotation. | ||
#. Add a product that has checked "Is Pack?" | ||
#. Save data and you will see an specific behavior depending on "Pack type" and | ||
"Pack component price" fields options selected on this *Pack*. For example, | ||
for products that has *Detailed* option selected in "Pack type" field you | ||
will see one *sale order line* per component that belong to this Pack. | ||
(See *Product pack* module README.rst file) | ||
|
||
Known issues / Roadmap | ||
====================== | ||
|
||
* If this module is installed and stock module is installed too, when you | ||
create a Sale order for a *Non detailed* Pack and you confirm it, | ||
a *Stock picking* is not created with the storable components of that Pack. | ||
So, add a new module called *sale_stock_product_pack* that adds that feature. | ||
|
||
Bug Tracker | ||
=========== | ||
|
||
Bugs are tracked on `GitHub Issues <https://github.com/OCA/product-pack/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://github.com/OCA/product-pack/issues/new?body=module:%20sale_product_pack%0Aversion:%2014.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 | ||
~~~~~~~ | ||
|
||
* NaN·tic | ||
* ADHOC SA | ||
* Tecnativa | ||
|
||
Contributors | ||
~~~~~~~~~~~~ | ||
|
||
* `Tecnativa <https://www.tecnativa.com>`_: | ||
|
||
* Ernesto Tejeda | ||
* Pedro M. Baeza | ||
|
||
* `Akretion <https://akretion.com>`_: | ||
|
||
* Raphaël Reverdy | ||
|
||
* `Open Source Integrators <https://opensourceintegrators.eu>`_: | ||
|
||
* Daniel Reis <dreis@opensourceintegrators.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-ernestotejeda| image:: https://github.com/ernestotejeda.png?size=40px | ||
:target: https://github.com/ernestotejeda | ||
:alt: ernestotejeda | ||
|
||
Current `maintainer <https://odoo-community.org/page/maintainer-role>`__: | ||
|
||
|maintainer-ernestotejeda| | ||
|
||
This module is part of the `OCA/product-pack <https://github.com/OCA/product-pack/tree/14.0/sale_product_pack>`_ project on GitHub. | ||
|
||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
from . import models |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Copyright 2019 NaN (http://www.nan-tic.com) - Àngel Àlvarez | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
{ | ||
"name": "Sale Product Pack", | ||
"version": "15.0.1.0.0", | ||
"category": "Sales", | ||
"summary": "This module allows you to sell product packs", | ||
"website": "https://github.com/OCA/product-pack", | ||
"author": "NaN·tic, ADHOC SA, Tecnativa, Odoo Community Association (OCA)", | ||
"maintainers": ["ernestotejeda"], | ||
"license": "AGPL-3", | ||
"depends": ["product_pack", "sale"], | ||
"data": ["security/ir.model.access.csv", "views/product_pack_line_views.xml"], | ||
"demo": ["demo/product_pack_line_demo.xml"], | ||
"installable": True, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<!-- Copyright 2019 Tecnativa - Ernesto Tejeda | ||
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). --> | ||
<odoo noupdate="1"> | ||
<record id="product_pack.pack_cpu_detailed_components_1" model="product.pack.line"> | ||
<field name="sale_discount" eval="10.0" /> | ||
</record> | ||
<record id="product_pack.pack_cpu_detailed_components_3" model="product.pack.line"> | ||
<field name="sale_discount" eval="10.0" /> | ||
</record> | ||
<record id="product_pack.pack_cpu_detailed_totalized_1" model="product.pack.line"> | ||
<field name="sale_discount" eval="10.0" /> | ||
</record> | ||
<record id="product_pack.pack_cpu_detailed_totalized_3" model="product.pack.line"> | ||
<field name="sale_discount" eval="10.0" /> | ||
</record> | ||
<record id="product_pack.pack_cpu_non_detailed_1" model="product.pack.line"> | ||
<field name="sale_discount" eval="10.0" /> | ||
</record> | ||
<record id="product_pack.pack_cpu_non_detailed_3" model="product.pack.line"> | ||
<field name="sale_discount" eval="10.0" /> | ||
</record> | ||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,175 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * sale_product_pack | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 12.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"PO-Revision-Date: 2022-02-28 13:17+0000\n" | ||
"Last-Translator: Noel estudillo <noelestudilloviera@gmail.com>\n" | ||
"Language-Team: none\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 4.3.2\n" | ||
|
||
#. module: sale_product_pack | ||
#: model:ir.model.fields,field_description:sale_product_pack.field_sale_order_line__pack_depth | ||
msgid "Depth" | ||
msgstr "Profunditat" | ||
|
||
#. module: sale_product_pack | ||
#: model:ir.model.fields,help:sale_product_pack.field_sale_order_line__pack_depth | ||
msgid "Depth of the product if it is part of a pack." | ||
msgstr "Profunditat del producte si forma part d’un pack." | ||
|
||
#. module: sale_product_pack | ||
#: model:ir.model.fields,field_description:sale_product_pack.field_product_pack_line__display_name | ||
#: model:ir.model.fields,field_description:sale_product_pack.field_sale_order__display_name | ||
#: model:ir.model.fields,field_description:sale_product_pack.field_sale_order_line__display_name | ||
msgid "Display Name" | ||
msgstr "Nom de visualització" | ||
|
||
#. module: sale_product_pack | ||
#: model:ir.model.fields,field_description:sale_product_pack.field_product_pack_line__id | ||
#: model:ir.model.fields,field_description:sale_product_pack.field_sale_order__id | ||
#: model:ir.model.fields,field_description:sale_product_pack.field_sale_order_line__id | ||
msgid "ID" | ||
msgstr "ID" | ||
|
||
#. module: sale_product_pack | ||
#: model:ir.model.fields,field_description:sale_product_pack.field_product_pack_line____last_update | ||
#: model:ir.model.fields,field_description:sale_product_pack.field_sale_order____last_update | ||
#: model:ir.model.fields,field_description:sale_product_pack.field_sale_order_line____last_update | ||
msgid "Last Modified on" | ||
msgstr "Última modificació el" | ||
|
||
#. module: sale_product_pack | ||
#: model:ir.model.fields,field_description:sale_product_pack.field_sale_order_line__pack_child_line_ids | ||
msgid "Lines in pack" | ||
msgstr "Línies en pack" | ||
|
||
#. module: sale_product_pack | ||
#: model:ir.model.fields,help:sale_product_pack.field_sale_order_line__pack_component_price | ||
msgid "" | ||
"On sale orders or purchase orders:\n" | ||
"* Detailed per component: Detail lines with prices.\n" | ||
"* Totalized in main product: Detail lines merging lines prices on pack " | ||
"(don't show component prices).\n" | ||
"* Ignored: Use product pack price (ignore detail line prices)." | ||
msgstr "" | ||
"Comandes de venda o comandes de compra:\n" | ||
"* Detall per component: Línies de detall amb preus.\n" | ||
"* Totalitzat en producte principal: línies de detalls fusionen els preus de " | ||
"les línies en el pack (no mostren els preus dels components).\n" | ||
"* Ignorat: utilitza el preu del pack de producte (ignora els preus de la " | ||
"línia de detalls)." | ||
|
||
#. module: sale_product_pack | ||
#: model:ir.model.fields,help:sale_product_pack.field_sale_order_line__pack_type | ||
msgid "" | ||
"On sale orders or purchase orders:\n" | ||
"* Detailed: Display components individually in the sale order.\n" | ||
"* Non Detailed: Do not display components individually in the sale order." | ||
msgstr "" | ||
"Comandes de venda o comandes de compra:\n" | ||
"* Detallat: mostra els components de forma individual en la comanda de " | ||
"venda.\n" | ||
"* No detallat: no mostren els components de forma individual en la comanda " | ||
"de venda." | ||
|
||
#. module: sale_product_pack | ||
#: model:ir.model.fields,field_description:sale_product_pack.field_sale_order_line__pack_parent_line_id | ||
msgid "Pack" | ||
msgstr "Pack" | ||
|
||
#. module: sale_product_pack | ||
#: model:ir.model.fields,field_description:sale_product_pack.field_sale_order_line__pack_type | ||
msgid "Pack Display Type" | ||
msgstr "Tipus de pantalla de paquet" | ||
|
||
#. module: sale_product_pack | ||
#: model:ir.model.fields,field_description:sale_product_pack.field_sale_order_line__pack_modifiable | ||
msgid "Pack Modifiable" | ||
msgstr "Paquet modificable" | ||
|
||
#. module: sale_product_pack | ||
#: model:ir.model.fields,field_description:sale_product_pack.field_sale_order_line__pack_component_price | ||
msgid "Pack component price" | ||
msgstr "Preu dels components" | ||
|
||
#. module: sale_product_pack | ||
#: model_terms:ir.ui.view,arch_db:sale_product_pack.view_order_form | ||
msgid "Parent Pack is not modifiable" | ||
msgstr "El paquet de pares no es pot modificar" | ||
|
||
#. module: sale_product_pack | ||
#: code:addons/sale_product_pack/models/sale_order_line.py:0 | ||
#, python-format | ||
msgid "Parent Product" | ||
msgstr "Producte principal" | ||
|
||
#. module: sale_product_pack | ||
#: model:ir.model,name:sale_product_pack.model_product_pack_line | ||
msgid "Product pack line" | ||
msgstr "Línia de pack" | ||
|
||
#. module: sale_product_pack | ||
#: model:ir.model.fields,field_description:sale_product_pack.field_product_pack_line__sale_discount | ||
msgid "Sale discount (%)" | ||
msgstr "Descompte per vendes" | ||
|
||
#. module: sale_product_pack | ||
#: model:ir.model,name:sale_product_pack.model_sale_order | ||
msgid "Sales Order" | ||
msgstr "Comanda de venda" | ||
|
||
#. module: sale_product_pack | ||
#: model:ir.model,name:sale_product_pack.model_sale_order_line | ||
msgid "Sales Order Line" | ||
msgstr "Línia de comandes de vendes" | ||
|
||
#. module: sale_product_pack | ||
#: model:ir.model.fields,help:sale_product_pack.field_sale_order_line__pack_parent_line_id | ||
msgid "The pack that contains this product." | ||
msgstr "El pack que conté aquest producte." | ||
|
||
#. module: sale_product_pack | ||
#: model:ir.model.fields,help:sale_product_pack.field_sale_order_line__pack_modifiable | ||
msgid "The parent pack is modifiable" | ||
msgstr "El paquet principal és modificable" | ||
|
||
#. module: sale_product_pack | ||
#: code:addons/sale_product_pack/models/sale_order_line.py:0 | ||
#, python-format | ||
msgid "" | ||
"You can not change this line because is part of a pack included in this order" | ||
msgstr "" | ||
"No podeu canviar aquesta línia perquè forma part d’un pack inclòs en aquest " | ||
"ordre" | ||
|
||
#. module: sale_product_pack | ||
#: code:addons/sale_product_pack/models/sale_order.py:0 | ||
#, python-format | ||
msgid "" | ||
"You cannot delete this line because is part of a pack in this sale order. In " | ||
"order to delete this line you need to delete the pack itself" | ||
msgstr "" | ||
"No podeu suprimir aquesta línia perquè forma part d'un paquet d'aquesta " | ||
"comanda de venda. Per eliminar aquesta línia, heu d'esborrar el paquet en si" | ||
|
||
#~ msgid "Pack Type" | ||
#~ msgstr "Tipus de pack" | ||
|
||
#~ msgid "Sale Order" | ||
#~ msgstr "Comanda de venda" | ||
|
||
#~ msgid "" | ||
#~ "You can not delete this line because is part of a pack in this sale " | ||
#~ "order. In order to delete this line you need to delete the pack itself" | ||
#~ msgstr "" | ||
#~ "No podeu suprimir aquesta línia perquè forma part d’un pack d’aquesta " | ||
#~ "comanda de venda. Per eliminar aquesta línia, heu de suprimir el pack" |
Oops, something went wrong.