mirror of
https://github.com/ForgeFlow/stock-rma.git
synced 2025-01-21 12:57:49 +02:00
[MIG] rma_purchase_analytic: Migration to 15.0
This commit is contained in:
committed by
Aaron ForgeFlow
parent
510bc20b41
commit
3420ff9d26
@@ -23,10 +23,10 @@ Usage
|
||||
Contributors
|
||||
------------
|
||||
|
||||
* Aaron Henriquez <ahenriquez@eficent.com>
|
||||
* Aaron Henriquez <aaron.henriquez@forgeflow.com>
|
||||
|
||||
|
||||
Maintainer
|
||||
----------
|
||||
|
||||
This module is maintained by Eficent.
|
||||
This module is maintained by ForgeFlow.
|
||||
|
||||
@@ -1,14 +1,13 @@
|
||||
# © 2017 Eficent Business and IT Consulting Services S.L.
|
||||
# Copyright 2023 ForgeFlow S.L.
|
||||
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
|
||||
|
||||
{
|
||||
"name": "Analytic Account in RMA purchase",
|
||||
"version": "10.0.1.0.0",
|
||||
"author": "Eficent," "Odoo Community Association (OCA)",
|
||||
"license": "LGPL-3",
|
||||
"version": "15.0.1.0.0",
|
||||
"author": "ForgeFlow," "Odoo Community Association (OCA)",
|
||||
"license": "AGPL-3",
|
||||
"website": "https://github.com/ForgeFlow/stock-rma",
|
||||
"category": "Analytic",
|
||||
"depends": ["rma_account", "rma_analytic", "purchase_analytic"],
|
||||
"data": [],
|
||||
"installable": True,
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# © 2018 Eficent Business and IT Consulting Services S.L.
|
||||
# Copyright 2023 ForgeFlow S.L.
|
||||
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
|
||||
|
||||
from odoo import _, api, exceptions, models
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
# © 2018 Eficent Business and IT Consulting Services S.L.
|
||||
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html)
|
||||
|
||||
from . import rma_add_purchase
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# © 2018 Eficent Business and IT Consulting Services S.L.
|
||||
# Copyright 2023 ForgeFlow S.L.
|
||||
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html)
|
||||
|
||||
from odoo import api, models
|
||||
@@ -10,7 +10,7 @@ class RmaAddPurchase(models.TransientModel):
|
||||
@api.model
|
||||
def _prepare_rma_line_from_po_line(self, line):
|
||||
data = super(RmaAddPurchase, self)._prepare_rma_line_from_po_line(line)
|
||||
data.update(analytic_account_id=line.analytic_account_id.id)
|
||||
data.update(analytic_account_id=line.account_analytic_id.id)
|
||||
return data
|
||||
|
||||
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
__import__('pkg_resources').declare_namespace(__name__)
|
||||
@@ -1 +0,0 @@
|
||||
__import__('pkg_resources').declare_namespace(__name__)
|
||||
Reference in New Issue
Block a user