Fix: Add buttons with error
This commit is contained in:
@@ -34,7 +34,6 @@ Create order::
|
||||
>>> order = SaleOrder()
|
||||
>>> order.party = party
|
||||
>>> order.pickup_location = "on_site"
|
||||
>>> order.save()
|
||||
>>> line1 = order.lines.new()
|
||||
>>> line1.product = product
|
||||
>>> line1.unit = unit
|
||||
@@ -43,6 +42,10 @@ Create order::
|
||||
>>> line1.total_amount = Decimal('33600')
|
||||
>>> order.total_order = Decimal('33600')
|
||||
>>> order.save()
|
||||
|
||||
|
||||
|
||||
>>> order.state
|
||||
'draft'
|
||||
>>> order.click('confirm')
|
||||
>>> order.state
|
||||
'confirmed'
|
||||
>>> order.number
|
||||
'SO00001'
|
||||
Reference in New Issue
Block a user