-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #539 from ursais/16_mig_osi_vendor_product_return
[16.0][MIG] osi_vendor_product_return
- Loading branch information
Showing
20 changed files
with
1,223 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
13
osi_vendor_product_return/data/vendor_product_return_seq_view.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
) |
Oops, something went wrong.