Fix: Add buttons with error

This commit is contained in:
2025-02-09 14:38:39 -05:00
parent 394364de81
commit 317bf70813
4 changed files with 74 additions and 9 deletions

View File

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