-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MIG] rma_sale_analytic: Migration to 15.0
- Loading branch information
1 parent
baad380
commit d18ab6f
Showing
19 changed files
with
27 additions
and
109 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
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 |
---|---|---|
@@ -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, | ||
} |
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 |
---|---|---|
@@ -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 |
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,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 |
This file was deleted.
Oops, something went wrong.
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
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
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
rma_sale_operating_unit/wizards/rma_order_line_make_sale_order.py
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
setup/rma_sale_operating_unit/odoo/addons/rma_sale_operating_unit
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.