def convert(self, amount, cur): amt_words = amount_to_text(amount, cur or '') return amt_words.capitalize()
'stock.box', 'addons/numa_uniqs_box/report/box_label.rml', parser=report_box, header="external") report_sxw.report_sxw('report.uniqs_box_form.print', 'stock.box', 'addons/numa_uniqs_box/report/box_form.rml', parser=report_box, header="external") report_sxw.report_sxw('report.uniqs_box_detailed.print', 'stock.box', 'addons/numa_uniqs_box/report/box_detailed.rml', parser=report_detailed_box, header="external") if __name__ == '__main__': from sys import argv lang = 'es' if len(argv) < 2: for i in range(1, 200): print i, ">>", amount_to_text(i, lang) for i in range(200, 999999, 139): print i, ">>", amount_to_text(i, lang) else: print amount_to_text(int(argv[1]), lang) # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: