mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
New phrase to pay fully an invoice
This commit is contained in:
@@ -3,6 +3,16 @@
|
||||
from support import *
|
||||
import datetime
|
||||
|
||||
|
||||
@step('I pay the full amount on the invoice "{inv_name}"')
|
||||
def impl(ctx, inv_name):
|
||||
Invoice = model('account.invoice')
|
||||
invoice = Invoice.get([('name', '=', inv_name)])
|
||||
assert invoice
|
||||
ctx.execute_steps("""
|
||||
When I pay %f on the invoice "%s"
|
||||
""" % (invoice.residual, inv_name))
|
||||
|
||||
@step('I pay {amount:f} on the invoice "{inv_name}"')
|
||||
def impl(ctx, amount, inv_name):
|
||||
Partner = model('res.partner')
|
||||
|
||||
Reference in New Issue
Block a user