mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
Apply pre-commit (black, xml lint)
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<odoo>
|
||||
<record id="product_uom_mm" model="uom.uom">
|
||||
<field name="category_id" ref="uom.uom_categ_length"/>
|
||||
<field name="category_id" ref="uom.uom_categ_length" />
|
||||
<field name="name">mm</field>
|
||||
<field name="factor" eval="1000"/>
|
||||
<field name="factor" eval="1000" />
|
||||
<field name="uom_type">smaller</field>
|
||||
</record>
|
||||
</odoo>
|
||||
|
||||
@@ -108,8 +108,12 @@ class TestCubiscanWizard(SavepointCase):
|
||||
self.assertEqual(
|
||||
self.product_1.read(
|
||||
[
|
||||
"product_length", "product_width", "product_height",
|
||||
"weight", "volume", "dimensional_uom_id"
|
||||
"product_length",
|
||||
"product_width",
|
||||
"product_height",
|
||||
"weight",
|
||||
"volume",
|
||||
"dimensional_uom_id",
|
||||
]
|
||||
)[0],
|
||||
{
|
||||
@@ -119,8 +123,8 @@ class TestCubiscanWizard(SavepointCase):
|
||||
"product_height": 1000,
|
||||
"weight": 1.0,
|
||||
"volume": 1.0,
|
||||
"dimensional_uom_id": (mm_uom.id, mm_uom.name)
|
||||
}
|
||||
"dimensional_uom_id": (mm_uom.id, mm_uom.name),
|
||||
},
|
||||
)
|
||||
packagings = self.product_1.packaging_ids.sorted()
|
||||
self.assertEqual(len(packagings), 5)
|
||||
|
||||
@@ -225,9 +225,7 @@ class CubiscanWizardLine(models.TransientModel):
|
||||
packaging_id = fields.Many2one(
|
||||
"product.packaging", string="Packaging (rel)", readonly=True
|
||||
)
|
||||
packaging_type_id = fields.Many2one(
|
||||
"product.packaging.type", readonly=True,
|
||||
)
|
||||
packaging_type_id = fields.Many2one("product.packaging.type", readonly=True,)
|
||||
required = fields.Boolean(related="packaging_type_id.required", readonly=True)
|
||||
|
||||
@api.depends("lngth", "width", "height")
|
||||
|
||||
Reference in New Issue
Block a user