Skip to content

Commit 27e2ff7

Browse files
committed
feat: stock_resupply_order
1 parent b23261c commit 27e2ff7

19 files changed

+1875
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../../stock_resupply_order
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import setuptools
2+
3+
setuptools.setup(
4+
setup_requires=['setuptools-odoo'],
5+
odoo_addon=True,
6+
)

stock_resupply_order/README.rst

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
====================
2+
Stock resupply order
3+
====================
4+
5+
..
6+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7+
!! This file is generated by oca-gen-addon-readme !!
8+
!! changes will be overwritten. !!
9+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10+
!! source digest: sha256:54063437212cf93a49834105eb403d625eb1a3e3cb8acd475f4337d53dd8d232
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--warehouse-lightgray.png?logo=github
20+
:target: https://github.com/OCA/stock-logistics-warehouse/tree/14.0/stock_resupply_order
21+
:alt: OCA/stock-logistics-warehouse
22+
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23+
:target: https://translation.odoo-community.org/projects/stock-logistics-warehouse-14-0/stock-logistics-warehouse-14-0-stock_resupply_order
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-warehouse&target_branch=14.0
27+
:alt: Try me on Runboat
28+
29+
|badge1| |badge2| |badge3| |badge4| |badge5|
30+
31+
32+
This module adds a model used to create procurements that take into account
33+
stock available in a targeted location.
34+
35+
The user create "resupply orders" with lines of products and their final desired quantity
36+
for a desired location. Those orders can be then executed to create procurements.
37+
38+
**Table of contents**
39+
40+
.. contents::
41+
:local:
42+
43+
Bug Tracker
44+
===========
45+
46+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/stock-logistics-warehouse/issues>`_.
47+
In case of trouble, please check there if your issue has already been reported.
48+
If you spotted it first, help us to smash it by providing a detailed and welcomed
49+
`feedback <https://github.com/OCA/stock-logistics-warehouse/issues/new?body=module:%20stock_resupply_order%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
50+
51+
Do not contact contributors directly about support or help with technical issues.
52+
53+
Credits
54+
=======
55+
56+
Authors
57+
~~~~~~~
58+
59+
* Foodles
60+
61+
Contributors
62+
~~~~~~~~~~~~
63+
64+
65+
* Tabis Lucas <[email protected]>
66+
67+
Maintainers
68+
~~~~~~~~~~~
69+
70+
This module is maintained by the OCA.
71+
72+
.. image:: https://odoo-community.org/logo.png
73+
:alt: Odoo Community Association
74+
:target: https://odoo-community.org
75+
76+
OCA, or the Odoo Community Association, is a nonprofit organization whose
77+
mission is to support the collaborative development of Odoo features and
78+
promote its widespread use.
79+
80+
This module is part of the `OCA/stock-logistics-warehouse <https://github.com/OCA/stock-logistics-warehouse/tree/14.0/stock_resupply_order>`_ project on GitHub.
81+
82+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

stock_resupply_order/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import models
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Copyright 2024-2025 Foodles (https://www.foodles.co/).
2+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
3+
{
4+
"name": "Stock resupply order",
5+
"summary": """
6+
A module that takes the existing stock in the destination
7+
location into account when creating procurements.
8+
""",
9+
"category": "",
10+
"version": "14.0.1.0.0",
11+
"author": "Foodles, Odoo Community Association (OCA)",
12+
"website": "https://github.com/OCA/stock-logistics-warehouse",
13+
"license": "AGPL-3",
14+
"depends": [
15+
# Odoo
16+
"base",
17+
"product",
18+
"stock",
19+
],
20+
"data": [
21+
"security/ir.model.access.csv",
22+
"views/stock_resupply_order.xml",
23+
],
24+
"demo": [
25+
"demo/stock_route_stock_resupply_order.xml",
26+
],
27+
"application": True,
28+
}
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<!--
3+
Copyright 2024 Foodles (https://www.foodles.co/).
4+
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
5+
-->
6+
<odoo>
7+
<data>
8+
<record model="stock.location" id="location_stock_demo">
9+
<field name="name">Stock</field>
10+
<field name="usage">internal</field>
11+
</record>
12+
13+
<record model="stock.location" id="location_dest_demo">
14+
<field name="name">Destination location</field>
15+
<field name="usage">internal</field>
16+
</record>
17+
18+
<record model="stock.picking.type" id="picking_type_demo">
19+
<field name="name">Stock to Destination</field>
20+
<field name="sequence_code">DEST-STOCK</field>
21+
<field name="code">outgoing</field>
22+
<field name="show_operations">True</field>
23+
<field name="use_create_lots">False</field>
24+
<field name="use_existing_lots">True</field>
25+
<field name="warehouse_id" ref="stock.warehouse0" />
26+
<field
27+
name="default_location_src_id"
28+
ref="stock_resupply_order.location_stock_demo"
29+
/>
30+
<field
31+
name="default_location_dest_id"
32+
ref="stock_resupply_order.location_dest_demo"
33+
/>
34+
</record>
35+
36+
<record model="stock.location.route" id="route_demo">
37+
<field name="name">stock resupply order</field>
38+
<field name="product_categ_selectable">True</field>
39+
</record>
40+
41+
<record model="stock.rule" id="rule_demo">
42+
<field name="name">Pull</field>
43+
<field name="action">pull</field>
44+
<field name="picking_type_id" ref="picking_type_demo" />
45+
<field
46+
name="location_src_id"
47+
ref="stock_resupply_order.location_stock_demo"
48+
/>
49+
<field name="location_id" ref="stock_resupply_order.location_dest_demo" />
50+
<field name="procure_method">make_to_stock</field>
51+
<field name="warehouse_id" ref="stock.warehouse0" />
52+
<field name="route_id" ref="route_demo" />
53+
</record>
54+
</data>
55+
</odoo>

0 commit comments

Comments
 (0)