Hi Cedric,
I checked the file and now i understand how these small buttons below
the formview work in Tryton :)

But I want to open a new tab simply using a function()

For example a simple button on the form view.

probably i have to use wizards. but not sure.

I have a list of ids and the only remaining thing is to open a new tab
for the specific model (Not current model ! ) and view (which i have
already defined in the other modules) in a new tab.

Regards

On Oct 19, 3:46 pm, Cédric Krier <[email protected]> wrote:
> On 18/10/10 18:57 -0700, Mohammad wrote:
>
>
>
>
>
>
>
>
>
> > Hi Cedric,
> > Regarding your comments,i agree that standard fields are more
> > beautiful codes. Actually i use this phrase "implement something more
> > beautiful"  generally to express my ideas not block of codes,
> > solving some problems can demonstrate beauty in a mind and I'm a very
> > big fan of beautiful minds :)
>
> > Regarding option 2, you are almost right as it is a many2many
> > relation, the question is how to handle domain?
> > Is it really good to implement a domain on it. In addition i couldn't
> > find any samples for domains like this within the code.
> > I mean:
> > translation of below sentence to a domain is a little bit confusing
> > for me:
>
> > "products which is a member of product_price which is a member of a
> > contract which is a member of pricelist which has an id = current
> > pricelist id"
>
> I'm not sure to understand what you want to filter.
> Is it pricelist based on products clause or product_price based on pricelist
> and product ?
>
> > Regarding your last advise, it sounds very nice. i really hadn't thank
> > about this ! and then in the new tab we don't have any parent field
> > and it means freedom for searchboxes and many other things !
> > I appreciate it if you could give me direction on how to open and
> > refer to a new tab in Tryton from a form view.
>
> You can have a look 
> athttp://hg.tryton.org/modules/sale/file/8efdec36973b/party.xml#l12
> It adds a relate button on party to show sales of the current party.
>
> --
> Cédric Krier
>
> B2CK SPRL
> Rue de Rotterdam, 4
> 4000 Liège
> Belgium
> Tel: +32 472 54 46 59
> Email/Jabber: [email protected]
> Website:http://www.b2ck.com/
>
>  application_pgp-signature_part
> < 1KViewDownload

-- 
[email protected] mailing list

Reply via email to