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_order_secondary_unit: Migration to 17.0 #2319

Open
wants to merge 36 commits into
base: 17.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
97c243e
purchase_order_secondary_unit: New module to allow buy in secondary u…
sergio-teruel Oct 25, 2018
5dd04f1
[MIG] purchase_order_secondary_unit v11 to v12
Nikul-Chaudhary Jan 27, 2019
d48ada0
[IMP] purchase_order_secondary_unit: black, isort
ps-tubtim Jan 13, 2020
9fe78be
[MIG] purchase_order_secondary_unit: Migration to 13.0
ps-tubtim Jan 13, 2020
70874df
[IMP] purchase_order_secondary_unit: more clear string field
sergio-teruel Dec 18, 2020
d5829f3
[13.0][FIX] purchase_order_secondary_unit, error selecting 2nd_uom wh…
kittiu Jan 19, 2021
b99e987
[MIG] purchase_order_secondary_unit: Migration to 14.0
SurachetS Feb 2, 2021
1d2807a
Added translation using Weblate (Japanese)
kakurai8 Dec 28, 2021
da4ca8a
Added translation using Weblate (French)
kh-badep May 11, 2022
2c95243
[IMP] purchase_order_secondary_unit: Less code. Use product_secondary…
sergio-teruel Jan 12, 2021
51f240e
[FIX] po_secondary_unit: Drop 0 qty test check on pol with secondary UoM
HviorForgeFlow May 16, 2022
0b3388d
Added translation using Weblate (German)
marylla Jun 10, 2022
dc7df3c
Translated using Weblate (German)
marylla Jun 10, 2022
47d6d68
[IMP] purchase_order_secondary_unit: black, isort, prettier
BT-mgomez Sep 28, 2022
9001deb
[15.0][MIG] purchase_order_secondary_unit: Migration to 15.0
BT-mgomez Sep 28, 2022
4eb5c4f
[IMP] purchase_order_secondary_unit: Compatibility with product variants
Feb 20, 2023
6b8113b
[UPD] Update purchase_order_secondary_unit.pot
Mar 28, 2023
cc7d0fe
[UPD] README.rst
OCA-git-bot Mar 28, 2023
e730a14
[FIX] purchase_order_secondary_unit: Split tests
HviorForgeFlow Apr 26, 2023
ee15dc0
purchase_order_secondary_unit 15.0.1.0.1
OCA-git-bot Apr 26, 2023
173df91
[IMP] purchase_order_secondary_unit: Add secondary units to purchase …
sergio-teruel Apr 26, 2023
5515934
[UPD] Update purchase_order_secondary_unit.pot
May 2, 2023
bfa38d4
purchase_order_secondary_unit 15.0.1.1.0
OCA-git-bot May 2, 2023
2542808
Update translation files
weblate May 2, 2023
ebc5017
[UPD] README.rst
OCA-git-bot Sep 3, 2023
8c199da
[FIX] purchase_order_secondary_unit: User can changes secondary uom i…
sergio-teruel Sep 6, 2023
983a752
purchase_order_secondary_unit 15.0.1.2.0
OCA-git-bot Sep 7, 2023
0c4b42c
[UPD] README.rst
OCA-git-bot Sep 7, 2023
f02b7c9
[FIX] purchase_order_secondary_unit: Set product unit of measure for …
pilarvargas-tecnativa Sep 18, 2023
ec5f1bb
oca-github-bot post-merge updates
OCA-git-bot Sep 19, 2023
be5d4e8
Translated using Weblate (Spanish)
Ivorra78 Oct 24, 2023
9a4146b
[IMP] purchase_order_secondary_unit: Require secondary_uom_id when se…
carlosdauden Jan 6, 2024
575e3f5
[BOT] post-merge updates
OCA-git-bot Jan 9, 2024
66d7a8b
[MIG] purchase_order_secondary_unit: Migration to 17.0
mmrondon Sep 26, 2024
ade7ad5
[MIG] purchase_order_secondary_unit: Fix issue on test
mmrondon Sep 26, 2024
45ec32e
[IMP] purchase_order_secondary_unit: pre-commit auto fixes
mmrondon Oct 9, 2024
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
96 changes: 96 additions & 0 deletions purchase_order_secondary_unit/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
=============================
Purchase Order Secondary Unit
=============================

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

.. |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%2Fpurchase--workflow-lightgray.png?logo=github
:target: https://github.com/OCA/purchase-workflow/tree/17.0/purchase_order_secondary_unit
:alt: OCA/purchase-workflow
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/purchase-workflow-17-0/purchase-workflow-17-0-purchase_order_secondary_unit
: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/purchase-workflow&target_branch=17.0
:alt: Try me on Runboat

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

This module extends the functionality of purchase orders to allow buy
products in secondary unit of distinct category.

**Table of contents**

.. contents::
:local:

Usage
=====

To use this module you need to:

1. Go to a *Product > General Information tab*.
2. Create any record in "Secondary unit of measure".
3. Set the conversion factor.
4. Go to *Purchase > Quotation > Create*.
5. Change secondary qty and secondary uom in line, and quantity
(product_qty) will be changed (according to the conversion factor).

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

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

* Tecnativa

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

- `Tecnativa <https://www.tecnativa.com>`__:

- Sergio Teruel
- Ernesto Tejeda

- Nikul Chaudhary <[email protected]>
- Pimolnat Suntian <[email protected]>
- Miguel Ángel Gómez <[email protected]>

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/purchase-workflow <https://github.com/OCA/purchase-workflow/tree/17.0/purchase_order_secondary_unit>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 2 additions & 0 deletions purchase_order_secondary_unit/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from . import models
22 changes: 22 additions & 0 deletions purchase_order_secondary_unit/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright 2018 Tecnativa - Sergio Teruel
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Purchase Order Secondary Unit",
"summary": "Purchase product in a secondary unit",
"version": "17.0.1.0.0",
"development_status": "Beta",
"category": "Purchase",
"website": "https://github.com/OCA/purchase-workflow",
"author": "Tecnativa, Odoo Community Association (OCA)",
"license": "AGPL-3",
"application": False,
"installable": True,
"auto_install": True,
"depends": ["purchase", "product_secondary_unit"],
"data": [
"views/product_views.xml",
"views/purchase_order_views.xml",
"reports/purchase_order_templates.xml",
"reports/purchase_quotation_templates.xml",
],
}
75 changes: 75 additions & 0 deletions purchase_order_secondary_unit/i18n/de.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * purchase_order_secondary_unit
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2022-06-10 11:05+0000\n"
"Last-Translator: Maria Sparenberg <[email protected]>\n"
"Language-Team: none\n"
"Language: de\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: purchase_order_secondary_unit
#: model_terms:ir.ui.view,arch_db:purchase_order_secondary_unit.report_purchaseorder_document
#: model_terms:ir.ui.view,arch_db:purchase_order_secondary_unit.report_purchasequotation_document
msgid "<strong>Second Qty</strong>"
msgstr ""

#. module: purchase_order_secondary_unit
#: model:ir.model.fields,field_description:purchase_order_secondary_unit.field_product_product__purchase_secondary_uom_id
#: model:ir.model.fields,field_description:purchase_order_secondary_unit.field_product_template__purchase_secondary_uom_id
msgid "Default secondary unit for purchases"
msgstr "Einkauf 2. ME"

#. module: purchase_order_secondary_unit
#: model:ir.model.fields,help:purchase_order_secondary_unit.field_product_product__purchase_secondary_uom_id
msgid ""
"In order to set a value, please first add at least one record in 'Secondary "
"Unit of Measure'"
msgstr ""

#. module: purchase_order_secondary_unit
#: model:ir.model,name:purchase_order_secondary_unit.model_product_product
msgid "Product"
msgstr ""

#. module: purchase_order_secondary_unit
#: model:ir.model,name:purchase_order_secondary_unit.model_product_template
msgid "Product Template"
msgstr "Produktvorlage"

#. module: purchase_order_secondary_unit
#: model:ir.model,name:purchase_order_secondary_unit.model_purchase_order_line
msgid "Purchase Order Line"
msgstr "Bestellposition"

#. module: purchase_order_secondary_unit
#: model:ir.model.fields,field_description:purchase_order_secondary_unit.field_purchase_order_line__product_qty
msgid "Quantity"
msgstr "Menge"

#. module: purchase_order_secondary_unit
#: model:ir.model.fields,field_description:purchase_order_secondary_unit.field_purchase_order_line__secondary_uom_id
msgid "Second unit"
msgstr "2. ME"

#. module: purchase_order_secondary_unit
#: model:ir.model.fields,field_description:purchase_order_secondary_unit.field_purchase_order_line__secondary_uom_qty
msgid "Secondary Qty"
msgstr "Menge (2. ME)"

#~ msgid "Display Name"
#~ msgstr "Anzeigename"

#~ msgid "ID"
#~ msgstr "ID"

#~ msgid "Last Modified on"
#~ msgstr "Zuletzt geändert am"
69 changes: 69 additions & 0 deletions purchase_order_secondary_unit/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * purchase_order_secondary_unit
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-04-26 21:13+0000\n"
"PO-Revision-Date: 2023-10-28 19:59+0000\n"
"Last-Translator: Ivorra78 <[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: 8bit\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.17\n"

#. module: purchase_order_secondary_unit
#: model_terms:ir.ui.view,arch_db:purchase_order_secondary_unit.report_purchaseorder_document
#: model_terms:ir.ui.view,arch_db:purchase_order_secondary_unit.report_purchasequotation_document
msgid "<strong>Second Qty</strong>"
msgstr "<strong>Segunda Ctd</strong>"

#. module: purchase_order_secondary_unit
#: model:ir.model.fields,field_description:purchase_order_secondary_unit.field_product_product__purchase_secondary_uom_id
#: model:ir.model.fields,field_description:purchase_order_secondary_unit.field_product_template__purchase_secondary_uom_id
msgid "Default secondary unit for purchases"
msgstr "Ud de compra secundaria por defecto"

#. module: purchase_order_secondary_unit
#: model:ir.model.fields,help:purchase_order_secondary_unit.field_product_product__purchase_secondary_uom_id
msgid ""
"In order to set a value, please first add at least one record in 'Secondary "
"Unit of Measure'"
msgstr ""
"Para establecer un valor, añada primero al menos un registro en 'Unidad de "
"Medida Secundaria'"

#. module: purchase_order_secondary_unit
#: model:ir.model,name:purchase_order_secondary_unit.model_product_product
msgid "Product"
msgstr "Producto"

#. module: purchase_order_secondary_unit
#: model:ir.model,name:purchase_order_secondary_unit.model_product_template
msgid "Product Template"
msgstr "Plantilla de producto"

#. module: purchase_order_secondary_unit
#: model:ir.model,name:purchase_order_secondary_unit.model_purchase_order_line
msgid "Purchase Order Line"
msgstr "Línea pedido de compra"

#. module: purchase_order_secondary_unit
#: model:ir.model.fields,field_description:purchase_order_secondary_unit.field_purchase_order_line__product_qty
msgid "Quantity"
msgstr "Cantidad"

#. module: purchase_order_secondary_unit
#: model:ir.model.fields,field_description:purchase_order_secondary_unit.field_purchase_order_line__secondary_uom_id
msgid "Second unit"
msgstr "Unidad secundaria"

#. module: purchase_order_secondary_unit
#: model:ir.model.fields,field_description:purchase_order_secondary_unit.field_purchase_order_line__secondary_uom_qty
msgid "Secondary Qty"
msgstr "Cdad. secundaria"
64 changes: 64 additions & 0 deletions purchase_order_secondary_unit/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * purchase_order_secondary_unit
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
"Language: fr\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"

#. module: purchase_order_secondary_unit
#: model_terms:ir.ui.view,arch_db:purchase_order_secondary_unit.report_purchaseorder_document
#: model_terms:ir.ui.view,arch_db:purchase_order_secondary_unit.report_purchasequotation_document
msgid "<strong>Second Qty</strong>"
msgstr ""

#. module: purchase_order_secondary_unit
#: model:ir.model.fields,field_description:purchase_order_secondary_unit.field_product_product__purchase_secondary_uom_id
#: model:ir.model.fields,field_description:purchase_order_secondary_unit.field_product_template__purchase_secondary_uom_id
msgid "Default secondary unit for purchases"
msgstr ""

#. module: purchase_order_secondary_unit
#: model:ir.model.fields,help:purchase_order_secondary_unit.field_product_product__purchase_secondary_uom_id
msgid ""
"In order to set a value, please first add at least one record in 'Secondary "
"Unit of Measure'"
msgstr ""

#. module: purchase_order_secondary_unit
#: model:ir.model,name:purchase_order_secondary_unit.model_product_product
msgid "Product"
msgstr ""

#. module: purchase_order_secondary_unit
#: model:ir.model,name:purchase_order_secondary_unit.model_product_template
msgid "Product Template"
msgstr ""

#. module: purchase_order_secondary_unit
#: model:ir.model,name:purchase_order_secondary_unit.model_purchase_order_line
msgid "Purchase Order Line"
msgstr ""

#. module: purchase_order_secondary_unit
#: model:ir.model.fields,field_description:purchase_order_secondary_unit.field_purchase_order_line__product_qty
msgid "Quantity"
msgstr ""

#. module: purchase_order_secondary_unit
#: model:ir.model.fields,field_description:purchase_order_secondary_unit.field_purchase_order_line__secondary_uom_id
msgid "Second unit"
msgstr ""

#. module: purchase_order_secondary_unit
#: model:ir.model.fields,field_description:purchase_order_secondary_unit.field_purchase_order_line__secondary_uom_qty
msgid "Secondary Qty"
msgstr ""
64 changes: 64 additions & 0 deletions purchase_order_secondary_unit/i18n/ja.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * purchase_order_secondary_unit
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
"Language: ja\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=1; plural=0;\n"

#. module: purchase_order_secondary_unit
#: model_terms:ir.ui.view,arch_db:purchase_order_secondary_unit.report_purchaseorder_document
#: model_terms:ir.ui.view,arch_db:purchase_order_secondary_unit.report_purchasequotation_document
msgid "<strong>Second Qty</strong>"
msgstr ""

#. module: purchase_order_secondary_unit
#: model:ir.model.fields,field_description:purchase_order_secondary_unit.field_product_product__purchase_secondary_uom_id
#: model:ir.model.fields,field_description:purchase_order_secondary_unit.field_product_template__purchase_secondary_uom_id
msgid "Default secondary unit for purchases"
msgstr ""

#. module: purchase_order_secondary_unit
#: model:ir.model.fields,help:purchase_order_secondary_unit.field_product_product__purchase_secondary_uom_id
msgid ""
"In order to set a value, please first add at least one record in 'Secondary "
"Unit of Measure'"
msgstr ""

#. module: purchase_order_secondary_unit
#: model:ir.model,name:purchase_order_secondary_unit.model_product_product
msgid "Product"
msgstr ""

#. module: purchase_order_secondary_unit
#: model:ir.model,name:purchase_order_secondary_unit.model_product_template
msgid "Product Template"
msgstr ""

#. module: purchase_order_secondary_unit
#: model:ir.model,name:purchase_order_secondary_unit.model_purchase_order_line
msgid "Purchase Order Line"
msgstr ""

#. module: purchase_order_secondary_unit
#: model:ir.model.fields,field_description:purchase_order_secondary_unit.field_purchase_order_line__product_qty
msgid "Quantity"
msgstr ""

#. module: purchase_order_secondary_unit
#: model:ir.model.fields,field_description:purchase_order_secondary_unit.field_purchase_order_line__secondary_uom_id
msgid "Second unit"
msgstr ""

#. module: purchase_order_secondary_unit
#: model:ir.model.fields,field_description:purchase_order_secondary_unit.field_purchase_order_line__secondary_uom_qty
msgid "Secondary Qty"
msgstr ""
Loading
Loading