hi,

[EMAIL PROTECTED] wrote:
> Unless it has been fixed, right now, in TinyERP 4.2.1 you cannot display the 
> number format they way you want. It simply is not supported. The same applies 
> for the English way of writing it e.g. 1,000.00. 
>
> The only way I know on how to do it is to get a support contract with TinyERP 
> and get access to their trunk branch and copy files overs. It works there. 
> You then also have to use formatLang in the reports. Then it should work.  
> Here is some info on formatLang.
> http://docs.python.org/lib/typesseq-strings.htm
i use something like

[...]
import locale

class invoice(report_sxw.rml_parse):
        def __init__(self, cr, uid, name, context):
                super(invoice, self).__init__(cr, uid, name, context)
                self.localcontext.update({
                        'time': time,
                        'locale': locale,
                })
report_sxw.report_sxw(......

and then i can use

<para style="T1">[[ locale.format('%.2f', t.amount, True)]]</para>

in rml-reports. hope this helps. maybe this has some security
implicitations, but that doesn't really apply in my case ;)

mfg

-- 
Robert Schöftner        
LBT Schöftner Technik GmbH

Fax: +43-7221-72659-44
Voice: +43-7221-72659
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>    Humerstraße 41
4063 Hörsching
Austria

www.lbt-schoeftner.at <http://www.lbt-schoeftner.at>


begin:vcard
fn;quoted-printable:Robert Sch=C3=B6ftner
n;quoted-printable:Sch=C3=B6ftner;Robert
org;quoted-printable:LBT Sch=C3=B6ftner Technik GmbH
adr;quoted-printable;quoted-printable:;;Humerstra=C3=9Fe 41;H=C3=B6rsching;;4063;Austria
email;internet:[EMAIL PROTECTED]
tel;work:+43-7221-72659
tel;fax:+43-7221-72659-44
url:http://www.lbt-schoeftner.at
version:2.1
end:vcard

_______________________________________________
Tinyerp-users mailing list
http://tiny.be/mailman/listinfo/tinyerp-users

Reply via email to