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

[17.0][MIG] purchase_product_pack: Migration to 17.0 #171

Open
wants to merge 1 commit into
base: 17.0
Choose a base branch
from
Open
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
113 changes: 113 additions & 0 deletions purchase_product_pack/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
=====================
Purchase Product Pack
=====================

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

.. |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/17.0/purchase_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-17-0/product-pack-17-0-purchase_product_pack
: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/product-pack&target_branch=17.0
:alt: Try me on Runboat

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

This module adds *Product Pack* functionality to purchase orders. You
can choose a *Pack* in *purchase 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:

1. Go to *Purchase > Products > Products*, create or select a product
and check *Is Pack?*
2. Set "Product type" and "Pack component price" fields in the *Pack*
page.
3. Add the products to be included in it.
4. Go to *Purchase > Orders > Quotations* and create a Quotation.
5. Add a product that has checked "Is Pack?"
6. 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 *purchase order line* per
component that belong to this Pack. (See *Product pack* module
README.rst file)

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 to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/product-pack/issues/new?body=module:%20purchase_product_pack%0Aversion:%2017.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
-------

* Camptocamp

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

- `Trobz <https://www.trobz.com>`__:

- Duong (Tran Quoc)

- `Orbit Consulting Group SL <https://www.orbit.es>`__:

- Antony Herrera

Other credits
-------------

Inspired by *sale_product_pack*

The development of this module has been financially supported by:

- Camptocamp

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/product-pack <https://github.com/OCA/product-pack/tree/17.0/purchase_product_pack>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
4 changes: 4 additions & 0 deletions purchase_product_pack/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Copyright 2023 Camptocamp SA
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl)

from . import models
15 changes: 15 additions & 0 deletions purchase_product_pack/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright 2023 Camptocamp SA
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl)
{
"name": "Purchase Product Pack",
"version": "17.0.1.0.0",
"category": "Purchase",
"summary": "This module allows you to buy product packs",
"website": "https://github.com/OCA/product-pack",
"author": "Camptocamp, Odoo Community Association (OCA)",
"license": "AGPL-3",
"depends": ["product_pack", "purchase"],
"data": ["security/ir.model.access.csv", "views/product_pack_line_views.xml"],
"demo": [],
"installable": True,
}
156 changes: 156 additions & 0 deletions purchase_product_pack/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,156 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * purchase_product_pack
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2024-04-03 13:36+0000\n"
"Last-Translator: mymage <stefano.consolaro@mymage.it>\n"
"Language-Team: none\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"
"X-Generator: Weblate 4.17\n"

#. module: purchase_product_pack
#: model:ir.model.fields,field_description:purchase_product_pack.field_purchase_order_line__pack_depth
msgid "Depth"
msgstr "Profondità"

#. module: purchase_product_pack
#: model:ir.model.fields,help:purchase_product_pack.field_purchase_order_line__pack_depth
msgid "Depth of the product if it is part of a pack."
msgstr "Profondità di un prodotto se fa parte di un collo."

#. module: purchase_product_pack
#: model:ir.model.fields,field_description:purchase_product_pack.field_purchase_order_line__do_no_expand_pack_lines
msgid "Do No Expand Pack Lines"
msgstr "Non espandere le righe del collo"

#. module: purchase_product_pack
#: model:ir.model.fields,field_description:purchase_product_pack.field_purchase_order_line__pack_child_line_ids
msgid "Lines in pack"
msgstr "Righe nel collo"

#. module: purchase_product_pack
#: model:ir.model.fields,help:purchase_product_pack.field_purchase_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 ""
"Negli ordini di vendita o di acquisto:\n"
"* Dettagliato per componente: dettaglio righe con prezzi.\n"
"* Totalizzate nel prodotto principale: dettaglio righe unendo i prezzi delle "
"righe nel collo (non mostra i prezzi dei componenti).\n"
"* Ignorate: usa il prezzo prodotto del collo (ignora il dettaglio prezzi "
"riga)."

#. module: purchase_product_pack
#: model:ir.model.fields,help:purchase_product_pack.field_purchase_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 ""
"Negli ordini di ventita o di acquisto:\n"
"* Dettagliati: visualizza i singoli componenti nell'ordine di vendita.\n"
"* Non detagliati: non visualizza i singoli componenti nell'ordine di vendita."

#. module: purchase_product_pack
#: model:ir.model.fields,field_description:purchase_product_pack.field_purchase_order_line__pack_parent_line_id
msgid "Pack"
msgstr "Collo"

#. module: purchase_product_pack
#: model:ir.model.fields,field_description:purchase_product_pack.field_purchase_order_line__pack_component_price
msgid "Pack Component Price"
msgstr "Prezzo componente collo"

#. module: purchase_product_pack
#: model:ir.model.fields,field_description:purchase_product_pack.field_purchase_order_line__pack_type
msgid "Pack Display Type"
msgstr "Visualizza tipo collo"

#. module: purchase_product_pack
#: model:ir.model.fields,field_description:purchase_product_pack.field_purchase_order_line__pack_modifiable
msgid "Pack Modifiable"
msgstr "Collo modificabile"

#. module: purchase_product_pack
#: model_terms:ir.ui.view,arch_db:purchase_product_pack.purchase_order_form
msgid "Parent Pack is not modifiable"
msgstr "Il collo padre non è modificabIle"

#. module: purchase_product_pack
#. odoo-python
#: code:addons/purchase_product_pack/models/purchase_order_line.py:0
#, python-format
msgid "Parent Product"
msgstr "Prodotto padre"

#. module: purchase_product_pack
#: model:ir.model,name:purchase_product_pack.model_product_product
msgid "Product Variant"
msgstr "Variante prodotto"

#. module: purchase_product_pack
#: model:ir.model,name:purchase_product_pack.model_product_pack_line
msgid "Product pack line"
msgstr "Riga collo prodotto"

#. module: purchase_product_pack
#: model:ir.model,name:purchase_product_pack.model_purchase_order
msgid "Purchase Order"
msgstr "Ordine di acquisto"

#. module: purchase_product_pack
#: model:ir.model,name:purchase_product_pack.model_purchase_order_line
msgid "Purchase Order Line"
msgstr "Riga ordine di acquisto"

#. module: purchase_product_pack
#: model:ir.model.fields,help:purchase_product_pack.field_purchase_order_line__pack_parent_line_id
msgid "The pack that contains this product."
msgstr "Il collo che contiene questo prodotto."

#. module: purchase_product_pack
#: model:ir.model.fields,help:purchase_product_pack.field_purchase_order_line__pack_modifiable
msgid "The parent pack is modifiable"
msgstr "Il collo padre è modificabile"

#. module: purchase_product_pack
#: model:ir.model.fields,help:purchase_product_pack.field_purchase_order_line__do_no_expand_pack_lines
msgid ""
"This is a technical field in order to check if pack lines has to be expanded"
msgstr ""
"Questo è un campo tecnico per controllare se le righe del collo devono "
"essere espanse"

#. module: purchase_product_pack
#. odoo-python
#: code:addons/purchase_product_pack/models/purchase_order_line.py:0
#, python-format
msgid ""
"You can not change this line because is part of a pack included in this "
"order"
msgstr ""
"Non si può modificare questa riga perché è parte di un collo incluso in "
"questo ordine"

#. module: purchase_product_pack
#. odoo-python
#: code:addons/purchase_product_pack/models/purchase_order.py:0
#, python-format
msgid ""
"You cannot delete this line because is part of a pack in this purchase "
"order. In order to delete this line you need to delete the pack itself"
msgstr ""
"Non si può cancellare questa riga perché è parte di un collo questo ordine "
"di vendita. Per poter cancellare questa riga bisogna cancellare il collo "
"stesso"
Loading
Loading