Skip to content

Commit 5172510

Browse files
committed
Merge PR #216 into 18.0
Signed-off-by pedrobaeza
2 parents 1be22c7 + 5502b9e commit 5172510

22 files changed

+1763
-0
lines changed

purchase_product_pack/README.rst

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
=====================
2+
Purchase Product Pack
3+
=====================
4+
5+
..
6+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7+
!! This file is generated by oca-gen-addon-readme !!
8+
!! changes will be overwritten. !!
9+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10+
!! source digest: sha256:1c37bc5ae3753d96b784bb15fdbed5dcbe70cafb085cb3ddde5960c03d9c85a7
11+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12+
13+
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
14+
:target: https://odoo-community.org/page/development-status
15+
:alt: Beta
16+
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
17+
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
18+
:alt: License: AGPL-3
19+
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fproduct--pack-lightgray.png?logo=github
20+
:target: https://github.com/OCA/product-pack/tree/18.0/purchase_product_pack
21+
:alt: OCA/product-pack
22+
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23+
:target: https://translation.odoo-community.org/projects/product-pack-18-0/product-pack-18-0-purchase_product_pack
24+
:alt: Translate me on Weblate
25+
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/product-pack&target_branch=18.0
27+
:alt: Try me on Runboat
28+
29+
|badge1| |badge2| |badge3| |badge4| |badge5|
30+
31+
This module adds *Product Pack* functionality to purchase orders. You
32+
can choose a *Pack* in *purchase order lines* and see different
33+
behaviors depending on "Pack type" and "Pack component price" fields
34+
options selected on this *Pack*.
35+
36+
**Table of contents**
37+
38+
.. contents::
39+
:local:
40+
41+
Usage
42+
=====
43+
44+
To use this module, you need to:
45+
46+
1. Go to *Purchase > Products > Products*, create or select a product
47+
and check *Is Pack?*
48+
2. Set "Product type" and "Pack component price" fields in the *Pack*
49+
page.
50+
3. Add the products to be included in it.
51+
4. Go to *Purchase > Orders > Quotations* and create a Quotation.
52+
5. Add a product that has checked "Is Pack?"
53+
6. Save data and you will see an specific behavior depending on "Pack
54+
type" and "Pack component price" fields options selected on this
55+
*Pack*. For example, for products that has *Detailed* option selected
56+
in "Pack type" field you will see one *purchase order line* per
57+
component that belong to this Pack. (See *Product pack* module
58+
README.rst file)
59+
60+
Bug Tracker
61+
===========
62+
63+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/product-pack/issues>`_.
64+
In case of trouble, please check there if your issue has already been reported.
65+
If you spotted it first, help us to smash it by providing a detailed and welcomed
66+
`feedback <https://github.com/OCA/product-pack/issues/new?body=module:%20purchase_product_pack%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
67+
68+
Do not contact contributors directly about support or help with technical issues.
69+
70+
Credits
71+
=======
72+
73+
Authors
74+
-------
75+
76+
* Camptocamp
77+
78+
Contributors
79+
------------
80+
81+
- `Trobz <https://www.trobz.com>`__:
82+
83+
- Duong (Tran Quoc)
84+
85+
Other credits
86+
-------------
87+
88+
Inspired by *sale_product_pack*
89+
90+
The development of this module has been financially supported by:
91+
92+
- Camptocamp
93+
94+
Maintainers
95+
-----------
96+
97+
This module is maintained by the OCA.
98+
99+
.. image:: https://odoo-community.org/logo.png
100+
:alt: Odoo Community Association
101+
:target: https://odoo-community.org
102+
103+
OCA, or the Odoo Community Association, is a nonprofit organization whose
104+
mission is to support the collaborative development of Odoo features and
105+
promote its widespread use.
106+
107+
This module is part of the `OCA/product-pack <https://github.com/OCA/product-pack/tree/18.0/purchase_product_pack>`_ project on GitHub.
108+
109+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

purchase_product_pack/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Copyright 2023 Camptocamp SA
2+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl)
3+
4+
from . import models
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Copyright 2023 Camptocamp SA
2+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl)
3+
{
4+
"name": "Purchase Product Pack",
5+
"version": "18.0.1.0.0",
6+
"category": "Purchase",
7+
"summary": "This module allows you to buy product packs",
8+
"website": "https://github.com/OCA/product-pack",
9+
"author": "Camptocamp, Odoo Community Association (OCA)",
10+
"license": "AGPL-3",
11+
"depends": ["product_pack", "purchase"],
12+
"data": ["security/ir.model.access.csv", "views/product_pack_line_views.xml"],
13+
"demo": [],
14+
"installable": True,
15+
}

purchase_product_pack/i18n/it.po

Lines changed: 156 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,156 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * purchase_product_pack
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 16.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"PO-Revision-Date: 2025-02-12 16:06+0000\n"
10+
"Last-Translator: mymage <stefano.consolaro@mymage.it>\n"
11+
"Language-Team: none\n"
12+
"Language: it\n"
13+
"MIME-Version: 1.0\n"
14+
"Content-Type: text/plain; charset=UTF-8\n"
15+
"Content-Transfer-Encoding: \n"
16+
"Plural-Forms: nplurals=2; plural=n != 1;\n"
17+
"X-Generator: Weblate 5.6.2\n"
18+
19+
#. module: purchase_product_pack
20+
#: model:ir.model.fields,field_description:purchase_product_pack.field_purchase_order_line__pack_depth
21+
msgid "Depth"
22+
msgstr "Profondità"
23+
24+
#. module: purchase_product_pack
25+
#: model:ir.model.fields,help:purchase_product_pack.field_purchase_order_line__pack_depth
26+
msgid "Depth of the product if it is part of a pack."
27+
msgstr "Profondità di un prodotto se fa parte di un collo."
28+
29+
#. module: purchase_product_pack
30+
#: model:ir.model.fields,field_description:purchase_product_pack.field_purchase_order_line__do_no_expand_pack_lines
31+
msgid "Do No Expand Pack Lines"
32+
msgstr "Non espandere le righe del collo"
33+
34+
#. module: purchase_product_pack
35+
#: model:ir.model.fields,field_description:purchase_product_pack.field_purchase_order_line__pack_child_line_ids
36+
msgid "Lines in pack"
37+
msgstr "Righe nel collo"
38+
39+
#. module: purchase_product_pack
40+
#: model:ir.model.fields,help:purchase_product_pack.field_purchase_order_line__pack_component_price
41+
msgid ""
42+
"On sale orders or purchase orders:\n"
43+
"* Detailed per component: Detail lines with prices.\n"
44+
"* Totalized in main product: Detail lines merging lines prices on pack (don't show component prices).\n"
45+
"* Ignored: Use product pack price (ignore detail line prices)."
46+
msgstr ""
47+
"Negli ordini di vendita o di acquisto:\n"
48+
"* Dettagliato per componente: dettaglio righe con prezzi.\n"
49+
"* Totalizzate nel prodotto principale: dettaglio righe unendo i prezzi delle "
50+
"righe nel collo (non mostra i prezzi dei componenti).\n"
51+
"* Ignorate: usa il prezzo prodotto del collo (ignora il dettaglio prezzi "
52+
"riga)."
53+
54+
#. module: purchase_product_pack
55+
#: model:ir.model.fields,help:purchase_product_pack.field_purchase_order_line__pack_type
56+
msgid ""
57+
"On sale orders or purchase orders:\n"
58+
"* Detailed: Display components individually in the sale order.\n"
59+
"* Non Detailed: Do not display components individually in the sale order."
60+
msgstr ""
61+
"Negli ordini di ventita o di acquisto:\n"
62+
"* Dettagliati: visualizza i singoli componenti nell'ordine di vendita.\n"
63+
"* Non detagliati: non visualizza i singoli componenti nell'ordine di vendita."
64+
65+
#. module: purchase_product_pack
66+
#: model:ir.model.fields,field_description:purchase_product_pack.field_purchase_order_line__pack_parent_line_id
67+
msgid "Pack"
68+
msgstr "Pacco"
69+
70+
#. module: purchase_product_pack
71+
#: model:ir.model.fields,field_description:purchase_product_pack.field_purchase_order_line__pack_component_price
72+
msgid "Pack Component Price"
73+
msgstr "Prezzo componente collo"
74+
75+
#. module: purchase_product_pack
76+
#: model:ir.model.fields,field_description:purchase_product_pack.field_purchase_order_line__pack_type
77+
msgid "Pack Display Type"
78+
msgstr "Visualizza tipo collo"
79+
80+
#. module: purchase_product_pack
81+
#: model:ir.model.fields,field_description:purchase_product_pack.field_purchase_order_line__pack_modifiable
82+
msgid "Pack Modifiable"
83+
msgstr "Collo modificabile"
84+
85+
#. module: purchase_product_pack
86+
#: model_terms:ir.ui.view,arch_db:purchase_product_pack.purchase_order_form
87+
msgid "Parent Pack is not modifiable"
88+
msgstr "Il collo padre non è modificabIle"
89+
90+
#. module: purchase_product_pack
91+
#. odoo-python
92+
#: code:addons/purchase_product_pack/models/purchase_order_line.py:0
93+
#, python-format
94+
msgid "Parent Product"
95+
msgstr "Prodotto padre"
96+
97+
#. module: purchase_product_pack
98+
#: model:ir.model,name:purchase_product_pack.model_product_product
99+
msgid "Product Variant"
100+
msgstr "Variante prodotto"
101+
102+
#. module: purchase_product_pack
103+
#: model:ir.model,name:purchase_product_pack.model_product_pack_line
104+
msgid "Product pack line"
105+
msgstr "Riga collo prodotto"
106+
107+
#. module: purchase_product_pack
108+
#: model:ir.model,name:purchase_product_pack.model_purchase_order
109+
msgid "Purchase Order"
110+
msgstr "Ordine di acquisto"
111+
112+
#. module: purchase_product_pack
113+
#: model:ir.model,name:purchase_product_pack.model_purchase_order_line
114+
msgid "Purchase Order Line"
115+
msgstr "Riga ordine di acquisto"
116+
117+
#. module: purchase_product_pack
118+
#: model:ir.model.fields,help:purchase_product_pack.field_purchase_order_line__pack_parent_line_id
119+
msgid "The pack that contains this product."
120+
msgstr "Il collo che contiene questo prodotto."
121+
122+
#. module: purchase_product_pack
123+
#: model:ir.model.fields,help:purchase_product_pack.field_purchase_order_line__pack_modifiable
124+
msgid "The parent pack is modifiable"
125+
msgstr "Il collo padre è modificabile"
126+
127+
#. module: purchase_product_pack
128+
#: model:ir.model.fields,help:purchase_product_pack.field_purchase_order_line__do_no_expand_pack_lines
129+
msgid ""
130+
"This is a technical field in order to check if pack lines has to be expanded"
131+
msgstr ""
132+
"Questo è un campo tecnico per controllare se le righe del collo devono "
133+
"essere espanse"
134+
135+
#. module: purchase_product_pack
136+
#. odoo-python
137+
#: code:addons/purchase_product_pack/models/purchase_order_line.py:0
138+
#, python-format
139+
msgid ""
140+
"You can not change this line because is part of a pack included in this "
141+
"order"
142+
msgstr ""
143+
"Non si può modificare questa riga perché è parte di un collo incluso in "
144+
"questo ordine"
145+
146+
#. module: purchase_product_pack
147+
#. odoo-python
148+
#: code:addons/purchase_product_pack/models/purchase_order.py:0
149+
#, python-format
150+
msgid ""
151+
"You cannot delete this line because is part of a pack in this purchase "
152+
"order. In order to delete this line you need to delete the pack itself"
153+
msgstr ""
154+
"Non si può cancellare questa riga perché è parte di un collo questo ordine "
155+
"di vendita. Per poter cancellare questa riga bisogna cancellare il collo "
156+
"stesso"

0 commit comments

Comments
 (0)