[IMP] rma_sale_operating_unit: black, isort, prettier

This commit is contained in:
JasminSForgeFlow
2023-07-19 12:34:52 +05:30
committed by Aaron ForgeFlow
parent 1c76e23087
commit bcacdc357f
8 changed files with 18 additions and 15 deletions

View File

@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
from . import wizards

View File

@@ -1,17 +1,14 @@
# -*- coding: utf-8 -*-
# © 2017 Eficent Business and IT Consulting Services 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)",
"author": "Eficent," "Odoo Community Association (OCA)",
"license": "LGPL-3",
"website": "http://www.eficent.com",
"website": "https://github.com/ForgeFlow/stock-rma",
"category": "Analytic",
"depends": ["rma_sale_analytic", "rma_operating_unit"],
"data": [
],
'installable': True,
"data": [],
"installable": True,
}

View File

@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# © 2018 Eficent Business and IT Consulting Services S.L.
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html)

View File

@@ -1,8 +1,7 @@
# -*- coding: utf-8 -*-
# © 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 models, api
from odoo import api, models
class RmaLineMakeSaleOrder(models.TransientModel):
@@ -10,10 +9,10 @@ class RmaLineMakeSaleOrder(models.TransientModel):
@api.model
def _prepare_sale_order(self, line):
sale_line = super(
RmaLineMakeSaleOrder, self)._prepare_sale_order(line)
sale_line = super(RmaLineMakeSaleOrder, self)._prepare_sale_order(line)
sale_line.update(operating_unit_id=line.operating_unit_id.id)
team = self.env['crm.team'].search(
[('operating_unit_id', '=', line.operating_unit_id.id)], limit=1)
team = self.env["crm.team"].search(
[("operating_unit_id", "=", line.operating_unit_id.id)], limit=1
)
sale_line.update(team_id=team.id)
return sale_line

View File

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

View File

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

View File

@@ -0,0 +1 @@
../../../../rma_sale_operating_unit

View File

@@ -0,0 +1,6 @@
import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)