Issue on pos_credit_payment 13.0 (#1,272)
Status: OPEN
Date: 08/06/2021
ID: 1,272
S/O number: SO2021/1426854
Reviewer: Jack Paco
Module Name: pos_credit_payment
Version: 13.0
Tags:

Assigned to
Contact
Jay Pardasani
jay.pardasani@browseinfo.in

Description
I am having issues with this module from creating an invoice from Point of sales

image.png

image.png

Traceback (most recent call last):

File "/home/odoo/src/odoo/odoo/http.py", line 624, in _handle_exception

return super(JsonRequest, self)._handle_exception(exception)

File "/home/odoo/src/odoo/odoo/http.py", line 310, in _handle_exception

raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])

File "/home/odoo/src/odoo/odoo/tools/pycompat.py", line 14, in reraise

raise value

File "/home/odoo/src/odoo/odoo/http.py", line 669, in dispatch

result = self._call_function(**self.params)

File "/home/odoo/src/odoo/odoo/http.py", line 350, in _call_function

return checked_call(self.db, *args, **kwargs)

File "/home/odoo/src/odoo/odoo/service/model.py", line 94, in wrapper

return f(dbname, *args, **kwargs)

File "/home/odoo/src/odoo/odoo/http.py", line 339, in checked_call

result = self.endpoint(*a, **kw)

File "/home/odoo/src/odoo/odoo/http.py", line 915, in __call__

return self.method(*args, **kw)

File "/home/odoo/src/odoo/odoo/http.py", line 515, in response_wrap

response = f(*args, **kw)

File "/home/odoo/src/odoo/addons/web/controllers/main.py", line 1339, in call_kw

return self._call_kw(model, method, args, kwargs)

File "/home/odoo/src/odoo/addons/web/controllers/main.py", line 1331, in _call_kw

return call_kw(request.env[model], method, args, kwargs)

File "/home/odoo/src/odoo/odoo/api.py", line 383, in call_kw

result = _call_kw_model(method, model, args, kwargs)

File "/home/odoo/src/odoo/odoo/api.py", line 356, in _call_kw_model

result = method(recs, *args, **kwargs)

File "/home/odoo/src/odoo/addons/point_of_sale/models/pos_order.py", line 451, in create_from_ui

order_ids.append(self._process_order(order, draft, existing_order))

File "/home/odoo/src/user/pos_credit_payment/models/custom_sale.py", line 322, in _process_order

pos_order.account_move.sudo().with_context(force_company=self.env.user.company_id.id).post()

File "/home/odoo/src/enterprise/account_asset/models/account_move.py", line 36, in post

res = super(AccountMove, self).post()

File "/home/odoo/src/odoo/addons/sale/models/account_invoice.py", line 81, in post

res = super(AccountMove, self).post()

File "/home/odoo/src/odoo/addons/purchase_stock/models/account_invoice.py", line 182, in post

return super(AccountMove, self).post()

File "/home/odoo/src/enterprise/account_reports/models/account_activity.py", line 83, in post

return super(AccountMove, self).post()

File "/home/odoo/src/odoo/addons/stock_account/models/account_move.py", line 52, in post

res = super(AccountMove, self).post()

File "/home/odoo/src/enterprise/account_invoice_extract/models/account_invoice.py", line 288, in post

res = super(AccountMove, self).post()

File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 2241, in post

raise UserError(_('The entry %s (id %s) is already posted.') % (move.name, move.id))

odoo.exceptions.UserError: ('The entry PCI/2021/0003 (id 234) is already posted.', '')

Message and communication history