Skip to content

Commit 64b99ef

Browse files
committed
pre-commit + setup tools
1 parent edf19e2 commit 64b99ef

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

stock_storage_type_putaway_abc/models/stock_location.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,7 @@ def get_storage_locations(self, products=None):
3939
return super().get_storage_locations(products)
4040

4141
def _get_abc_locations(self, products):
42-
return self.children_ids._sort_abc_locations(
43-
first(products).abc_storage
44-
)
42+
return self.children_ids._sort_abc_locations(first(products).abc_storage)
4543

4644
def _sort_abc_locations(self, product_abc):
4745
locations = self

stock_storage_type_putaway_abc/views/product.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
<?xml version="1.0" encoding="UTF-8"?>
1+
<?xml version="1.0" encoding="UTF-8" ?>
22
<odoo>
33
<record id="product_template_form_view_inherit" model="ir.ui.view">
44
<field name="name">product.template.common.form.inherit</field>
55
<field name="model">product.template</field>
6-
<field name="inherit_id" ref="product.product_template_form_view"/>
6+
<field name="inherit_id" ref="product.product_template_form_view" />
77
<field name="arch" type="xml">
88
<group name="packaging" position="after">
99
<group name="abc" string="ABC Storage preference">

stock_storage_type_putaway_abc/views/stock_location.xml

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
1-
<?xml version="1.0" encoding="UTF-8"?>
1+
<?xml version="1.0" encoding="UTF-8" ?>
22
<odoo>
33
<record id="view_location_form_inherit" model="ir.ui.view">
44
<field name="name">stock.location.form.inherit</field>
55
<field name="model">stock.location</field>
6-
<field name="inherit_id" ref="stock_storage_type.view_location_form_inherit"/>
6+
<field name="inherit_id" ref="stock_storage_type.view_location_form_inherit" />
77
<field name="arch" type="xml">
88
<field name="pack_putaway_strategy" position="after">
99
<field name="display_abc_storage" invisible="1" />
10-
<field name="abc_storage" attrs="{'invisible': [('display_abc_storage', '=', False)]}" />
10+
<field
11+
name="abc_storage"
12+
attrs="{'invisible': [('display_abc_storage', '=', False)]}"
13+
/>
1114
</field>
1215
</field>
1316
</record>

0 commit comments

Comments
 (0)