global name 'payment_term' is not defined
ERROR:tryton.common.common:Traceback (most recent call last):
File "/trytond/protocols/jsonrpc.py", line 123, in _marshaled_dispatch
response['result'] = dispatch_method(method, params)
File "/trytond/protocols/jsonrpc.py", line 156, in _dispatch
res = dispatch(*args)
File "/trytond/protocols/dispatcher.py", line 156, in dispatch
result = rpc.result(meth(*args, **kwargs))
File "/trytond/model/modelview.py", line 507, in wrapper
return func(cls, *args, **kwargs)
File "/trytond/model/workflow.py", line 33, in wrapper
result = func(cls, filtered, *args, **kwargs)
File "/trytond/modules/account_invoice/invoice.py", line 1283, in post
moves.append(invoice.create_move())
File "/trytond/modules/account_invoice/invoice.py", line 863, in create_move
self.invoice_date)
File "/trytond/modules/account_invoice/payment_term.py", line 74, in compute
self.raise_user_error('missing_remainder', (payment_term.rec_name))
NameError: global name 'payment_term' is not defined
global name 'payment_term' is not defined