when i push the register payment in vendors bill or customer invoices , pop-up screen appears but if i do not change the amount , and directly push validate . it gives me below error . but if i change the amount it accepts
please help what can cause it ? i am on odoo 12 CE
qte
Error:
Server Error
Traceback (most recent call last):
File "/opt/odoo/odoo-server/odoo/http.py", line 654, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/opt/odoo/odoo-server/odoo/http.py", line 312, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "/opt/odoo/odoo-server/odoo/tools/pycompat.py", line 87, in reraise
raise value
File "/opt/odoo/odoo-server/odoo/http.py", line 696, in dispatch
result = self._call_function(**self.params)
File "/opt/odoo/odoo-server/odoo/http.py", line 344, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/opt/odoo/odoo-server/odoo/service/model.py", line 97, in wrapper
return f(dbname, *args, **kwargs)
File "/opt/odoo/odoo-server/odoo/http.py", line 337, in checked_call
result = self.endpoint(*a, **kw)
File "/opt/odoo/odoo-server/odoo/http.py", line 939, in __call__
return self.method(*args, **kw)
File "/opt/odoo/odoo-server/odoo/http.py", line 517, in response_wrap
response = f(*args, **kw)
File "/opt/odoo/odoo-server/addons/web/controllers/main.py", line 966, in call_button
action = self._call_kw(model, method, args, {})
File "/opt/odoo/odoo-server/addons/web/controllers/main.py", line 954, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/opt/odoo/odoo-server/odoo/api.py", line 749, in call_kw
return _call_kw_multi(method, model, args, kwargs)
File "/opt/odoo/odoo-server/odoo/api.py", line 736, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "/opt/odoo/odoo-server/addons/account/models/account_payment.py", line 651, in action_validate_invoice_payment
return self.post()
File "/opt/odoo/odoo-server/addons/payment/models/account_payment.py", line 96, in post
res = super(AccountPayment, self - payments_need_trans).post()
File "/opt/odoo/odoo-server/addons/account_check_printing/models/account_payment.py", line 67, in post
res = super(AccountPayment, self).post()
File "/opt/odoo/odoo-server/addons/account/models/account_payment.py", line 626, in post
move = rec._create_payment_entry(amount)
File "/opt/odoo/odoo-server/addons/account/models/account_payment.py", line 699, in _create_payment_entry
self.invoice_ids.register_payment(counterpart_aml)
File "/opt/odoo/odoo-server/addons/account/models/account_invoice.py", line 1017, in register_payment
return (line_to_reconcile + payment_line).reconcile(writeoff_acc_id, writeoff_journal_id)
File "/opt/odoo/odoo-server/addons/hr_expense/models/account_move_line.py", line 15, in reconcile
res = super(AccountMoveLine, self).reconcile(writeoff_acc_id=writeoff_acc_id, writeoff_journal_id=writeoff_journal_id)
File "/opt/odoo/odoo-server/addons/account/models/account_move.py", line 917, in reconcile
remaining_moves = self.auto_reconcile_lines()
File "/opt/odoo/odoo-server/addons/account/models/account_move.py", line 888, in auto_reconcile_lines
ret = self._reconcile_lines(debit_moves, credit_moves, field)
File "/opt/odoo/odoo-server/addons/account/models/account_move.py", line 870, in _reconcile_lines
self.recompute()
File "/opt/odoo/odoo-server/odoo/models.py", line 5212, in recompute
target._write(dict(vals))
File "/opt/odoo/odoo-server/addons/account/models/account_invoice.py", line 545, in _write
(reconciled & pre_reconciled).filtered(lambda invoice: invoice.state == 'open').action_invoice_paid()
File "/opt/odoo/odoo-server/addons/sale/models/account_invoice.py", line 72, in action_invoice_paid
res = super(AccountInvoice, self).action_invoice_paid()
File "/opt/odoo/odoo-server/addons/account/models/account_invoice.py", line 928, in action_invoice_paid
invoice.write({'state': 'in_payment'})
File "/opt/odoo/odoo-server/addons/purchase/models/account_invoice.py", line 165, in write
result = result and super(AccountInvoice, invoice).write(vals)
File "/opt/odoo/odoo-server/addons/mail/models/mail_thread.py", line 322, in write
result = super(MailThread, self).write(values)
File "/opt/odoo/odoo-server/addons/mail/models/mail_activity.py", line 569, in write
return super(MailActivityMixin, self).write(vals)
File "/opt/odoo/odoo-server/odoo/models.py", line 3259, in write
self._write(store_vals)
File "/opt/odoo/odoo-server/addons/account/models/account_invoice.py", line 542, in _write
res = super(AccountInvoice, self)._write(vals)
File "/opt/odoo/odoo-server/odoo/models.py", line 3338, in _write
val = field.convert_to_column(val, self, vals)
File "/opt/odoo/odoo-server/odoo/fields.py", line 1941, in convert_to_column
value = self.convert_to_cache(value, record)
File "/opt/odoo/odoo-server/odoo/fields.py", line 1953, in convert_to_cache
raise ValueError("Wrong value for %s: %r" % (self, value))
ValueError: Wrong value for account.invoice.state: 'in_payment'
uqte
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
1
Reply
2776
Views
Hello
Can you please try with latest source of Odoo12 CE?
i tried on a runbot.odoo.com and it's working well.
Thanks
Sunny Sheth
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
0
Aug 20
|
1985 | ||
|
1
Nov 21
|
2019 | ||
|
9
Jan 24
|
12221 | ||
|
0
Feb 24
|
189 | ||
|
0
Jan 24
|
365 |