Uncaught Error: Campo desconocido state en el dominio [["state","in",["done"]]]

Asked by Manuel Oswaldo Trabanino on 2012-08-16

Estoy intentando crear un nuevo campo en el modulo de Contabilidad utilizando account_payment (orden de pago), pero al realizar la gestión no me permite visualizar el campo y me sale este error.

Uncaught Error: Campo desconocido state en el dominio [["state","in",["done"]]]
http://web/static/src/js/view_form.js?debug=1329783586.0:835

Este procedimiento lo realizo en otros módulos y funciona perfectamente.

Question information

Language:
English Edit question
Status:
Answered
For:
Odoo Addons (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Last query:
2012-08-16
Last reply:
2012-08-18

Estoy intentando crear un nuevo campo en el modulo de Contabilidad utilizando account_payment (orden de pago), pero al realizar la gestión no me permite visualizar el campo y me sale este error.

Uncaught Error: Campo desconocido state en el dominio [["state","in",["done"]]]
http://web/static/src/js/view_form.js?debug=1329783586.0:835

Este procedimiento lo realizo en otros módulos y funciona perfectamente.

Manuel,

Realmente sería genial para comunicarse aquí, en Inglés!

Well, I don't face an error.

But I sense the error well in your code if you customized it.

Seem like you added a field and might have added a view in which you forgot to add field 'state'.

This error may happen when the fields depend upon the state(readonly attribute) and you dont have it in your view.

An example here is waiting to reach home https://bugs.launchpad.net/openobject-addons/+bug/960872 .

Thanks,
Serpent Consulting Services.

Ok, thank you very much for your reply.
I apologize but I am using a translator.

The problem is more serious, since the module of which I speak, "payment_order" the problem is not so much create the field as to make a small modification, and relocate any existing module, I get the error above, I apparently indicate that a problem of Bugs in this module.

I appreciate your help, and I expect a response. Thank you very much.

Manuel,

You said you added a field. It would make sense if you can pass the module tome so I can check further.

If its a bug, we should fix it. Otherwise,we should find a solution.

Thanks.

Good day.

Yes, I have added a field, but in other modules, such as the customer's bill, and the vendor invoice (account.invoice) and work perfectly, but the module payment.order, let me not at all, or create a field, or any mofificacion hacele or anything like it.

I tried looking for any update of this module, but not found, I found a log for version 6.1, but this did not work.

I appreciate the time given to me, my interest is to find a solution to this invonveniente.

Thank you very much.
Manuel Trabanino

Manuel,

Thanks for the response.

If its possible to share your code, we can help you identify the problem and fix.

It would be true that some hidden error is coming out due to your code..

Thanks.

Ok, I do not understand that code need payment.order module comes in the installation of ERP 6.1

Evelyn Guzmán (eguzman-c) said : #8

Hi, I'm working with Manuel and I'll try to explain the error:

with user Administrator, I need to add a field to the payment order that is check number.
We have activated the developper mode
At Accounting, payment, select payment orders
select create and select on

Evelyn Guzmán (eguzman-c) said : #9

continue:
Manage view
select order.payment form and edit
then, add on + a field
select new and X_ appear to fill the name of field.
after that when close, and try to create a new payment order the error appear.

How can I submit images for a better explanation??

Evelyn,

Thanks for the information.

This was a hidden bug and We faced it when we add a field via manage view option.

The bug is : when you have multiple form tags (especially the case of o2m fields have internal views, the fields of main model after o2m field goes removed).

So, this can be said like a bug of Manage view feature.

Lets convert the question back to bug, Thanks.

Can you help with this problem?

Provide an answer of your own, or ask Manuel Oswaldo Trabanino for more information if necessary.

To post a message you must log in.