mirror of
https://github.com/ForgeFlow/stock-rma.git
synced 2025-01-21 12:57:49 +02:00
Merge pull request #120 from Eficent/12.0-mig-rma_purchase_operating_unit
[12.0][MIG] rma_purchase_operating_unit
This commit is contained in:
28
rma_purchase_operating_unit/README.rst
Normal file
28
rma_purchase_operating_unit/README.rst
Normal file
@@ -0,0 +1,28 @@
|
||||
.. image:: https://img.shields.io/badge/license-LGPL--3-blue.png
|
||||
:target: https://www.gnu.org/licenses/lgpl
|
||||
:alt: License: LGPL-3
|
||||
|
||||
=================================
|
||||
RMA Purchase with Operating Units
|
||||
=================================
|
||||
|
||||
This module introduces the following features:
|
||||
|
||||
* Adds the operating unit to the quotation.
|
||||
|
||||
Usage
|
||||
=====
|
||||
|
||||
* No changes.
|
||||
|
||||
|
||||
Contributors
|
||||
------------
|
||||
|
||||
* Aaron Henriquez <ahenriquez@eficent.com>
|
||||
|
||||
|
||||
Maintainer
|
||||
----------
|
||||
|
||||
This module is maintained by Eficent.
|
||||
3
rma_purchase_operating_unit/__init__.py
Normal file
3
rma_purchase_operating_unit/__init__.py
Normal file
@@ -0,0 +1,3 @@
|
||||
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
|
||||
|
||||
from . import wizards
|
||||
16
rma_purchase_operating_unit/__manifest__.py
Normal file
16
rma_purchase_operating_unit/__manifest__.py
Normal file
@@ -0,0 +1,16 @@
|
||||
# © 2017 Eficent Business and IT Consulting Services S.L.
|
||||
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
|
||||
|
||||
{
|
||||
"name": "RMA Purchase with Operating Units",
|
||||
"version": "12.0.1.0.0",
|
||||
"author": "Eficent,"
|
||||
"Odoo Community Association (OCA)",
|
||||
"license": "LGPL-3",
|
||||
"website": "http://www.eficent.com",
|
||||
"category": "RMA",
|
||||
"depends": ["rma_operating_unit", "rma_purchase"],
|
||||
"data": [
|
||||
],
|
||||
'installable': True,
|
||||
}
|
||||
3
rma_purchase_operating_unit/wizards/__init__.py
Normal file
3
rma_purchase_operating_unit/wizards/__init__.py
Normal file
@@ -0,0 +1,3 @@
|
||||
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html)
|
||||
|
||||
from . import rma_line_make_purchase_order
|
||||
@@ -0,0 +1,15 @@
|
||||
# © 2018 Eficent Business and IT Consulting Services S.L.
|
||||
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html)
|
||||
|
||||
from odoo import api, models
|
||||
|
||||
|
||||
class RmaLineMakePurchaseOrder(models.TransientModel):
|
||||
_inherit = "rma.order.line.make.purchase.order"
|
||||
|
||||
@api.model
|
||||
def _prepare_purchase_order(self, item):
|
||||
res = super(RmaLineMakePurchaseOrder, self)._prepare_purchase_order(
|
||||
item)
|
||||
res.update(operating_unit_id=item.line_id.operating_unit_id.id)
|
||||
return res
|
||||
Reference in New Issue
Block a user