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

[MIG][16.0] product_packaging_type_pallet => product_packaging_level_pallet #1216

Closed
Closed
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
77 changes: 77 additions & 0 deletions product_packaging_level_pallet/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
=============================
Product Packaging Type Pallet
=============================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! 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--attribute-lightgray.png?logo=github
:target: https://github.com/OCA/product-attribute/tree/14.0/product_packaging_type_pallet
:alt: OCA/product-attribute
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/product-attribute-14-0/product-attribute-14-0-product_packaging_type_pallet
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/135/14.0
:alt: Try me on Runbot

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

This module adds specific fields to manage product packaging types for pallets.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
This module adds specific fields to manage product packaging types for pallets.
This module adds specific fields to manage product packaging levels for pallets.

Copy link
Contributor

@jbaudoux jbaudoux Mar 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, don't change this, it is a package type specialization, not a package level


**Table of contents**

.. contents::
:local:

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/product-attribute/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-attribute/issues/new?body=module:%20product_packaging_type_pallet%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
~~~~~~~

* Camptocamp

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

* Akim Juillerat <akim.juillerat@camptocamp.com>

Trobz

* Dung Tran <dungtd@trobz.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.

This module is part of the `OCA/product-attribute <https://github.com/OCA/product-attribute/tree/14.0/product_packaging_type_pallet>`_ 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 product_packaging_level_pallet/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
14 changes: 14 additions & 0 deletions product_packaging_level_pallet/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright 2019 Camptocamp SA
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl)
{
"name": "Product Packaging Type Pallet",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"name": "Product Packaging Type Pallet",
"name": "Product Packaging Level Pallet",

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, don't change this, it is a package type specialization, not a package level

"summary": "Manage packaging of pallet type",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"summary": "Manage packaging of pallet type",
"summary": "Manage packaging level of pallet",

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, don't change this, it is a package type specialization, not a package level

"version": "16.0.1.0.0",
"category": "Product",
"author": "Camptocamp, Odoo Community Association (OCA)",
"license": "AGPL-3",
"depends": ["product_packaging_dimension", "product_packaging_level"],
"website": "https://github.com/OCA/product-attribute",
"data": ["views/product_packaging.xml", "views/product_packaging_level.xml"],
"installable": True,
}
48 changes: 48 additions & 0 deletions product_packaging_level_pallet/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * product_packaging_level_pallet
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 13.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2020-10-14 14:08+0000\n"
"Last-Translator: claudiagn <claudia.gargallo@qubiq.es>\n"
"Language-Team: none\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 3.10\n"

#. module: product_packaging_level_pallet
#: model:ir.model.fields,field_description:product_packaging_level_pallet.field_product_packaging__level_is_pallet
#: model:ir.model.fields,field_description:product_packaging_level_pallet.field_product_packaging_level__is_pallet
msgid "Is Pallet"
msgstr "Es palet"

#. module: product_packaging_level_pallet
#: model:ir.model.fields,field_description:product_packaging_level_pallet.field_product_packaging__layers
msgid "Layers"
msgstr "Capas"

#. module: product_packaging_level_pallet
#: model:ir.model.fields,field_description:product_packaging_level_pallet.field_product_packaging__packs_per_layer
msgid "Packs Per Layer"
msgstr "Packs por capa"

#. module: product_packaging_level_pallet
#: model:ir.model,name:product_packaging_level_pallet.model_product_packaging
msgid "Product Packaging"
msgstr "Empaquetado de producto"

#. module: product_packaging_level_pallet
#: model:ir.model,name:product_packaging_level_pallet.model_product_packaging_level
msgid "Level management for product.packaging"
msgstr "Tipo de administración para empaquetado de producto"

#. module: product_packaging_level_pallet
#: model:ir.model.fields,help:product_packaging_level_pallet.field_product_packaging__packs_per_layer
msgid "number of boxes/bags on a layer"
msgstr "número de cajas/ bolsas en una capa"
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * product_packaging_level_pallet
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: product_packaging_level_pallet
#: model:ir.model.fields,field_description:product_packaging_level_pallet.field_product_packaging__display_name
#: model:ir.model.fields,field_description:product_packaging_level_pallet.field_product_packaging_level__display_name
msgid "Display Name"
msgstr ""

#. module: product_packaging_level_pallet
#: model:ir.model.fields,field_description:product_packaging_level_pallet.field_product_packaging__id
#: model:ir.model.fields,field_description:product_packaging_level_pallet.field_product_packaging_level__id
msgid "ID"
msgstr ""

#. module: product_packaging_level_pallet
#: model:ir.model.fields,field_description:product_packaging_level_pallet.field_product_packaging__level_is_pallet
#: model:ir.model.fields,field_description:product_packaging_level_pallet.field_product_packaging_level__is_pallet
msgid "Is Pallet"
msgstr ""

#. module: product_packaging_level_pallet
#: model:ir.model.fields,field_description:product_packaging_level_pallet.field_product_packaging____last_update
#: model:ir.model.fields,field_description:product_packaging_level_pallet.field_product_packaging_level____last_update
msgid "Last Modified on"
msgstr ""

#. module: product_packaging_level_pallet
#: model:ir.model.fields,field_description:product_packaging_level_pallet.field_product_packaging__layers
msgid "Layers"
msgstr ""

#. module: product_packaging_level_pallet
#: model:ir.model.fields,field_description:product_packaging_level_pallet.field_product_packaging__packs_per_layer
msgid "Packs Per Layer"
msgstr ""

#. module: product_packaging_level_pallet
#: model:ir.model,name:product_packaging_level_pallet.model_product_packaging
msgid "Product Packaging"
msgstr ""

#. module: product_packaging_level_pallet
#: model:ir.model,name:product_packaging_level_pallet.model_product_packaging_level
msgid "Level management for product.packaging"
msgstr ""

#. module: product_packaging_level_pallet
#: model:ir.model.fields,help:product_packaging_level_pallet.field_product_packaging__packs_per_layer
msgid "number of boxes/bags on a layer"
msgstr ""
1 change: 1 addition & 0 deletions product_packaging_level_pallet/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import product_packaging, product_packaging_level
12 changes: 12 additions & 0 deletions product_packaging_level_pallet/models/product_packaging.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Copyright 2019 Camptocamp SA
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl)
from odoo import fields, models


class ProductPackaging(models.Model):

_inherit = "product.packaging"

level_is_pallet = fields.Boolean(related="packaging_level_id.is_pallet")
layers = fields.Integer()
packs_per_layer = fields.Integer(help="number of boxes/bags on a layer")
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Copyright 2019 Camptocamp SA
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl)
from odoo import fields, models


class ProductPackagingLevel(models.Model):
_inherit = "product.packaging.level"

is_pallet = fields.Boolean()
7 changes: 7 additions & 0 deletions product_packaging_level_pallet/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
* Akim Juillerat <akim.juillerat@camptocamp.com>

Trobz

* Dung Tran <dungtd@trobz.com>

* Denis Roussel <denis.roussel@acsone.eu>
1 change: 1 addition & 0 deletions product_packaging_level_pallet/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This module adds specific fields to manage product packaging types for pallets.
29 changes: 29 additions & 0 deletions product_packaging_level_pallet/readme/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Project C2C Migration information
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file should be removed


**please, UPDATE ME!**

_Odoo 13.0 project generated by phuctran, 2020-10-30 00:09:51_

# Checklist

- [ ] Update oca_dependencies.txt
- [ ] Update test-requirements.txt
- [ ] Push code to trobz repo (use the script `deploy.sh`, ie:
`./deploy.sh stock-logistics-workflow stock_partner_delivery_window`)

# Notes

## Preserving commit history of a PR

This case is done when the given module has PR but not merged yet. For example:

- Module: `sale_partner_cutoff_delivery_window`
- PR: 1377 on v13
- Migration: v14

```sh
git clone https://github.com/OCA/sale-workflow -b 14.0
git fetch origin pull/1377/head:13.0_pr1377
git checkout -b 14.0-mig-sale_partner_cutoff_delivery_window origin/14.0
git format-patch --keep-subject --stdout origin/14.0..13.0_pr1377 -- sale_partner_cutoff_delivery_window | git am -3 --keep
```
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading