[MIG] rma_purchase_analytic: Migration to 15.0

This commit is contained in:
JasminSForgeFlow
2023-09-28 08:45:36 +05:30
committed by Aaron ForgeFlow
parent 510bc20b41
commit 3420ff9d26
7 changed files with 9 additions and 13 deletions

View File

@@ -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.

View File

@@ -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,
}

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -1 +0,0 @@
__import__('pkg_resources').declare_namespace(__name__)

View File

@@ -1 +0,0 @@
__import__('pkg_resources').declare_namespace(__name__)