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

[16.0][MIG] purchase_blanket_order #2149

Merged
merged 52 commits into from
Feb 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
b96f404
[11.0][ADD] Add the module purchase_blanket_order
AdriaGForgeFlow Nov 30, 2018
6be2ae7
Add schedule date to blanket order lines
AdriaGForgeFlow Jan 28, 2019
4570ca3
[ADD] Blanket Order Lines View and ability to create PO from BO lines
AdriaGForgeFlow Feb 8, 2019
8cc8619
add cancel button
AdriaGForgeFlow Feb 8, 2019
53fca3b
update README
AdriaGForgeFlow Feb 26, 2019
35bea4c
add taxes and total price to blanket order and extend tests
AdriaGForgeFlow Feb 28, 2019
9fe158e
add taxes and unit price from blanket order
JordiBForgeFlow Mar 1, 2019
bb413a9
[UPD] Update purchase_blanket_order.pot
oca-travis Jul 16, 2019
14df05f
[UPD] README.rst
OCA-git-bot Jul 16, 2019
b4c0dc3
[ADD] icon.png
OCA-git-bot Jul 16, 2019
21582d0
[UPD] README.rst
OCA-git-bot Jul 29, 2019
b606c22
[IMP] purchase_blanket_order: black, isort
HviorForgeFlow Mar 27, 2020
3be9ccf
[MIG] purchase_blanket_order: Migration to 13.0
HviorForgeFlow Mar 27, 2020
c92a5dd
[UPD] Update purchase_blanket_order.pot
oca-travis Oct 1, 2020
ca23656
[UPD] README.rst
OCA-git-bot Oct 1, 2020
231e47f
[UPD] Update purchase_blanket_order.pot
oca-travis Oct 5, 2020
63aa998
[IMP] purchase_blanket_order: black, isort, prettier
ChrisOForgeFlow Apr 28, 2022
8e5c7a4
[14.0][MIG] purchase_blanket_order
ChrisOForgeFlow Apr 28, 2022
60b919c
[FIX] purchase_blanket_order: Use purchasing UoM.
LoisRForgeFlow May 24, 2022
92c6ddd
[UPD] Update purchase_blanket_order.pot
oca-travis May 25, 2022
ffcb51f
[UPD] README.rst
OCA-git-bot May 25, 2022
c422940
[MIG] purchase_blanket_order: Migration to 15.0
LoisRForgeFlow May 26, 2022
16fda92
[UPD] Update purchase_blanket_order.pot
May 26, 2022
1a6bdf7
[UPD] README.rst
OCA-git-bot May 26, 2022
1bedcc4
[IMP] purchase_blanket_order: Add partner_ref field + order blanket o…
victoralmau Jun 28, 2022
6208fad
[UPD] Update purchase_blanket_order.pot
Jul 1, 2022
c424ea0
purchase_blanket_order 15.0.1.1.0
OCA-git-bot Jul 1, 2022
68226f9
[FIX] purchase_blanket_order: Set name by sequence only if is necessary.
victoralmau Jun 30, 2022
8db9d66
[UPD] Update purchase_blanket_order.pot
Jul 1, 2022
d2593f6
purchase_blanket_order 15.0.1.1.1
OCA-git-bot Jul 1, 2022
24975e9
[FIX] purchase_blanket_order: multi company rules not migrated
LoisRForgeFlow Jul 8, 2022
d0f2b9d
[IMP] purchase_blanket_order: change model descriptions to differenti…
LoisRForgeFlow Jul 8, 2022
ca202b3
[UPD] Update purchase_blanket_order.pot
Jul 8, 2022
68ca052
purchase_blanket_order 15.0.1.1.2
OCA-git-bot Jul 8, 2022
1cbab28
[FIX] purchase_blanket_order: Don't compare with translatable string
pedrobaeza Jul 12, 2022
8c41208
[UPD] Update purchase_blanket_order.pot
Jul 13, 2022
6c8f487
[UPD] Update purchase_blanket_order.pot
Jul 17, 2022
02635ad
[FIX] purchase_blanket_order: Allow to modify lines in open state
victoralmau Sep 26, 2022
0d6f1af
[FIX] purchase_blanket_order: Display total table in pdf report
victoralmau Sep 26, 2022
0faa655
purchase_blanket_order 15.0.1.2.0
OCA-git-bot Sep 28, 2022
64f7b9b
[FIX] purchase_blanket_order: Set force_save="1" to Order Lines to pr…
victoralmau Sep 29, 2022
2897b62
purchase_blanket_order 15.0.1.3.0
OCA-git-bot Sep 29, 2022
a358152
[15.0][FIX] purchase_blanket_order: fix blanket order automatically s…
Nov 9, 2022
5cb1997
[UPD] Update purchase_blanket_order.pot
Nov 10, 2022
0ecbbb6
purchase_blanket_order 15.0.1.3.1
OCA-git-bot Nov 10, 2022
f1fb71b
[UPD] README.rst
OCA-git-bot Sep 3, 2023
83acc2d
[IMP] purchase_blanket_order: avoid overwrite context in views inherited
ThiagoMForgeFlow Oct 11, 2023
9260291
[BOT] post-merge updates
OCA-git-bot Oct 23, 2023
fedb10c
[UPD] Update purchase_blanket_order.pot
Oct 27, 2023
8479afa
[BOT] post-merge updates
OCA-git-bot Oct 28, 2023
a03e870
[IMP] purchase_blanket_order: pre-commit stuff
ThiagoMForgeFlow Jan 17, 2024
c3e5612
[MIG] purchase_blanket_order: Migration to 16.0
ThiagoMForgeFlow Jan 18, 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
138 changes: 138 additions & 0 deletions purchase_blanket_order/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
=======================
Purchase Blanket Orders
=======================

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

.. |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/16.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-16-0/purchase-workflow-16-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=16.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:

.. image:: https://raw.githubusercontent.com/purchase_blanket_order/static/description/BO_menu.png
:alt: 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

.. image:: https://raw.githubusercontent.com/purchase_blanket_order/static/description/BO_form.png
:alt: 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.

.. image:: https://raw.githubusercontent.com/purchase_blanket_order/static/description/BO_actions.png
:alt: 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.

.. image:: https://raw.githubusercontent.com/purchase_blanket_order/static/description/PO_from_BO.png
:alt: 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.

.. image:: https://raw.githubusercontent.com/purchase_blanket_order/static/description/BO_lines.png
:alt: 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

.. image:: https://raw.githubusercontent.com/purchase_blanket_order/static/description/PO_BOLine.png
:alt: New field added in Purchase Order 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_blanket_order%0Aversion:%2016.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/16.0/purchase_blanket_order>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
4 changes: 4 additions & 0 deletions purchase_blanket_order/__init__.py
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
29 changes: 29 additions & 0 deletions purchase_blanket_order/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# 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": "16.0.2.0.1",
"website": "https://github.com/OCA/purchase-workflow",
"summary": "Purchase Blanket Orders",
"depends": [
"purchase",
"web_action_conditionable",
"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,
}
23 changes: 23 additions & 0 deletions purchase_blanket_order/data/ir_cron.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?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>
</odoo>
11 changes: 11 additions & 0 deletions purchase_blanket_order/data/sequence.xml
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>
Loading
Loading