Skip to content

Commit

Permalink
[MIG] rma_sale_analytic: Migration to 15.0
Browse files Browse the repository at this point in the history
  • Loading branch information
JasminSForgeFlow authored and AaronHForgeFlow committed Aug 8, 2023
1 parent baad380 commit d18ab6f
Show file tree
Hide file tree
Showing 19 changed files with 27 additions and 109 deletions.
4 changes: 2 additions & 2 deletions rma_sale_analytic/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,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.
10 changes: 5 additions & 5 deletions rma_sale_analytic/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# © 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 sale",
"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"],
"depends": ["rma_account", "rma_analytic", "rma_sale", "sale_project"],
"data": [],
"installable": True,
}
2 changes: 1 addition & 1 deletion rma_sale_analytic/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).

from . import sale_order_line
from . import rma_order_line
15 changes: 15 additions & 0 deletions rma_sale_analytic/models/rma_order_line.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright 2023 ForgeFlow S.L.
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).

from odoo import api, models


class RMAOrderLine(models.Model):
_inherit = "rma.order.line"

@api.onchange("sale_line_id")
def _onchange_sale_line_id(self):
res = super()._onchange_sale_line_id()
if self.sale_line_id:
self.analytic_account_id = self.sale_line_id.order_id.analytic_account_id
return res
19 changes: 0 additions & 19 deletions rma_sale_analytic/models/sale_order_line.py

This file was deleted.

2 changes: 1 addition & 1 deletion rma_sale_analytic/wizards/__init__.py
Original file line number Diff line number Diff line change
@@ -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 . import rma_add_sale
Expand Down
2 changes: 1 addition & 1 deletion rma_sale_analytic/wizards/rma_add_sale.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions rma_sale_analytic/wizards/rma_order_line_make_sale_order.py
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -10,5 +10,5 @@ class RmaLineMakeSaleOrder(models.TransientModel):
@api.model
def _prepare_sale_order(self, line):
res = super(RmaLineMakeSaleOrder, self)._prepare_sale_order(line)
res.update(project_id=line.analytic_account_id.id)
res.update(analytic_account_id=line.analytic_account_id.id)
return res
28 changes: 0 additions & 28 deletions rma_sale_operating_unit/README.rst

This file was deleted.

3 changes: 0 additions & 3 deletions rma_sale_operating_unit/__init__.py

This file was deleted.

14 changes: 0 additions & 14 deletions rma_sale_operating_unit/__manifest__.py

This file was deleted.

4 changes: 0 additions & 4 deletions rma_sale_operating_unit/wizards/__init__.py

This file was deleted.

18 changes: 0 additions & 18 deletions rma_sale_operating_unit/wizards/rma_order_line_make_sale_order.py

This file was deleted.

1 change: 0 additions & 1 deletion setup/rma_sale_analytic/odoo/__init__.py

This file was deleted.

1 change: 0 additions & 1 deletion setup/rma_sale_analytic/odoo/addons/__init__.py

This file was deleted.

1 change: 0 additions & 1 deletion setup/rma_sale_operating_unit/odoo/__init__.py

This file was deleted.

1 change: 0 additions & 1 deletion setup/rma_sale_operating_unit/odoo/addons/__init__.py

This file was deleted.

This file was deleted.

6 changes: 0 additions & 6 deletions setup/rma_sale_operating_unit/setup.py

This file was deleted.

0 comments on commit d18ab6f

Please sign in to comment.