Tree-view to dynamic form

Asked by LOlivier

We wrote a special application to manage lists of some quite different things to do.
So, we create dynamic forms but do not find how to get back the right dynamic form
from the tree-list of our TODOs.
In other words, is-it possible to customize the transition tree to form ?

Thanks

Question information

Language:
English Edit question
Status:
Solved
For:
Odoo Server (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Solved by:
LOlivier
Solved:
Last query:
Last reply:
Revision history for this message
Vinay Rana (OpenERP) (vra-openerp) said :
#1

Hello Olivier,

You can set the priority in number of tree view and the view which has minimum number in priority will consider first.

Thanks.

Revision history for this message
Ferdinand (office-chricar) said :
#2

Do we have the possibility to define by name which view should be used ?

Revision history for this message
Ferdinand (office-chricar) said :
#3

Do we have the possibility to define by name which view should be used ?

Revision history for this message
Ferdinand (office-chricar) said :
#4

Do we have the possibility to define by name which view should be used ?

Revision history for this message
Ferdinand (office-chricar) said :
#5

Do we have the possibility to define by name which view should be used ?

Revision history for this message
Ferdinand (office-chricar) said :
#6

Do we have the possibility to define by name which view should be used ?

Revision history for this message
Ferdinand (office-chricar) said :
#7

Do we have the possibility to define by name which view should be used ?

Revision history for this message
LOlivier (olivier-lenoir) said :
#8

Hi Vra,

Yes, we were thinking about such a solution but, from the tree, will it make possible to call the form A for the rows 1,3,7, the form C for the rows 2,4, the form D for the row 5 ?
Can you tell me an example ?

Thanks

Revision history for this message
Vinay Rana (OpenERP) (vra-openerp) said :
#9

Hello Olivier,

You need to create postgress view for different data condition using sql query.
You can not assign data rows in different predefined view dynamically.

Thanks.

Revision history for this message
LOlivier (olivier-lenoir) said :
#10

I send you some screenshots and the code.

Revision history for this message
Vinay Rana (OpenERP) (vra-openerp) said :
#11

Hello Olivier,

I got your mail with modules and screen shot.
Your code is not working perfectly at my end, There are some workflow files which is mention in '__init__.py' and '__terp__.py' files, But They are missing.
I suggest you, If you have support contract with Tinysprl then you can post support case.
Support case will be taken by Quality Team member. You will get better solution .

Thanks.

Revision history for this message
LOlivier (olivier-lenoir) said :
#12

Hello Vra,

We found a solution, we have made a wizard in the contextual menu (right) to intercept the data between the tree view and the form dedicated to the type of the row. It works. We'll send you the new source and the screen shots by mail.

Thanks,

Olivier

Revision history for this message
LOlivier (olivier-lenoir) said :
#13

Hi Everybody,

The solution we tried to build is not very good, we'll just keep the first option of the TODOs which allows us to record many types of things to do...
Then we have a menu entry, just to list de recorded TODOs,
And menu entries for each type of TODO.

We hope a new feature in OpenERP to allow the choice of a specific form according to an element of a row...

I hope i'm clear!

Olivier

Revision history for this message
Olivier Lenoir (olivier-lenoir-free) said :
#14

This question is NOW solved, it has been a very hard job but it works and
it seems clean !
We are making some documentation about how to have a view tree of different objects.
The mechanism uses the heritage (that means it is not a list of heterogeneous objects but
of objects different enough to need different forms) .

Could you tell me the best place to send our documentation and the source.
I think all that stuff should have some validation before publication.

Thanks,
Olivier

Revision history for this message
Nhomar - Vauxoo (nhomar) said :
#15

You have several options:
-- In the project: lp:openobject-doc download and commit your changes it will be updated with certain frecuency on doc.openerp.com, on developer book > view > tree view.

-- Drectly on http://doc.openerp.com/developer/2_6_views_events/views/tree_view.html as a comment, somebody can help in post as a topic for you.

-- As a blue print related with "openobject" directly on bazaar (mark it as "Discussion").

I hope it helps
regards