Show cost allocation before and after posting
issue11558 review413301003
This commit is contained in:
1 parent
eed756c15c
commit
865dbb44d7
8 files changed
+188
-16
No files matched your search
@@ -166,7 +166,13 @@ Add landed cost::
|
||||
>>> landed_cost.save()
|
||||
>>> landed_cost.state
|
||||
'draft'
|
||||
>>> landed_cost.click('post')
|
||||
|
||||
>>> post_landed_cost = Wizard('account.landed_cost.post', [landed_cost])
|
||||
>>> post_landed_cost.form.cost
|
||||
Decimal('10.0000')
|
||||
>>> sorted([m.cost for m in post_landed_cost.form.moves])
|
||||
[Decimal('1.0000')]
|
||||
>>> post_landed_cost.execute('post')
|
||||
>>> landed_cost.state
|
||||
'posted'
|
||||
>>> bool(landed_cost.posted_date)
|
||||
@@ -174,6 +180,14 @@ Add landed cost::
|
||||
>>> bool(landed_cost.factors)
|
||||
True
|
||||
|
||||
Show landed cost::
|
||||
|
||||
>>> show_landed_cost = Wizard('account.landed_cost.show', [landed_cost])
|
||||
>>> show_landed_cost.form.cost
|
||||
Decimal('10.0000')
|
||||
>>> sorted([m.cost for m in show_landed_cost.form.moves])
|
||||
[Decimal('1.0000')]
|
||||
|
||||
Check move unit price is 101::
|
||||
|
||||
>>> shipment.reload()
|
||||
|
||||
Reference in new issue
Block a user