Skip to content

Commit 99e5cb2

Browse files
committedSep 28, 2023
[ADD] stock_location_orderpoint:
Declare orderpoint on a location allowing to replenish any product with the same criteria
1 parent d783dd4 commit 99e5cb2

20 files changed

+1551
-0
lines changed
 

‎stock_location_orderpoint/README.rst

+84
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
=========================
2+
stock_location_orderpoint
3+
=========================
4+
5+
.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
6+
!! This file is generated by oca-gen-addon-readme !!
7+
!! changes will be overwritten. !!
8+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
9+
10+
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
11+
:target: https://odoo-community.org/page/development-status
12+
:alt: Beta
13+
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
14+
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
15+
:alt: License: AGPL-3
16+
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fstock--logistics--warehouse-lightgray.png?logo=github
17+
:target: https://github.com/OCA/stock-logistics-warehouse/tree/14.0/stock_location_orderpoint
18+
:alt: OCA/stock-logistics-warehouse
19+
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
20+
:target: https://translation.odoo-community.org/projects/stock-logistics-warehouse-14-0/stock-logistics-warehouse-14-0-stock_location_orderpoint
21+
:alt: Translate me on Weblate
22+
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
23+
:target: https://runboat.odoo-community.org/webui/builds.html?repo=OCA/stock-logistics-warehouse&target_branch=14.0
24+
:alt: Try me on Runboat
25+
26+
|badge1| |badge2| |badge3| |badge4| |badge5|
27+
28+
Declare orderpoint on a location allowing to replenish any product with the same criteria.
29+
This is for an internal warehouse replenishment currently not compatible with the purchase buy route.
30+
31+
**Table of contents**
32+
33+
.. contents::
34+
:local:
35+
36+
Bug Tracker
37+
===========
38+
39+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/stock-logistics-warehouse/issues>`_.
40+
In case of trouble, please check there if your issue has already been reported.
41+
If you spotted it first, help us smashing it by providing a detailed and welcomed
42+
`feedback <https://github.com/OCA/stock-logistics-warehouse/issues/new?body=module:%20stock_location_orderpoint%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
43+
44+
Do not contact contributors directly about support or help with technical issues.
45+
46+
Credits
47+
=======
48+
49+
Authors
50+
~~~~~~~
51+
52+
* MT Software
53+
* BCIM
54+
55+
Contributors
56+
~~~~~~~~~~~~
57+
58+
* Michael Tietz (MT Software) <mtietz@mt-software.de>
59+
* Jacques-Etienne Baudoux (BCIM) <je@bcim.be>
60+
61+
Maintainers
62+
~~~~~~~~~~~
63+
64+
This module is maintained by the OCA.
65+
66+
.. image:: https://odoo-community.org/logo.png
67+
:alt: Odoo Community Association
68+
:target: https://odoo-community.org
69+
70+
OCA, or the Odoo Community Association, is a nonprofit organization whose
71+
mission is to support the collaborative development of Odoo features and
72+
promote its widespread use.
73+
74+
.. |maintainer-mt-software-de| image:: https://github.com/mt-software-de.png?size=40px
75+
:target: https://github.com/mt-software-de
76+
:alt: mt-software-de
77+
78+
Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
79+
80+
|maintainer-mt-software-de|
81+
82+
This module is part of the `OCA/stock-logistics-warehouse <https://github.com/OCA/stock-logistics-warehouse/tree/14.0/stock_location_orderpoint>`_ project on GitHub.
83+
84+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

‎stock_location_orderpoint/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import models
+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Copyright 2023 Michael Tietz (MT Software) <mtietz@mt-software.de>
2+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
3+
4+
{
5+
"name": "stock_location_orderpoint",
6+
"author": "MT Software, BCIM, Odoo Community Association (OCA)",
7+
"summary": "Declare orderpoint on a location "
8+
"allowing to replenish any product with the same criteria.",
9+
"version": "14.0.1.0.0",
10+
"data": [
11+
"security/ir.model.access.csv",
12+
"data/ir_cron.xml",
13+
"data/ir_sequence.xml",
14+
"data/queue_job_channel.xml",
15+
"data/queue_job_function.xml",
16+
"views/stock_location_orderpoint_views.xml",
17+
"views/menu.xml",
18+
],
19+
"depends": [
20+
"stock_helper",
21+
"queue_job",
22+
],
23+
"license": "AGPL-3",
24+
"maintainers": ["mt-software-de"],
25+
"website": "https://github.com/OCA/stock-logistics-warehouse",
26+
}
+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<odoo>
3+
<data noupdate="1">
4+
<record forcecreate="True" id="ir_cron_location_replenishment" model="ir.cron">
5+
<field name="name">Procurement: run location replenishment</field>
6+
<field name="model_id" ref="model_stock_location_orderpoint" />
7+
<field name="state">code</field>
8+
<field name="code">
9+
model.run_cron_replenishment()
10+
</field>
11+
<field eval="False" name="active" />
12+
<field name="user_id" ref="base.user_root" />
13+
<field name="interval_number">10</field>
14+
<field name="interval_type">minutes</field>
15+
<field name="numbercall">-1</field>
16+
<field eval="False" name="doall" />
17+
</record>
18+
</data>
19+
</odoo>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<odoo>
3+
<record id="sequence_location_orderpoint" model="ir.sequence">
4+
<field name="name">Stock locaation orderpoint</field>
5+
<field name="code">stock.location.orderpoint</field>
6+
<field name="prefix">LOP/</field>
7+
<field name="padding">5</field>
8+
<field name="number_next">1</field>
9+
<field name="number_increment">1</field>
10+
</record>
11+
</odoo>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<odoo noupdate="1">
3+
<record
4+
id="channel_stock_location_orderpoint_auto_replenishment"
5+
model="queue.job.channel"
6+
>
7+
<field name="name">stock_location_orderpoint_auto_replenishment</field>
8+
<field name="parent_id" ref="queue_job.channel_root" />
9+
</record>
10+
</odoo>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<odoo noupdate="1">
3+
<record
4+
id="job_function_stock_location_orderpoint_moves_auto_replenish"
5+
model="queue.job.function"
6+
>
7+
<field name="model_id" ref="model_stock_location_orderpoint" />
8+
<field name="method">moves_auto_replenish</field>
9+
<field
10+
name="channel_id"
11+
ref="channel_stock_location_orderpoint_auto_replenishment"
12+
/>
13+
<field name="retry_pattern" eval="{1: 1, 5: 5, 10: 10, 15: 30}" />
14+
</record>
15+
</odoo>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from . import stock_location_orderpoint
2+
from . import stock_rule
3+
from . import stock_move

0 commit comments

Comments
 (0)