Skip to Content
Menu
This question has been flagged

Hello everyone, I hope you are well. 

I hope you can help me with this problem that I have had for a few days, and I have searched in other forums and the only solution I got was oriented towards a development that the user made, but in my case the error is not executed in a development, but in the internal code of Odoo.

When I validate an inventory entry on a purchase order, make any type of inventory adjustment, or confirm an invoice, the error appears. It seems that it is trying to search for a sales order by the model it queries, SALE.ORDER, although I am not clear why.  

Likewise, I was tracing the error from the Odoo code until I found where the error is executed, and is triggered within the CREATE function of the ACCOUNT.MOVE model in the ACCOUNT module of Odoo. From a development that I have to create an invoice I call this function, and within this model there is a function called _move_autocomplete_invoice_lines_create. 

On line approximately 2290 with the instruction: 

vals = self_ctx._add_missing_default_values(vals)

The error is triggered. Up to this point I could not follow the execution of the function, and I know that it is triggered there because I was triggering a ValidationError error to know how far the code was executed without triggering the already mentioned error. 

If anyone knows how to help me solve this error, or some recommendations to identify it, I would appreciate it. 

Without further ado, thanks in advance to the forum readers.

Avatar
Discard
Related Posts Replies Views Activity
0
Apr 24
1679
1
May 22
3061
5
Mar 24
5728
2
Feb 24
3314
1
Nov 23
10262