[FIX] agreement_legal_sale - add test lines for display type

This commit is contained in:
Jérémy Didderen
2022-06-16 14:04:26 +02:00
parent 04c6c65a93
commit d16b521ea7

View File

@@ -53,7 +53,13 @@ class TestSaleOrder(TransactionCase):
"agreement_template_id": self.test_agreement_template.id,
"date_order": fields.Date.today(),
"order_line": [
(0, 0, {"product_id": self.test_product.id, "product_uom_qty": 1.0})
(0, 0, {"display_type": "line_section", "name": "Test section"}),
(0, 0, {"display_type": "line_note", "name": "Test note"}),
(
0,
0,
{"product_id": self.test_product.id, "product_uom_qty": 1.0},
),
],
}
)
@@ -73,6 +79,8 @@ class TestSaleOrder(TransactionCase):
"agreement_template_id": self.test_agreement_template.id,
"date_order": fields.Date.today(),
"order_line": [
(0, 0, {"display_type": "line_section", "name": "Test section"}),
(0, 0, {"display_type": "line_note", "name": "Test note"}),
(
0,
0,
@@ -80,7 +88,7 @@ class TestSaleOrder(TransactionCase):
"product_id": self.test_product_is_serviceprofile.id,
"product_uom_qty": 1.0,
},
)
),
],
}
)