mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
[IMP] mrp_multi_level: black, isort, prettier
This commit is contained in:
@@ -13,26 +13,26 @@
|
||||
order or a transfer picking.
|
||||
</p>
|
||||
<group name="items" string="Items" />
|
||||
<field name="item_ids" nolabel="1">
|
||||
<tree nocreate="1" editable="top">
|
||||
<field name="mrp_inventory_id" column_invisible="True" />
|
||||
<field
|
||||
<field name="item_ids" nolabel="1">
|
||||
<tree nocreate="1" editable="top">
|
||||
<field name="mrp_inventory_id" column_invisible="True" />
|
||||
<field
|
||||
name="warehouse_id"
|
||||
groups="stock.group_stock_multi_locations"
|
||||
readonly="1"
|
||||
/>
|
||||
<field
|
||||
<field
|
||||
name="location_id"
|
||||
groups="stock.group_stock_multi_locations"
|
||||
readonly="1"
|
||||
/>
|
||||
<field name="product_id" readonly="1" />
|
||||
<field name="qty" />
|
||||
<field name="uom_id" groups="uom.group_uom" />
|
||||
<field name="date_planned" />
|
||||
<field name="supply_method" />
|
||||
</tree>
|
||||
</field>
|
||||
<field name="product_id" readonly="1" />
|
||||
<field name="qty" />
|
||||
<field name="uom_id" groups="uom.group_uom" />
|
||||
<field name="date_planned" />
|
||||
<field name="supply_method" />
|
||||
</tree>
|
||||
</field>
|
||||
<footer>
|
||||
<button
|
||||
string="Execute"
|
||||
|
||||
@@ -750,11 +750,7 @@ class MultiLevelMrp(models.TransientModel):
|
||||
self._init_mrp_move_grouped_demand(product_mrp_area)
|
||||
counter += 1
|
||||
|
||||
log_msg = (
|
||||
"MRP Calculation LLC {} at {} Finished - Nbr. products: {}".format(
|
||||
llc, mrp_area.name, counter
|
||||
)
|
||||
)
|
||||
log_msg = f"MRP Calculation LLC {llc} at {mrp_area.name} Finished - Nbr. products: {counter}"
|
||||
logger.info(log_msg)
|
||||
|
||||
logger.info("End MRP calculation")
|
||||
|
||||
@@ -32,5 +32,4 @@
|
||||
<field name="target">new</field>
|
||||
<field name="binding_model_id" ref="model_mrp_multi_level" />
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
|
||||
Reference in New Issue
Block a user