Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1444 Visualizzazioni

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
0
apr 24
1951
1
mag 22
3355
5
mar 24
6398
2
feb 24
3662
1
nov 23
10605