Skip to content

Commit

Permalink
Merge pull request #539 from ursais/16_mig_osi_vendor_product_return
Browse files Browse the repository at this point in the history
[16.0][MIG] osi_vendor_product_return
  • Loading branch information
max3903 authored Jul 13, 2023
2 parents 1549809 + 07daace commit 13d5499
Show file tree
Hide file tree
Showing 20 changed files with 1,223 additions and 0 deletions.
34 changes: 34 additions & 0 deletions osi_vendor_product_return/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3

=====================
Vendor Product Return
=====================

This module will manage Product return to Vendor process after Quality Control
and creates Vendor Refund invoice.

Configuration
=============

* Checked Vendor RMA Management security right to user.

Usage
=====

* Create a product return from Purchase > Product Return.
* Provide source location and checked if you want to create bill refund and
confirm it.
* It will create refund vendor bills and out picking to vendor.


Credits
=======

* Open Source Integrators <[email protected]>

Contributors
------------

* Bhavesh Odedra <[email protected]>
4 changes: 4 additions & 0 deletions osi_vendor_product_return/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Copyright (C) 2017 Open Source Integrators
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from . import models
26 changes: 26 additions & 0 deletions osi_vendor_product_return/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Copyright (C) 2017 Open Source Integrators
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Vendor Product Return",
"version": "16.0.1.0.0",
"license": "AGPL-3",
"author": "Open Source Integrators",
"maintainer": "Open Source Integrators",
"website": "https://github.com/ursais/osi-addons",
"category": "Purchases",
"depends": ["purchase", "stock", "account"],
"data": [
"security/security_view.xml",
"security/ir.model.access.csv",
"data/vendor_product_return_seq_view.xml",
"views/stock_view.xml",
"views/account_invoice_view.xml",
"views/return_reason_view.xml",
"views/vendor_product_return_view.xml",
"report/product_return_report.xml",
"report/report_productreturn.xml",
],
"application": True,
"installable": True,
}
13 changes: 13 additions & 0 deletions osi_vendor_product_return/data/vendor_product_return_seq_view.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">

<!-- Sequences for vendor.product.return -->
<record id="seq_vendor_product_return" model="ir.sequence">
<field name="name">Vendor Product Return</field>
<field name="code">vendor.product.return</field>
<field name="prefix">PR</field>
<field name="padding">4</field>
<field name="company_id" eval="False" />
</record>

</odoo>
7 changes: 7 additions & 0 deletions osi_vendor_product_return/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Copyright (C) 2017 Open Source Integrators
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from . import account
from . import stock
from . import return_reason
from . import vendor_product_return
16 changes: 16 additions & 0 deletions osi_vendor_product_return/models/account.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Copyright (C) 2017 Open Source Integrators
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from odoo import fields, models


class AccountMove(models.Model):

_inherit = "account.move"

is_return_supplier = fields.Boolean(string="Return to Supplier")
vendor_return_id = fields.Many2one(
"vendor.product.return",
string="Vendor Return Reference",
readonly=True,
)
11 changes: 11 additions & 0 deletions osi_vendor_product_return/models/return_reason.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Copyright (C) 2017 Open Source Integrators
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from odoo import fields, models


class ReturnReason(models.Model):
_name = "return.reason"
_description = "Return Reason code"

name = fields.Char(required=True, copy=False, index=True)
16 changes: 16 additions & 0 deletions osi_vendor_product_return/models/stock.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Copyright (C) 2017 Open Source Integrators
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from odoo import fields, models


class StockPicking(models.Model):

_inherit = "stock.picking"

is_return_supplier = fields.Boolean(string="Return to Supplier")
vendor_return_id = fields.Many2one(
"vendor.product.return",
string="Vendor Return Reference",
readonly=True,
)
Loading

0 comments on commit 13d5499

Please sign in to comment.