On 09/28/2010 01:52 PM, "Cédric Krier" <[email protected]>" wrote:
It comes from the _default_on_change on server side [1]. The method doesn't respect the with_rec_name parameter of the default_get [2]. [1] http://hg.tryton.org/trytond/file/32a3cbee4bdd/trytond/model/model.py#l591 [2] http://hg.tryton.org/trytond/file/32a3cbee4bdd/trytond/model/model.py#l493
I'll take your word for it, but I don't see it there. I can't see past the voodoo going on there.
Attached patch for account_invoice did it for me :-( -- ________________________________________________________________ Paul Stevens paul at nfg.nl NET FACILITIES GROUP GPG/PGP: 1024D/11F8CD31 The Netherlands________________________________http://www.nfg.nl -- [email protected] mailing list
# HG changeset patch # User [email protected] # Date 1285682738 -7200 # Node ID a7f62796ded52d01ec0843016a8dc59c68f127bc # Parent 166cbdfe21798d87c9b67712a6058a7242820f56 fix broken on_change handler diff --git a/invoice.py b/invoice.py --- a/invoice.py +++ b/invoice.py @@ -208,9 +208,7 @@ 'revenue')), ], limit=1) if journal_ids: - journal = journal_obj.browse(journal_ids[0]) - res['journal'] = journal.id - res['journal.rec_name'] = journal.rec_name + res['journal'] = journal_ids[0] return res def on_change_party(self, vals):
