Skip to content

Commit 1666067

Browse files
committed
Merge PR #37 into 18.0
Signed-off-by simahawk
2 parents a4a238c + 5c12ece commit 1666067

File tree

11 files changed

+649
-0
lines changed

11 files changed

+649
-0
lines changed
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
===========================
2+
Stock Orderpoint No Horizon
3+
===========================
4+
5+
..
6+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7+
!! This file is generated by oca-gen-addon-readme !!
8+
!! changes will be overwritten. !!
9+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10+
!! source digest: sha256:8ae4813ad29fd37af26108c774f90ec46f7f66ad44980058fa3117cf224cf838
11+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12+
13+
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
14+
:target: https://odoo-community.org/page/development-status
15+
:alt: Beta
16+
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
17+
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
18+
:alt: License: AGPL-3
19+
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fstock--logistics--orderpoint-lightgray.png?logo=github
20+
:target: https://github.com/OCA/stock-logistics-orderpoint/tree/18.0/stock_orderpoint_no_horizon
21+
:alt: OCA/stock-logistics-orderpoint
22+
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23+
:target: https://translation.odoo-community.org/projects/stock-logistics-orderpoint-18-0/stock-logistics-orderpoint-18-0-stock_orderpoint_no_horizon
24+
:alt: Translate me on Weblate
25+
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/stock-logistics-orderpoint&target_branch=18.0
27+
:alt: Try me on Runboat
28+
29+
|badge1| |badge2| |badge3| |badge4| |badge5|
30+
31+
In standard, only the moves planned before the orderpoint rule lead days
32+
are taken into consideration for the display of the forecasted quantity
33+
and quantity to order, as well as the quantity ordered when the
34+
orderpoint runs. This means that if a reception is postponed to the
35+
future, it is not anymore considered by the orderpoint and the quantity
36+
will again be required to order.
37+
38+
This module removes this date limit (horizon) and consider always all
39+
moves.
40+
41+
**Table of contents**
42+
43+
.. contents::
44+
:local:
45+
46+
Bug Tracker
47+
===========
48+
49+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/stock-logistics-orderpoint/issues>`_.
50+
In case of trouble, please check there if your issue has already been reported.
51+
If you spotted it first, help us to smash it by providing a detailed and welcomed
52+
`feedback <https://github.com/OCA/stock-logistics-orderpoint/issues/new?body=module:%20stock_orderpoint_no_horizon%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
53+
54+
Do not contact contributors directly about support or help with technical issues.
55+
56+
Credits
57+
=======
58+
59+
Authors
60+
-------
61+
62+
* Camptocamp
63+
* BCIM
64+
65+
Contributors
66+
------------
67+
68+
- Jacques-Etienne Baudoux (BCIM) <[email protected]>
69+
70+
Maintainers
71+
-----------
72+
73+
This module is maintained by the OCA.
74+
75+
.. image:: https://odoo-community.org/logo.png
76+
:alt: Odoo Community Association
77+
:target: https://odoo-community.org
78+
79+
OCA, or the Odoo Community Association, is a nonprofit organization whose
80+
mission is to support the collaborative development of Odoo features and
81+
promote its widespread use.
82+
83+
This module is part of the `OCA/stock-logistics-orderpoint <https://github.com/OCA/stock-logistics-orderpoint/tree/18.0/stock_orderpoint_no_horizon>`_ project on GitHub.
84+
85+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import models
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Copyright 2023 Camptocamp SA
2+
# @author: Jacques-Etienne Baudoux (BCIM) <[email protected]>
3+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
4+
5+
{
6+
"name": "Stock Orderpoint No Horizon",
7+
"summary": "Consider all future moves, do not limit horizon to the rule lead days.",
8+
"version": "18.0.1.0.0",
9+
"author": "Camptocamp, BCIM, Odoo Community Association (OCA)",
10+
"website": "https://github.com/OCA/stock-logistics-orderpoint",
11+
"category": "Warehouse Management",
12+
"depends": ["stock"],
13+
"license": "AGPL-3",
14+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import stock_warehouse_orderpoint
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Copyright 2023 Jacques-Etienne Baudoux (BCIM) <[email protected]>
2+
# Copyright 2025 Camptocamp SA
3+
4+
from odoo import models
5+
6+
7+
class StockWarehouseOrderpoint(models.Model):
8+
_inherit = "stock.warehouse.orderpoint"
9+
10+
def _get_product_context(self, visibility_days=0):
11+
ctx = super()._get_product_context(visibility_days=visibility_days)
12+
if "to_date" in ctx:
13+
del ctx["to_date"]
14+
return ctx
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["whool"]
3+
build-backend = "whool.buildapi"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Jacques-Etienne Baudoux (BCIM) \<<[email protected]>\>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
In standard, only the moves planned before the orderpoint rule lead days
2+
are taken into consideration for the display of the forecasted quantity
3+
and quantity to order, as well as the quantity ordered when the
4+
orderpoint runs. This means that if a reception is postponed to the
5+
future, it is not anymore considered by the orderpoint and the quantity
6+
will again be required to order.
7+
8+
This module removes this date limit (horizon) and consider always all
9+
moves.

0 commit comments

Comments
 (0)