Skip to content

Commit

Permalink
Merge PR #365 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Sep 11, 2023
2 parents e417af2 + fe0338b commit fa03e21
Show file tree
Hide file tree
Showing 28 changed files with 2,767 additions and 0 deletions.
122 changes: 122 additions & 0 deletions rma_sale_mrp/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
================================================================
Return Merchandise Authorization Management - Link with MRP Kits
================================================================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:0732df3fa1f233227b79559d986200b0134d889138d9cddc481ee01c6ef1e7d8
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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%2Frma-lightgray.png?logo=github
:target: https://github.com/OCA/rma/tree/15.0/rma_sale_mrp
:alt: OCA/rma
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/rma-15-0/rma-15-0-rma_sale_mrp
: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/rma&target_branch=15.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module enables RMAs for kits, wich isn't compatible with the base modules.
In the backend side, we can return separate component while in the frontend
side, customers can return the whole kit and the proper RMAs will be generated.

**Table of contents**

.. contents::
:local:

Usage
=====

To use this module, you need to:

#. Make a a sale order with a kit on it and deliver its components.
#. Go to the portal view for the order and launch the RMA wizard.
#. You'll see a line for the kit.
#. There will be a limit of kits to return that should much the number of kits
delivered.
#. Once you validate the wizard with the number of kits to deliver, you'll
have as many RMAs as components those kits have with the proper quantities
for each one.
#. If you refund the components, the kit in the sale line will be used as the
reference.

Known issues / Roadmap
======================

We compute the kits from the original demanded quantity in the sale order. If
this quantity was to change, we could loose the right components per kit
reference. So this should be very present. Also, v12 has a very poor support
for delivered quantities, that is very improved in v13 with the introduction
of the link to the BoM line in the stock moves. That approach could lead to
errors as well, as the BoM line could change in the future loosing again the
original components per kit reference. Anyway, is to be considered in that
version to use the same rules so they fail for the same reasons.

Some extra features would be nice to have:

* Add actions constraints to disallow actions on single components.
* Show kit components in the portal wizard.
* Allow to make an RMA directly from a kit product.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/rma/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/rma/issues/new?body=module:%20rma_sale_mrp%0Aversion:%2015.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
~~~~~~~

* Tecnativa

Contributors
~~~~~~~~~~~~

* `Tecnativa <https://www.tecnativa.com>`__:

* David Vidal

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.

.. |maintainer-chienandalu| image:: https://github.com/chienandalu.png?size=40px
:target: https://github.com/chienandalu
:alt: chienandalu

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-chienandalu|

This module is part of the `OCA/rma <https://github.com/OCA/rma/tree/15.0/rma_sale_mrp>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 2 additions & 0 deletions rma_sale_mrp/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import models
from . import wizard
22 changes: 22 additions & 0 deletions rma_sale_mrp/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright 2020 Tecnativa - David Vidal
# Copyright 2023 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Return Merchandise Authorization Management - Link with MRP Kits",
"summary": "Allow doing RMAs from MRP kits",
"version": "16.0.1.0.0",
"development_status": "Beta",
"category": "RMA",
"website": "https://github.com/OCA/rma",
"author": "Tecnativa, Odoo Community Association (OCA)",
"maintainers": ["chienandalu"],
"license": "AGPL-3",
"depends": ["rma_sale", "mrp"],
"data": [
"security/ir.model.access.csv",
"views/sale_order_portal_template.xml",
"views/rma_views.xml",
"views/report_rma.xml",
"wizard/sale_order_rma_wizard_views.xml",
],
}
Loading

0 comments on commit fa03e21

Please sign in to comment.