Apply pre-commit (black, xml lint)

This commit is contained in:
Guewen Baconnier
2020-08-27 10:03:27 +02:00
parent 94ddeb32b7
commit 17749cbc24
3 changed files with 12 additions and 10 deletions

View File

@@ -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>

View File

@@ -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)

View File

@@ -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")