-
-
Notifications
You must be signed in to change notification settings - Fork 787
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by HviorForgeFlow
- Loading branch information
Showing
42 changed files
with
6,029 additions
and
4 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
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
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
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
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
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,150 @@ | ||
======================= | ||
Purchase Blanket Orders | ||
======================= | ||
|
||
.. | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! This file is generated by oca-gen-addon-readme !! | ||
!! changes will be overwritten. !! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! source digest: sha256:f258e9da8b80e585dcf4c52f80ed9cb7a7a5baa56d90fa049616aa58fc256b4f | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
.. |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_blanket_order | ||
: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_blanket_order | ||
: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| | ||
|
||
A purchase blanket order is a pre-agreement to purchase a certain number | ||
of quantities of products at a specific price. From a confirmed blanket | ||
order, the users can create new purchase orders at such price, until the | ||
blanket order expires due to reaching the validity date. | ||
|
||
**Table of contents** | ||
|
||
.. contents:: | ||
:local: | ||
|
||
Usage | ||
===== | ||
|
||
A new menu in the Purchase area is created, allowing users to create new | ||
blanket orders. | ||
|
||
To create a new Purchase Blanket Order go to the purchase menu in the | ||
Purchase section: | ||
|
||
|Blanket Orders menu| | ||
|
||
Hitting the button create will open the form view in which we can | ||
introduce the following information: | ||
|
||
- Vendor | ||
|
||
- Payment Terms | ||
|
||
- Ordering and Validity dates | ||
|
||
- Order lines: | ||
|
||
- Product | ||
- Accorded price | ||
- Original, Ordered, Invoiced, Received and Remaining quantities | ||
|
||
- Terms and Conditions of the Blanket Order | ||
|
||
|Blanket Orders form| | ||
|
||
From the form, once the Blanket Order has been confirmed and its state | ||
is open, the user can create a Purchase Order, check the Purchase Orders | ||
associated to the Blanket Order and/or see the Blanket Order lines | ||
associated to the BO. | ||
|
||
|Actions that can be done from Blanket Order| | ||
|
||
Hitting the button Create Purchase Order will open a wizard that will | ||
ask for the amount of each product in the BO lines for which the | ||
Purchase Order will be created. | ||
|
||
|Create Purchase Order from Blanket Order| | ||
|
||
Installing this module will add an additional menu which will show all | ||
the blanket order lines currently defined in the system. From this list | ||
the user can create customized Purchase Orders selecting the lines for | ||
which the PO (or POs if the vendors are different) is (are) created. | ||
|
||
|Blanket Order lines and actions| | ||
|
||
In the Purchase Order form one field is added in the PO lines, the | ||
Blanket Order line field. This field keeps track to which Blanket Order | ||
line the PO line is associated. Upon adding a new product in a newly | ||
created Purchase Order a blanket order line will be suggested depending | ||
on the following factors: | ||
|
||
- Closer Validity date | ||
- Remaining quantity > Quantity introduced in the Purchase Order line | ||
|
||
|New field added in Purchase Order Line| | ||
|
||
.. |Blanket Orders menu| image:: https://raw.githubusercontent.com/purchase_blanket_order/static/description/BO_menu.png | ||
.. |Blanket Orders form| image:: https://raw.githubusercontent.com/purchase_blanket_order/static/description/BO_form.png | ||
.. |Actions that can be done from Blanket Order| image:: https://raw.githubusercontent.com/purchase_blanket_order/static/description/BO_actions.png | ||
.. |Create Purchase Order from Blanket Order| image:: https://raw.githubusercontent.com/purchase_blanket_order/static/description/PO_from_BO.png | ||
.. |Blanket Order lines and actions| image:: https://raw.githubusercontent.com/purchase_blanket_order/static/description/BO_lines.png | ||
.. |New field added in Purchase Order Line| image:: https://raw.githubusercontent.com/purchase_blanket_order/static/description/PO_BOLine.png | ||
|
||
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_blanket_order%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 | ||
------- | ||
|
||
* ForgeFlow | ||
|
||
Contributors | ||
------------ | ||
|
||
- Adrià Gil Sorribes <[email protected]> | ||
- Jordi Ballester Alomar <[email protected]> | ||
- Héctor Villarreal <[email protected]> | ||
- Lois Rilo <[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_blanket_order>`_ 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,4 @@ | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
|
||
from . import models | ||
from . import wizard |
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,28 @@ | ||
# Copyright 2019-22 ForgeFlow S.L. (https://www.forgeflow.com) | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
{ | ||
"name": "Purchase Blanket Orders", | ||
"category": "Purchase", | ||
"license": "AGPL-3", | ||
"author": "ForgeFlow, Odoo Community Association (OCA)", | ||
"version": "17.0.1.0.0", | ||
"website": "https://github.com/OCA/purchase-workflow", | ||
"summary": "Purchase Blanket Orders", | ||
"depends": [ | ||
"purchase", | ||
"base_view_inheritance_extension", | ||
], | ||
"data": [ | ||
"security/ir.model.access.csv", | ||
"security/security.xml", | ||
"data/sequence.xml", | ||
"data/ir_cron.xml", | ||
"wizard/create_purchase_orders.xml", | ||
"views/purchase_config_settings.xml", | ||
"views/purchase_blanket_order_views.xml", | ||
"views/purchase_order_views.xml", | ||
"report/templates.xml", | ||
"report/report.xml", | ||
], | ||
"installable": True, | ||
} |
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,38 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<!-- Copyright (C) 2018 ForgeFlow S.L. (https://www.forgeflow.com) | ||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). --> | ||
<odoo noupdate="1"> | ||
<record | ||
forcecreate="True" | ||
id="expired_purchase_blanket_orders_cron" | ||
model="ir.cron" | ||
> | ||
<field name="name">Expire Blanket Orders</field> | ||
<field name="interval_number">1</field> | ||
<field name="interval_type">days</field> | ||
<field | ||
name="nextcall" | ||
eval="(DateTime.now() + relativedelta(hour=00, minute=1, second=0)).strftime('%Y-%m-%d %H:%M:%S')" | ||
/> | ||
<field name="numbercall">-1</field> | ||
<field name="doall" eval="False" /> | ||
<field name="model_id" ref="model_purchase_blanket_order" /> | ||
<field name="state">code</field> | ||
<field name="code">model.expire_orders()</field> | ||
</record> | ||
|
||
<record id="warnings_purchase_blanket_orders_cron" model="ir.cron"> | ||
<field name="name">Warnings Blanket Orders</field> | ||
<field name="interval_number">1</field> | ||
<field name="interval_type">days</field> | ||
<field | ||
name="nextcall" | ||
eval="(DateTime.now() + relativedelta(hour=00, minute=1, second=0)).strftime('%Y-%m-%d %H:%M:%S')" | ||
/> | ||
<field name="numbercall">-1</field> | ||
<field name="doall" eval="False" /> | ||
<field name="model_id" ref="model_purchase_blanket_order" /> | ||
<field name="state">code</field> | ||
<field name="code">model.compute_warnings()</field> | ||
</record> | ||
</odoo> |
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,11 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<odoo noupdate="1"> | ||
<!-- Sequences for purchase.blanket.order --> | ||
<record id="seq_purchase_blanket_order" model="ir.sequence"> | ||
<field name="name">Purchase Blanket Order</field> | ||
<field name="code">purchase.blanket.order</field> | ||
<field name="prefix">PBO</field> | ||
<field name="padding">3</field> | ||
<field name="company_id" eval="False" /> | ||
</record> | ||
</odoo> |
Oops, something went wrong.