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

[18.0][MIG] stock_picking_purchase_order_link: Migration to 18.0 #1809

Open
wants to merge 37 commits into
base: 18.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
98893d6
[11.0][ADD] stock_picking_purchase_order_link
AdriaGForgeFlow Jul 16, 2019
7ad1976
[MIG] stock_picking_purchase_order_link: Migration to 12.0
Aug 29, 2019
b6bd466
[IMP] stock_picking_purchase_order_link: black, isort, prettier
MiquelRForgeFlow Jun 15, 2020
25fcfd7
[MIG] stock_picking_purchase_order_link: Migration to 13.0
MiquelRForgeFlow Jun 15, 2020
8343842
[UPD] Update stock_picking_purchase_order_link.pot
oca-travis Jun 20, 2020
c474fb6
[UPD] README.rst
OCA-git-bot Jun 20, 2020
a69c6ca
[MIG] stock_picking_purchase_order_link: Migration to 14.0
mariadforgeflow Aug 23, 2021
3137b22
[UPD] Update stock_picking_purchase_order_link.pot
oca-travis Sep 27, 2021
902fdf6
[UPD] README.rst
OCA-git-bot Sep 27, 2021
9a61e4c
[MIG] stock_picking_purchase_order_link: Migration to 15.0
JoanMForgeFlow Oct 22, 2021
e20b844
[UPD] Update stock_picking_purchase_order_link.pot
Oct 22, 2021
ccb8ac3
[UPD] README.rst
OCA-git-bot Oct 22, 2021
0a6f8c3
remove read access to ir.actions.*
BT-ojossen Sep 7, 2022
1eb3923
remove read access to ir.actions.*
BT-ojossen Sep 7, 2022
d121559
stock_picking_purchase_order_link 15.0.1.0.1
OCA-git-bot Sep 7, 2022
4f2c285
[MIG] stock_picking_purchase_order_link: Migration to 16.0
Mar 9, 2023
6b9ffbb
[UPD] test_stock_picking_purchase_order_link
Mar 22, 2023
0d935a9
[UPD] Update stock_picking_purchase_order_link.pot
Mar 27, 2023
0e77dce
[UPD] README.rst
OCA-git-bot Mar 27, 2023
8e32f57
stock_picking_purchase_order_link 16.0.1.0.1
OCA-git-bot Mar 27, 2023
648ccad
[UPD] README.rst
OCA-git-bot Sep 3, 2023
d7db535
Update translation files
weblate Oct 9, 2023
7810630
Added translation using Weblate (Portuguese (Brazil))
adrianojprado Oct 28, 2023
6851d19
Translated using Weblate (Portuguese (Brazil))
adrianojprado Oct 28, 2023
ca04761
Added translation using Weblate (Italian)
mymage Nov 16, 2023
45a72d8
Translated using Weblate (Italian)
mymage Nov 17, 2023
12698f4
Added translation using Weblate (French)
MorganeGoujon Mar 13, 2024
4c0d8de
Translated using Weblate (French)
MorganeGoujon Mar 13, 2024
3a4f89b
[IMP] stock_picking_purchase_order_link: pre-commit auto fixes
Ramibha Mar 27, 2024
f761bed
[MIG] stock_picking_purchase_order_link: Migration to 17.0
Ramibha Mar 27, 2024
672358e
[IMP] stock_picking_purchase_order_link:Improved Visibility Condition…
Ramibha Apr 10, 2024
2ff50f5
[IMP] stock_picking_purchase_order_link:Improved Visibility Condition…
Ramibha Apr 10, 2024
c139304
[UPD] Update stock_picking_purchase_order_link.pot
Apr 24, 2024
2a5794a
[BOT] post-merge updates
OCA-git-bot Apr 24, 2024
a61fb85
Update translation files
weblate Apr 25, 2024
d279c80
[IMP] stock_picking_purchase_order_link: pre-commit auto fixes
HeliconiaSolutions Dec 26, 2024
518df7d
[MIG] stock_picking_purchase_order_link: Migration to 18.0
HeliconiaSolutions Dec 26, 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
91 changes: 91 additions & 0 deletions stock_picking_purchase_order_link/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
=================================
Stock Picking Purchase Order Link
=================================

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

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

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

This module extends standard WMS to add a smart button in pickings to go
to purchase order that creates the picking.

**Table of contents**

.. contents::
:local:

Usage
=====

To use this module, you need to:

1. Go to *Purchase > Products* and create one of type "Stockable".
2. Go to *Purchase > Purchase Orders* and create one and confirm.
3. Go to the picking generated clicking in shipment smartbutton.
4. In the picking appears a new smartbutton to navigate to the purchase
order called *Purchase Order*.

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/stock-logistics-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/stock-logistics-workflow/issues/new?body=module:%20stock_picking_purchase_order_link%0Aversion:%2018.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
-------

* ForgeFlow S.L.

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

- Adria Gil Sorribes <adria.gil@forgeflow.com>
- Jaume Planas <jaume.planas@minorisa.net>
- Joan Mateu Jordi <joan.mateu@forgeflow.com>
- ``Heliconia Solutions Pvt. Ltd. <https://www.heliconia.io>``\ \_

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/stock-logistics-workflow <https://github.com/OCA/stock-logistics-workflow/tree/18.0/stock_picking_purchase_order_link>`_ 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 stock_picking_purchase_order_link/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
15 changes: 15 additions & 0 deletions stock_picking_purchase_order_link/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright 2021 ForgeFlow S.L.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Stock Picking Purchase Order Link",
"summary": "Link between picking and purchase order",
"version": "18.0.1.0.0",
"license": "AGPL-3",
"author": "ForgeFlow S.L., Odoo Community Association (OCA)",
"website": "https://github.com/OCA/stock-logistics-workflow",
"depends": ["purchase_stock"],
"data": ["views/stock_picking_view.xml"],
"application": False,
"installable": True,
}
27 changes: 27 additions & 0 deletions stock_picking_purchase_order_link/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_picking_purchase_order_link
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-03-27 10:26+0000\n"
"PO-Revision-Date: 2024-03-27 10:26+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: stock_picking_purchase_order_link
#: model_terms:ir.ui.view,arch_db:stock_picking_purchase_order_link.view_picking_form
msgid "Purchase Order"
msgstr "Pedido de compra"

#. module: stock_picking_purchase_order_link
#: model:ir.model,name:stock_picking_purchase_order_link.model_stock_picking
msgid "Transfer"
msgstr "Albarán"
27 changes: 27 additions & 0 deletions stock_picking_purchase_order_link/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_picking_purchase_order_link
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-03-27 10:25+0000\n"
"PO-Revision-Date: 2024-03-27 10:25+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: stock_picking_purchase_order_link
#: model_terms:ir.ui.view,arch_db:stock_picking_purchase_order_link.view_picking_form
msgid "Purchase Order"
msgstr "Bon de commande"

#. module: stock_picking_purchase_order_link
#: model:ir.model,name:stock_picking_purchase_order_link.model_stock_picking
msgid "Transfer"
msgstr "Transfert"
27 changes: 27 additions & 0 deletions stock_picking_purchase_order_link/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_picking_purchase_order_link
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-03-27 10:24+0000\n"
"PO-Revision-Date: 2024-03-27 10:24+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: stock_picking_purchase_order_link
#: model_terms:ir.ui.view,arch_db:stock_picking_purchase_order_link.view_picking_form
msgid "Purchase Order"
msgstr "Ordine di acquisto"

#. module: stock_picking_purchase_order_link
#: model:ir.model,name:stock_picking_purchase_order_link.model_stock_picking
msgid "Transfer"
msgstr "Trasferimento"
27 changes: 27 additions & 0 deletions stock_picking_purchase_order_link/i18n/pt_BR.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_picking_purchase_order_link
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-03-27 10:23+0000\n"
"PO-Revision-Date: 2024-03-27 10:23+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: stock_picking_purchase_order_link
#: model_terms:ir.ui.view,arch_db:stock_picking_purchase_order_link.view_picking_form
msgid "Purchase Order"
msgstr "Pedido Compra"

#. module: stock_picking_purchase_order_link
#: model:ir.model,name:stock_picking_purchase_order_link.model_stock_picking
msgid "Transfer"
msgstr "Transferência"
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_picking_purchase_order_link
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.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: stock_picking_purchase_order_link
#: model_terms:ir.ui.view,arch_db:stock_picking_purchase_order_link.view_picking_form
msgid "Purchase Order"
msgstr ""

#. module: stock_picking_purchase_order_link
#: model:ir.model,name:stock_picking_purchase_order_link.model_stock_picking
msgid "Transfer"
msgstr ""
1 change: 1 addition & 0 deletions stock_picking_purchase_order_link/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import stock_picking
21 changes: 21 additions & 0 deletions stock_picking_purchase_order_link/models/stock_picking.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright 2019 ForgeFlow S.L.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from odoo import models


class StockPicking(models.Model):
_inherit = "stock.picking"

def action_view_purchase_order(self):
"""This function returns an action that display existing purchase order
of given picking.
"""
self.ensure_one()
action = self.env["ir.actions.actions"]._for_xml_id(
"purchase.purchase_form_action"
)
form = self.env.ref("purchase.purchase_order_form")
action["views"] = [(form.id, "form")]
action["res_id"] = self.purchase_id.id
return action
3 changes: 3 additions & 0 deletions stock_picking_purchase_order_link/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
4 changes: 4 additions & 0 deletions stock_picking_purchase_order_link/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- Adria Gil Sorribes \<<adria.gil@forgeflow.com>\>
- Jaume Planas \<<jaume.planas@minorisa.net>\>
- Joan Mateu Jordi \<<joan.mateu@forgeflow.com>\>
- `Heliconia Solutions Pvt. Ltd. <https://www.heliconia.io>`_
2 changes: 2 additions & 0 deletions stock_picking_purchase_order_link/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
This module extends standard WMS to add a smart button in pickings to go
to purchase order that creates the picking.
7 changes: 7 additions & 0 deletions stock_picking_purchase_order_link/readme/USAGE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
To use this module, you need to:

1. Go to *Purchase \> Products* and create one of type "Stockable".
2. Go to *Purchase \> Purchase Orders* and create one and confirm.
3. Go to the picking generated clicking in shipment smartbutton.
4. In the picking appears a new smartbutton to navigate to the purchase
order called *Purchase Order*.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading