Community: Framework mailing list archives

expert-framework@mail.odoo.com

Re: fields_view_get issue

by
Jean-Paul Robineau
- 09/14/2016 01:39:35
Dear Christian,

Its a bit difficult to say what is wrong without seeing your code. But i pressume you didn't called a super first. For Fields view get you better call the super first, and then you adapt the res['arch'] and return the res.

If this didn't work can you please send a bit of the code so we can see what happend?

Kind regards, Met vriendelijke groeten

Jean-Paul Robineau
Lead Developer
Apertoso NV
Deinze, Belgium


On Tuesday, September 13, 2016 5:32 PM, Christian Valsecchi <christian.valsecchi@outlook.com> wrote:


Hi there,
    I’m trying the fields_view_get override to use different views depending on different context.
 
I keep having this error: Uncaught TypeError: Cannot read property 'arch' of undefined.
Does someone have some ideas on how to fix it? I’m quite lost.
 
Thanks
 
Kind Regards / Met vriendelijke groet,
Christian Valsecchi
IT Manager & Consultant - Technology

 
_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-framework-62
Post to: mailto:expert-framework@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe