On 03/05/11 16:52 +0200, Paul J Stevens wrote:
> Hi all,
> 
> working on timesheet_invoice I got hit by something I don't quite
> understand.
> 
> I'm extending project.work but sometimes this leads to exceptions in the
> timesheet.work code, particularly in get_res_name. Apparently,
> get_res_name sometimes gets a list of ids that is refering to:
> 
> timesheet.work.id
> project.work.work
> project.work.id
> 
> probably depending on how the timesheet.work was created.
> 
> I've worked around this by overloading the get_res_name call, but the
> solution is really ugly, and most likely . What am I doing wrong:
> 
> http://git.subdir.eu/paul/trytond_timesheet_invoice/tree/work.py?h=2.0#13
> 

On which version?
I think it is fixed with 2.0:

    * Model doesn't convert anymore ids for inherited methods

-- 
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: pgpMJbcMITYgb.pgp
Description: PGP signature

Reply via email to