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 at
http://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/

Attachment: pgpfqZ6RJdlHF.pgp
Description: PGP signature

Reply via email to