Re: [tryton-dev] Multiple level view inheritance
2015-09-29 11:36 GMT+02:00 Cédric Krier: > There was a mechanism for inherit from different model so I think it > still work if you don't set a model on the view. But some tests will be > needed to ensure this behaviour. > I assume you would be talking about this : http://hg.tryton.org/trytond/file/42c13797c1de/trytond/model/modelview.py#l277 The "pool.get" part cannot handle an empty model. I may take a look at this later. Thanks for your answer. Jean Cavallo *Coopengo*
[tryton-dev] Multiple level view inheritance
Hi all, I would like to override a view, and be able to use the modified version, without actually modifying the main view. I think I remember it to be possible, but I cannot manage to find how. I tried using an intermediate view : V3 inherits from V2 inherits from V1 But V3 modification were not used. I found a way to achieve the desired behaviour by modifying fields_view_get on ModelView, but I would like to be sure that it is not already possible before submitting a feature / review. Jean Cavallo *Coopengo*
Re: [tryton-dev] Multiple level view inheritance
On 2015-09-29 11:16, Jean Cavallo wrote: > Hi all, > > I would like to override a view, and be able to use the modified version, > without actually modifying the main view. > > I think I remember it to be possible, but I cannot manage to find how. > I tried using an intermediate view : > > V3 inherits from V2 inherits from V1 > > But V3 modification were not used. > > I found a way to achieve the desired behaviour by modifying > fields_view_get on ModelView, but I would like to be sure that it is not > already possible before submitting a feature / review. There was a mechanism for inherit from different model so I think it still work if you don't set a model on the view. But some tests will be needed to ensure this behaviour. -- Cédric Krier - B2CK SPRL Email/Jabber: cedric.kr...@b2ck.com Tel: +32 472 54 46 59 Website: http://www.b2ck.com/