IRC logs of #tryton for Thursday, 2011-12-01 #tryton log beginning Thu Dec 1 00:00:01 CET 2011
2011-12-01 11:28 <sampac> Hello. I couldn't find information on how to import a record in data via xml for a many2many field. Can anyone point me to correct syntax ?
2011-12-01 11:29 <bechamel> sampac: you must insert records in the m2m table
2011-12-01 11:32 <bechamel> sampac: example
2011-12-01 11:42 <sampac> ok so if I understand your example it requires that I declare first an object for the m2m (because up to now I just supplied a relation_name in m2m declaration) ?
2011-12-01 11:45 <bechamel> sampac: yes you have to define two m2o in your class definition
2011-12-01 11:45 <sampac> Ok that solves my problem. Thanks a lot :-)
2011-12-01 11:48 <udono> Hi, is there a way to test if a property field (type Many2One) is not set (or empty) in a domain clause?
2011-12-01 11:48 <udono> When I use ('m2o_property', '=', False) I get a ProgrammingError: operator does not exist: integer = boolean LINE 1: ...True) THEN (cast(split_part(value,',',2) as int4) = false)
2011-12-01 11:50 <udono> I checked but can not find an implementation for this.
2011-12-01 12:56 <sampac> I'm trying to import a salable product via xml but I can't set the "account_revenue" field because linking "account_revenue" to products is limited to records of the company present in the transaction context (domain limitation). But this context is not set during the update process so it fails... Is there a solution ? like forcing the context during update ?
2011-12-01 12:58 <cedk> sampac: the solution is to not use xml for importing product
2011-12-01 13:01 <cedk> sampac: use proteus instead
2011-12-01 14:04 <sampac> cedk: ok thanksI didn't know this tool.
2011-12-01 14:37 -!- sisalp( has left #tryton
2011-12-01 15:33 <cedk> udono: about review 188001 and 185003, do you have any usage in mind for a searcher?
2011-12-01 15:37 <udono> cedk: maybe search the deliverydate to prepare deliveries for a specific day or period. It may needed to buy packing material, stamps or so.
2011-12-01 15:37 <udono> cedk: but for me it is jaust a sugestion
2011-12-01 15:37 <udono> *just
2011-12-01 15:39 <cedk> udono: this is the role of the shipments
2011-12-01 15:42 <udono> cedk: you seem right, it has not much to do with sale/purchase.
2011-12-01 15:51 <cedk> udono: ok so review are ok for you?
2011-12-01 15:53 <udono> cedk: yes
2011-12-01 15:55 <cedk> udono: LGTM on review :-)
2011-12-01 15:55 <udono> cedk: already done :-)

Generated by 2.17.3 by Marius Gedminas - find it at!