Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1282 Zobrazení

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
0
dub 24
1769
1
kvě 22
3149
5
bře 24
5916
2
úno 24
3392
1
lis 23
10355