mirror of
https://github.com/OCA/rma.git
synced 2025-02-16 17:11:47 +02:00
[IMP] rma_sale_mrp: black, isort, prettier
This commit is contained in:
@@ -38,14 +38,11 @@ class SaleOrder(models.Model):
|
|||||||
component_index = data_list.index(first_component_dict)
|
component_index = data_list.index(first_component_dict)
|
||||||
# Prevent miscalculation if there partial deliveries
|
# Prevent miscalculation if there partial deliveries
|
||||||
quantity = sum(
|
quantity = sum(
|
||||||
[
|
x.get("quantity", 0)
|
||||||
x.get("quantity", 0)
|
for x in data_list
|
||||||
for x in data_list
|
if x.get("sale_line_id")
|
||||||
if x.get("sale_line_id")
|
and x.get("product") == first_component_dict.get("product")
|
||||||
and x.get("product") == first_component_dict.get("product")
|
and x.get("sale_line_id") == first_component_dict.get("sale_line_id")
|
||||||
and x.get("sale_line_id")
|
|
||||||
== first_component_dict.get("sale_line_id")
|
|
||||||
]
|
|
||||||
)
|
)
|
||||||
data_list.insert(
|
data_list.insert(
|
||||||
component_index,
|
component_index,
|
||||||
|
|||||||
1
setup/rma_sale_mrp/odoo/addons/rma_sale_mrp
Symbolic link
1
setup/rma_sale_mrp/odoo/addons/rma_sale_mrp
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
../../../../rma_sale_mrp
|
||||||
6
setup/rma_sale_mrp/setup.py
Normal file
6
setup/rma_sale_mrp/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