changeset 69fe5af6b8b9 in modules/purchase_secondary_unit:default
details:
https://hg.tryton.org/modules/purchase_secondary_unit?cmd=changeset;node=69fe5af6b8b9
description:
Add line without product on test scenario
issue9774
review324391002
diffstat:
tests/scenario_purchase_secondary_unit.rst | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (22 lines):
diff -r 8e69bd759d49 -r 69fe5af6b8b9 tests/scenario_purchase_secondary_unit.rst
--- a/tests/scenario_purchase_secondary_unit.rst Mon Nov 02 09:45:20
2020 +0100
+++ b/tests/scenario_purchase_secondary_unit.rst Mon Nov 02 09:48:03
2020 +0100
@@ -82,6 +82,9 @@
>>> purchase = Purchase()
>>> purchase.party = supplier
>>> line = purchase.lines.new()
+ >>> line.type = 'comment'
+ >>> line.description = 'Comment'
+ >>> line = purchase.lines.new()
>>> line.product = product
>>> line.quantity = 10
@@ -119,7 +122,7 @@
Check secondary unit on invoice::
>>> invoice, = purchase.invoices
- >>> line, = invoice.lines
+ >>> _, line = invoice.lines
>>> line.secondary_unit == kg
True
>>> line.secondary_quantity