mirror of
https://github.com/ForgeFlow/stock-rma.git
synced 2025-01-21 12:57:49 +02:00
[IMP] rma_sale_operating_unit: black, isort, prettier
This commit is contained in:
committed by
Aaron ForgeFlow
parent
1c76e23087
commit
bcacdc357f
@@ -1,4 +1,3 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
|
||||
|
||||
from . import wizards
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
1
setup/rma_sale_operating_unit/odoo/__init__.py
Normal file
1
setup/rma_sale_operating_unit/odoo/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
__import__('pkg_resources').declare_namespace(__name__)
|
||||
1
setup/rma_sale_operating_unit/odoo/addons/__init__.py
Normal file
1
setup/rma_sale_operating_unit/odoo/addons/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
__import__('pkg_resources').declare_namespace(__name__)
|
||||
@@ -0,0 +1 @@
|
||||
../../../../rma_sale_operating_unit
|
||||
6
setup/rma_sale_operating_unit/setup.py
Normal file
6
setup/rma_sale_operating_unit/setup.py
Normal file
@@ -0,0 +1,6 @@
|
||||
import setuptools
|
||||
|
||||
setuptools.setup(
|
||||
setup_requires=['setuptools-odoo'],
|
||||
odoo_addon=True,
|
||||
)
|
||||
Reference in New Issue
Block a user