← Back to team overview

openerp-expert-framework team mailing list archive

Re: [Openerp-expert-ergonomy] Guide lines

 

Hello Christophe and all,

On Thu, Jul 15, 2010 at 1:02 PM, Christophe CHAUVET (SYLEAM) <
christophe.chauvet@xxxxxxxxx> wrote:

> Hi
>
> 2010/7/15 Albert Cervera i Areny <albert@xxxxxxxxxxx>
>
>  A Dijous, 15 de juliol de 2010, Olivier Dony va escriure:
>>
>> > > 7) I believe it's still not possible in a many2one view, to select the
>>
>> > > view that would popup in the search list view or from record
>>
>> > > creation/visualization view.
>>
>> > > Currently we should code for this and override fields_view get and use
>>
>> > > the context, but I think it would be better to support this natively
>>
>> > > and declaratively using an attribute parameter.
>>
>> > > (we do that hack in the fleet_maintenance module for instance).
>>
>> >
>>
>> > Hmm, ugly hack indeed. How about doing it the other way around and
>>
>> > making this view the highest priority form view (thus the one used in
>>
>> > the m2o), and then specifying another form view explicitly in the
>> action
>>
>> > that opens your regular list/form views.
>>
>> That does not work in the case of invoices, for example. If you have a
>> many2one widget to a customer invoice it will open up suppliers view. If you
>> made customer invoice view the default, you'd have the same problem with
>> many2one widgets referring to supplier invoices.
>>
>> This problem happens in several cases.
>>
>
> For this i use in the context
>
> <field name="my_m2o" context="{'form_view_ref': 134, 'tree_view_ref':
> 256}"/>
>
> 134 and 256 is the id for form and tree views that i want
>

As far as I remember we already talked about that issue together and I
believe you are here using an extra feature you committed in your own
Syleam's server's branch, right?
That's indeed the solution I would like to be core of OpenERP but I just
checked, I couldn't find any use of the 'form_view_ref' context option in
the official trunk server.

So this is my point, couldn't that Syleam feature be merged inside OpenERP
v6? (or feel free to do better if you can afford it of course).

Regards,


Raphaël Valyi
Founder and ERP Consultant
+55 21 3010 9965
http://www.akretion.com

<http://www.akretion.com.br/>

References