-
-
Notifications
You must be signed in to change notification settings - Fork 812
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ADD] procurement_purchase_requisition_generation: New module
TT54940
- Loading branch information
1 parent
ffea0bc
commit 60dd38b
Showing
21 changed files
with
998 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
=========================================== | ||
Procurement Purchase Requisition Generation | ||
=========================================== | ||
|
||
.. | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! This file is generated by oca-gen-addon-readme !! | ||
!! changes will be overwritten. !! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! source digest: sha256:aecf57a57b1d0fa1677d5213f1b027a846c430743324131b2f704d44834d144e | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
.. |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/procurement_purchase_requisition_generation | ||
: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-procurement_purchase_requisition_generation | ||
: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 restores the v15 functionality in which you can configure | ||
products for generating purchase tenders instead of draft purchase | ||
orders. | ||
|
||
**Table of contents** | ||
|
||
.. contents:: | ||
:local: | ||
|
||
Use Cases / Context | ||
=================== | ||
|
||
The decision of who to buy from is decided by sales order, so it is not | ||
useful to group by supplier in purchase orders. | ||
|
||
Usage | ||
===== | ||
|
||
#. Go to Purchases > Products > Products. #. Create a Storable product, | ||
set the 'Buy' route and some vendor in the 'Purchase' tab. #. Set the | ||
Procurement: 'Propose a call for tenders' option in the 'Reordering' | ||
section of the 'Purchase' tab. #. Click on the 'Replenish' button. #. | ||
The 'Buy' route and 'Vendor' field will be defined automatically. #. | ||
Click on the 'Confirm' button. #. A new Blanket Order will be generated. | ||
|
||
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:%20procurement_purchase_requisition_generation%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): | ||
|
||
- Víctor Martínez | ||
- Pedro M. Baeza | ||
|
||
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. | ||
|
||
.. |maintainer-victoralmau| image:: https://github.com/victoralmau.png?size=40px | ||
:target: https://github.com/victoralmau | ||
:alt: victoralmau | ||
|
||
Current `maintainer <https://odoo-community.org/page/maintainer-role>`__: | ||
|
||
|maintainer-victoralmau| | ||
|
||
This module is part of the `OCA/purchase-workflow <https://github.com/OCA/purchase-workflow/tree/17.0/procurement_purchase_requisition_generation>`_ project on GitHub. | ||
|
||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
from . import models | ||
from . import wizards |
14 changes: 14 additions & 0 deletions
14
procurement_purchase_requisition_generation/__manifest__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Copyright 2025 Tecnativa - Víctor Martínez | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
{ | ||
"name": "Procurement Purchase Requisition Generation", | ||
"author": "Tecnativa, Odoo Community Association (OCA)", | ||
"website": "https://github.com/OCA/purchase-workflow", | ||
"version": "17.0.1.0.0", | ||
"depends": ["purchase_requisition_stock"], | ||
"license": "AGPL-3", | ||
"category": "Purchase Management", | ||
"installable": True, | ||
"maintainers": ["victoralmau"], | ||
"data": ["views/product_template_views.xml"], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * procurement_purchase_requisition_generation | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 17.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2025-02-17 16:19+0000\n" | ||
"PO-Revision-Date: 2025-02-17 17:22+0100\n" | ||
"Last-Translator: \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: \n" | ||
"X-Generator: Poedit 3.0.1\n" | ||
|
||
#. module: procurement_purchase_requisition_generation | ||
#: model:ir.model.fields.selection,name:procurement_purchase_requisition_generation.selection__product_template__purchase_requisition__rfq | ||
msgid "Create a draft purchase order" | ||
msgstr "Crear un pedido de compra borrador" | ||
|
||
#. module: procurement_purchase_requisition_generation | ||
#: model:ir.model.fields,help:procurement_purchase_requisition_generation.field_product_product__purchase_requisition | ||
#: model:ir.model.fields,help:procurement_purchase_requisition_generation.field_product_template__purchase_requisition | ||
msgid "" | ||
"Create a draft purchase order: Based on your product configuration,the " | ||
"system will create a draft purchase order.Propose a call for tender : If the " | ||
"'purchase_requisition' module is installed and this option is selected, the " | ||
"system will create a draft call for tender." | ||
msgstr "" | ||
"Crea un pedido de compra en borrador: Basado en la configuración de su " | ||
"producto, el sistema puede crear una nueva orden. Si el Acuerdo de Compra se " | ||
"encuentra instalado y está opción es seleccionada, el sistema puede crear un " | ||
"Acuerdo de Compra automáticamente." | ||
|
||
#. module: procurement_purchase_requisition_generation | ||
#: model:ir.model.fields,field_description:procurement_purchase_requisition_generation.field_product_product__purchase_requisition | ||
#: model:ir.model.fields,field_description:procurement_purchase_requisition_generation.field_product_template__purchase_requisition | ||
msgid "Procurement" | ||
msgstr "Abastecimiento" | ||
|
||
#. module: procurement_purchase_requisition_generation | ||
#: model:ir.model.fields,field_description:procurement_purchase_requisition_generation.field_purchase_requisition__procurement_group_id | ||
msgid "Procurement Group" | ||
msgstr "Grupo de abastecimiento" | ||
|
||
#. module: procurement_purchase_requisition_generation | ||
#: model:ir.model,name:procurement_purchase_requisition_generation.model_product_template | ||
msgid "Product" | ||
msgstr "Producto" | ||
|
||
#. module: procurement_purchase_requisition_generation | ||
#: model:ir.model,name:procurement_purchase_requisition_generation.model_product_replenish | ||
msgid "Product Replenish" | ||
msgstr "Reposición de producto" | ||
|
||
#. module: procurement_purchase_requisition_generation | ||
#: model:ir.model.fields.selection,name:procurement_purchase_requisition_generation.selection__product_template__purchase_requisition__tenders | ||
msgid "Propose a call for tenders" | ||
msgstr "Proponer una licitación" | ||
|
||
#. module: procurement_purchase_requisition_generation | ||
#: model:ir.model,name:procurement_purchase_requisition_generation.model_purchase_requisition | ||
msgid "Purchase Requisition" | ||
msgstr "Solicitud de compra" | ||
|
||
#. module: procurement_purchase_requisition_generation | ||
#: model_terms:ir.ui.view,arch_db:procurement_purchase_requisition_generation.view_product_supplier_inherit | ||
msgid "Reordering" | ||
msgstr "Abastecimiento" | ||
|
||
#. module: procurement_purchase_requisition_generation | ||
#: model:ir.model,name:procurement_purchase_requisition_generation.model_stock_rule | ||
msgid "Stock Rule" | ||
msgstr "Regla de inventario" |
72 changes: 72 additions & 0 deletions
72
...ment_purchase_requisition_generation/i18n/procurement_purchase_requisition_generation.pot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * procurement_purchase_requisition_generation | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 17.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2025-02-17 16:19+0000\n" | ||
"PO-Revision-Date: 2025-02-17 16:19+0000\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: procurement_purchase_requisition_generation | ||
#: model:ir.model.fields.selection,name:procurement_purchase_requisition_generation.selection__product_template__purchase_requisition__rfq | ||
msgid "Create a draft purchase order" | ||
msgstr "" | ||
|
||
#. module: procurement_purchase_requisition_generation | ||
#: model:ir.model.fields,help:procurement_purchase_requisition_generation.field_product_product__purchase_requisition | ||
#: model:ir.model.fields,help:procurement_purchase_requisition_generation.field_product_template__purchase_requisition | ||
msgid "" | ||
"Create a draft purchase order: Based on your product configuration,the " | ||
"system will create a draft purchase order.Propose a call for tender : If the" | ||
" 'purchase_requisition' module is installed and this option is selected, the" | ||
" system will create a draft call for tender." | ||
msgstr "" | ||
|
||
#. module: procurement_purchase_requisition_generation | ||
#: model:ir.model.fields,field_description:procurement_purchase_requisition_generation.field_product_product__purchase_requisition | ||
#: model:ir.model.fields,field_description:procurement_purchase_requisition_generation.field_product_template__purchase_requisition | ||
msgid "Procurement" | ||
msgstr "" | ||
|
||
#. module: procurement_purchase_requisition_generation | ||
#: model:ir.model.fields,field_description:procurement_purchase_requisition_generation.field_purchase_requisition__procurement_group_id | ||
msgid "Procurement Group" | ||
msgstr "" | ||
|
||
#. module: procurement_purchase_requisition_generation | ||
#: model:ir.model,name:procurement_purchase_requisition_generation.model_product_template | ||
msgid "Product" | ||
msgstr "" | ||
|
||
#. module: procurement_purchase_requisition_generation | ||
#: model:ir.model,name:procurement_purchase_requisition_generation.model_product_replenish | ||
msgid "Product Replenish" | ||
msgstr "" | ||
|
||
#. module: procurement_purchase_requisition_generation | ||
#: model:ir.model.fields.selection,name:procurement_purchase_requisition_generation.selection__product_template__purchase_requisition__tenders | ||
msgid "Propose a call for tenders" | ||
msgstr "" | ||
|
||
#. module: procurement_purchase_requisition_generation | ||
#: model:ir.model,name:procurement_purchase_requisition_generation.model_purchase_requisition | ||
msgid "Purchase Requisition" | ||
msgstr "" | ||
|
||
#. module: procurement_purchase_requisition_generation | ||
#: model_terms:ir.ui.view,arch_db:procurement_purchase_requisition_generation.view_product_supplier_inherit | ||
msgid "Reordering" | ||
msgstr "" | ||
|
||
#. module: procurement_purchase_requisition_generation | ||
#: model:ir.model,name:procurement_purchase_requisition_generation.model_stock_rule | ||
msgid "Stock Rule" | ||
msgstr "" |
5 changes: 5 additions & 0 deletions
5
procurement_purchase_requisition_generation/models/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
|
||
from . import product_template | ||
from . import purchase_requisition | ||
from . import stock_rule |
21 changes: 21 additions & 0 deletions
21
procurement_purchase_requisition_generation/models/product_template.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Copyright 2025 Tecnativa - Víctor Martínez | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
|
||
from odoo import fields, models | ||
|
||
|
||
class ProductTemplate(models.Model): | ||
_inherit = "product.template" | ||
|
||
purchase_requisition = fields.Selection( | ||
selection=[ | ||
("rfq", "Create a draft purchase order"), | ||
("tenders", "Propose a call for tenders"), | ||
], | ||
string="Procurement", | ||
default="rfq", | ||
help="Create a draft purchase order: Based on your product configuration," | ||
"the system will create a draft purchase order.Propose a call for tender : " | ||
"If the 'purchase_requisition' module is installed and this option is " | ||
"selected, the system will create a draft call for tender.", | ||
) |
12 changes: 12 additions & 0 deletions
12
procurement_purchase_requisition_generation/models/purchase_requisition.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Copyright 2025 Tecnativa - Víctor Martínez | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
|
||
from odoo import fields, models | ||
|
||
|
||
class PurchaseRequisition(models.Model): | ||
_inherit = "purchase.requisition" | ||
|
||
procurement_group_id = fields.Many2one( | ||
comodel_name="procurement.group", string="Procurement Group" | ||
) |
Oops, something went wrong.