Skip to content

Commit 2016865

Browse files
committed
Merge PR #56 into 18.0
Signed-off-by pedrobaeza
2 parents 0ee753c + 50f3c27 commit 2016865

32 files changed

+6899
-1
lines changed

stock_request_mrp/tests/test_stock_request_mrp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def _create_stock_request(self, user, products):
7070
self.request_order.with_user(user).with_context(
7171
default_company_id=self.main_company.id,
7272
default_warehouse_id=self.warehouse.id,
73-
default_location_id=self.warehouse.lot_stock_id,
73+
default_location_id=self.warehouse.lot_stock_id.id,
7474
)
7575
)
7676
order_form.expected_date = fields.Datetime.now()

stock_return_request/README.rst

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
====================
2+
Stock Return Request
3+
====================
4+
5+
..
6+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7+
!! This file is generated by oca-gen-addon-readme !!
8+
!! changes will be overwritten. !!
9+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10+
!! source digest: sha256:48d58292b2beae63656ca030682cc3364ff98710d3b4372f41b2b0ecc7c16d87
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--request-lightgray.png?logo=github
20+
:target: https://github.com/OCA/stock-logistics-request/tree/18.0/stock_return_request
21+
:alt: OCA/stock-logistics-request
22+
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23+
:target: https://translation.odoo-community.org/projects/stock-logistics-request-18-0/stock-logistics-request-18-0-stock_return_request
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-request&target_branch=18.0
27+
:alt: Try me on Runboat
28+
29+
|badge1| |badge2| |badge3| |badge4| |badge5|
30+
31+
This module allows to return stock from a location to either suppliers,
32+
customers or internal locations reverting the corresponding pickings.
33+
34+
**Table of contents**
35+
36+
.. contents::
37+
:local:
38+
39+
Installation
40+
============
41+
42+
The installation of this module entails the computation of the new
43+
stock.move field qty_returnable to store it in the DB, wich can be a
44+
heavy task depending on the amount of moves.
45+
46+
Usage
47+
=====
48+
49+
To use this module, you need to:
50+
51+
1. Go to *Inventory > Operations > Return Request* and place a new
52+
return.
53+
54+
To make a return to a customer:
55+
56+
To make a return to a supplier:
57+
58+
To make a return to an internal location:
59+
60+
Known issues / Roadmap
61+
======================
62+
63+
- Products are returned in the default product UoM. Further
64+
implementation should be done to allow to use UoM convertions.
65+
66+
Bug Tracker
67+
===========
68+
69+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/stock-logistics-request/issues>`_.
70+
In case of trouble, please check there if your issue has already been reported.
71+
If you spotted it first, help us to smash it by providing a detailed and welcomed
72+
`feedback <https://github.com/OCA/stock-logistics-request/issues/new?body=module:%20stock_return_request%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
73+
74+
Do not contact contributors directly about support or help with technical issues.
75+
76+
Credits
77+
=======
78+
79+
Authors
80+
-------
81+
82+
* Tecnativa
83+
84+
Contributors
85+
------------
86+
87+
- `Tecnativa <https://www.tecnativa.com>`__:
88+
89+
- Sergio Teruel
90+
- Pedro M. Baeza
91+
- David Vidal
92+
- César A. Sánchez
93+
- Carlos Lopez
94+
95+
- `Pro Thai <http://prothaitechnology.com>`__:
96+
97+
- Prapassorn Sornkaew <[email protected]>
98+
99+
Maintainers
100+
-----------
101+
102+
This module is maintained by the OCA.
103+
104+
.. image:: https://odoo-community.org/logo.png
105+
:alt: Odoo Community Association
106+
:target: https://odoo-community.org
107+
108+
OCA, or the Odoo Community Association, is a nonprofit organization whose
109+
mission is to support the collaborative development of Odoo features and
110+
promote its widespread use.
111+
112+
This module is part of the `OCA/stock-logistics-request <https://github.com/OCA/stock-logistics-request/tree/18.0/stock_return_request>`_ project on GitHub.
113+
114+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

stock_return_request/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
from . import models
2+
from . import wizard
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Copyright 2019 Tecnativa - David Vidal
2+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
3+
{
4+
"name": "Stock Return Request",
5+
"version": "18.0.1.0.0",
6+
"category": "Stock",
7+
"website": "https://github.com/OCA/stock-logistics-request",
8+
"author": "Tecnativa, " "Odoo Community Association (OCA)",
9+
"license": "AGPL-3",
10+
"application": False,
11+
"installable": True,
12+
"depends": [
13+
"stock",
14+
],
15+
"data": [
16+
"security/ir.model.access.csv",
17+
"data/stock_return_request_data.xml",
18+
"views/stock_return_request_views.xml",
19+
"report/stock_return_report.xml",
20+
"wizard/suggest_return_request.xml",
21+
],
22+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<odoo noupdate="1">
3+
<record id="sequence_return_request" model="ir.sequence">
4+
<field name="name">Stock Return Request</field>
5+
<field name="code">stock.return.request</field>
6+
<field name="prefix">RR/</field>
7+
<field name="padding">5</field>
8+
<field name="number_next">1</field>
9+
<field name="number_increment">1</field>
10+
<field name="company_id" eval="False" />
11+
</record>
12+
</odoo>

0 commit comments

Comments
 (0)