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_line_stock_available: Migration to version 17.0 #2507

Open
wants to merge 15 commits 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
95 changes: 95 additions & 0 deletions purchase_order_line_stock_available/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
===================================
Purchase order line stock available
===================================

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

.. |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_line_stock_available
: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_line_stock_available
: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 allows to view the virtual stock quantity of a product in
the purchase order line.

**Table of contents**

.. contents::
:local:

Usage
=====

- Create a new purchase order and now you will see available stock of
product on every purchase line.

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_line_stock_available%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
-------

* AvanzOSC
* Tecnativa

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

- `AvanzOSC <http://www.avanzosc.es/>`__:

- Daniel Campos <[email protected]>
- Ana Juaristi <[email protected]>

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

- Pedro Baeza
- Vicent Cubells
- Víctor Martínez

- Sudhir Arya <[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_line_stock_available>`_ 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 purchase_order_line_stock_available/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
14 changes: 14 additions & 0 deletions purchase_order_line_stock_available/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright 2015 AvanzOSC
# Copyright 2017-2019 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Purchase order line stock available",
"version": "17.0.1.0.0",
"license": "AGPL-3",
"author": "AvanzOSC," "Tecnativa," "Odoo Community Association (OCA)",
"website": "https://github.com/OCA/purchase-workflow",
"depends": ["purchase_stock"],
"category": "Purchases",
"data": ["views/purchase_view.xml"],
"installable": True,
}
48 changes: 48 additions & 0 deletions purchase_order_line_stock_available/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:
# * purchase_order_line_stock_available
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-02-21 09:11+0000\n"
"PO-Revision-Date: 2023-10-28 19:58+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_line_stock_available
#: model:ir.model.fields,help:purchase_order_line_stock_available.field_purchase_order_line__virtual_available
msgid ""
"Forecast quantity (computed as Quantity On Hand - Outgoing + Incoming)\n"
"In a context with a single Stock Location, this includes goods stored in "
"this location, or any of its children.\n"
"In a context with a single Warehouse, this includes goods stored in the "
"Stock Location of this Warehouse, or any of its children.\n"
"Otherwise, this includes goods stored in any Stock Location with 'internal' "
"type."
msgstr ""
"Cantidad Prevista (calculado de la siguiente forma -> stock real - salientes "
"+ entrantes)\n"
"Con una ubicación de stock en contexto, añade las cantidades existentes en "
"esa ubicación o en cualquier hijo suyo. \n"
"Con un almacén en contexto, añade las cantidades existentes en la ubicación "
"de stock de ese almacén o en cualquier hijo suyo. \n"
"En cualquiero otro caso, te añade las cantidades existentes en todas las "
"ubicaciones de tipo interno."

#. module: purchase_order_line_stock_available
#: model:ir.model.fields,field_description:purchase_order_line_stock_available.field_purchase_order_line__virtual_available
msgid "Forecasted Quantity"
msgstr "Cantidad Prevista"

#. module: purchase_order_line_stock_available
#: model:ir.model,name:purchase_order_line_stock_available.model_purchase_order_line
msgid "Purchase Order Line"
msgstr "Línea pedido de compra"
44 changes: 44 additions & 0 deletions purchase_order_line_stock_available/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * purchase_order_line_stock_available
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2024-07-08 08:59+0000\n"
"Last-Translator: mymage <[email protected]>\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 5.6.2\n"

#. module: purchase_order_line_stock_available
#: model:ir.model.fields,help:purchase_order_line_stock_available.field_purchase_order_line__virtual_available
msgid ""
"Forecast quantity (computed as Quantity On Hand - Outgoing + Incoming)\n"
"In a context with a single Stock Location, this includes goods stored in this location, or any of its children.\n"
"In a context with a single Warehouse, this includes goods stored in the Stock Location of this Warehouse, or any of its children.\n"
"Otherwise, this includes goods stored in any Stock Location with 'internal' type."
msgstr ""
"Quantità previsionale (calcolata come quantità disponibile - uscite + "
"entrate)\n"
"In un contesto con una sola ubicazione di magazzino, include i beni stoccati "
"in questa ubicazione o qualsiasi delle sue figlie.\n"
"In un contesto con un solo magazzino, include i beni stoccati "
"nell'ubicazione di magazzino di questo magazzino o qualsiasi delle figlie.\n"
"Altrimenti, include i beni stoccati in qualsiasi ubicazione di tipo "
"'interno'."

#. module: purchase_order_line_stock_available
#: model:ir.model.fields,field_description:purchase_order_line_stock_available.field_purchase_order_line__virtual_available
msgid "Forecasted Quantity"
msgstr "Quantità prevista"

#. module: purchase_order_line_stock_available
#: model:ir.model,name:purchase_order_line_stock_available.model_purchase_order_line
msgid "Purchase Order Line"
msgstr "Riga ordine di acquisto"
52 changes: 52 additions & 0 deletions purchase_order_line_stock_available/i18n/pt_BR.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * purchase_order_line_stock_available
#
# Translators:
# danimaribeiro <[email protected]>, 2015
msgid ""
msgstr ""
"Project-Id-Version: odoomrp-utils (8.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-10-08 08:45+0000\n"
"PO-Revision-Date: 2024-07-10 18:58+0000\n"
"Last-Translator: Rodrigo Sottomaior Macedo "
"<[email protected]>\n"
"Language-Team: Portuguese (Brazil) (http://www.transifex.com/oca/"
"odoomrp-utils-8-0/language/pt_BR/)\n"
"Language: pt_BR\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 5.6.2\n"

#. module: purchase_order_line_stock_available
#: model:ir.model.fields,help:purchase_order_line_stock_available.field_purchase_order_line__virtual_available
msgid ""
"Forecast quantity (computed as Quantity On Hand - Outgoing + Incoming)\n"
"In a context with a single Stock Location, this includes goods stored in "
"this location, or any of its children.\n"
"In a context with a single Warehouse, this includes goods stored in the "
"Stock Location of this Warehouse, or any of its children.\n"
"Otherwise, this includes goods stored in any Stock Location with 'internal' "
"type."
msgstr ""
"Quantidade prevista (calculada como Quantidade disponível - Saída + Entrada)"
"\n"
"Em um contexto com um único Local de Estoque, isso inclui mercadorias "
"armazenadas nesse local ou qualquer um de seus filhos.\n"
"Num contexto com um único Armazém, isto inclui mercadorias armazenadas no "
"Local de Estoque deste Armazém, ou qualquer um dos seus filhos.\n"
"Caso contrário, isto inclui mercadorias armazenadas em qualquer Local de "
"Estoque com tipo 'interno'."

#. module: purchase_order_line_stock_available
#: model:ir.model.fields,field_description:purchase_order_line_stock_available.field_purchase_order_line__virtual_available
msgid "Forecasted Quantity"
msgstr "Quantidade prevista"

#. module: purchase_order_line_stock_available
#: model:ir.model,name:purchase_order_line_stock_available.model_purchase_order_line
msgid "Purchase Order Line"
msgstr "Linha de compra"
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * purchase_order_line_stock_available
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.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: purchase_order_line_stock_available
#: model:ir.model.fields,help:purchase_order_line_stock_available.field_purchase_order_line__virtual_available
msgid ""
"Forecast quantity (computed as Quantity On Hand - Outgoing + Incoming)\n"
"In a context with a single Stock Location, this includes goods stored in this location, or any of its children.\n"
"In a context with a single Warehouse, this includes goods stored in the Stock Location of this Warehouse, or any of its children.\n"
"Otherwise, this includes goods stored in any Stock Location with 'internal' type."
msgstr ""

#. module: purchase_order_line_stock_available
#: model:ir.model.fields,field_description:purchase_order_line_stock_available.field_purchase_order_line__virtual_available
msgid "Forecasted Quantity"
msgstr ""

#. module: purchase_order_line_stock_available
#: model:ir.model,name:purchase_order_line_stock_available.model_purchase_order_line
msgid "Purchase Order Line"
msgstr ""
42 changes: 42 additions & 0 deletions purchase_order_line_stock_available/i18n/sl.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * purchase_order_line_stock_available
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: odoomrp-utils (8.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-10-08 08:45+0000\n"
"PO-Revision-Date: 2015-09-28 13:12+0000\n"
"Last-Translator: Matjaž Mozetič <[email protected]>\n"
"Language-Team: Slovenian (http://www.transifex.com/oca/odoomrp-utils-8-0/"
"language/sl/)\n"
"Language: sl\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || "
"n%100==4 ? 2 : 3);\n"

#. module: purchase_order_line_stock_available
#: model:ir.model.fields,help:purchase_order_line_stock_available.field_purchase_order_line__virtual_available
msgid ""
"Forecast quantity (computed as Quantity On Hand - Outgoing + Incoming)\n"
"In a context with a single Stock Location, this includes goods stored in "
"this location, or any of its children.\n"
"In a context with a single Warehouse, this includes goods stored in the "
"Stock Location of this Warehouse, or any of its children.\n"
"Otherwise, this includes goods stored in any Stock Location with 'internal' "
"type."
msgstr ""

#. module: purchase_order_line_stock_available
#: model:ir.model.fields,field_description:purchase_order_line_stock_available.field_purchase_order_line__virtual_available
msgid "Forecasted Quantity"
msgstr ""

#. module: purchase_order_line_stock_available
#: model:ir.model,name:purchase_order_line_stock_available.model_purchase_order_line
msgid "Purchase Order Line"
msgstr "Postavka nabavnega naloga"
39 changes: 39 additions & 0 deletions purchase_order_line_stock_available/i18n/zh_CN.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * purchase_order_line_stock_available
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 13.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2021-03-21 12:46+0000\n"
"Last-Translator: Dong <[email protected]>\n"
"Language-Team: none\n"
"Language: zh_CN\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"
"X-Generator: Weblate 4.3.2\n"

#. module: purchase_order_line_stock_available
#: model:ir.model.fields,help:purchase_order_line_stock_available.field_purchase_order_line__virtual_available
msgid ""
"Forecast quantity (computed as Quantity On Hand - Outgoing + Incoming)\n"
"In a context with a single Stock Location, this includes goods stored in "
"this location, or any of its children.\n"
"In a context with a single Warehouse, this includes goods stored in the "
"Stock Location of this Warehouse, or any of its children.\n"
"Otherwise, this includes goods stored in any Stock Location with 'internal' "
"type."
msgstr ""

#. module: purchase_order_line_stock_available
#: model:ir.model.fields,field_description:purchase_order_line_stock_available.field_purchase_order_line__virtual_available
msgid "Forecasted Quantity"
msgstr ""

#. module: purchase_order_line_stock_available
#: model:ir.model,name:purchase_order_line_stock_available.model_purchase_order_line
msgid "Purchase Order Line"
msgstr "采购订单明细"
1 change: 1 addition & 0 deletions purchase_order_line_stock_available/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import purchase
9 changes: 9 additions & 0 deletions purchase_order_line_stock_available/models/purchase.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from odoo import fields, models


class PurchaseOrderLine(models.Model):
_inherit = "purchase.order.line"

virtual_available = fields.Float(
related="product_id.virtual_available", readonly=True
)
3 changes: 3 additions & 0 deletions purchase_order_line_stock_available/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
Loading
Loading