Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

How to write a total amount of the invoice with letter

By
samir
on 3/5/13, 11:45 AM 2,252 views

hello ,

if someone have an idea . i have change in this file account_print_invoice.py path : addons/account/report/account_print_invoice.py

###
import time
from report import report_sxw
from tools.amount_to_text import amount_to_text_fr

class account_invoice(report_sxw.rml_parse):
    def __init__(self, cr, uid, name, context):
    super(account_invoice, self).__init__(cr, uid, name, context=context)
    self.localcontext.update({
       'time': time,
       'amount_to_text_fr':amount_to_text_fr,
###

then i add in the report invoice [[ amount_to_text_fr(o.amount_total,'Euro') ]]

with openoffice

but nothing appear when i print a new invoice

thks

Is there any error message in the logfile? Did you update report "account.invoice"?

Andreas Brueckl
on 3/5/13, 1:29 PM
0
samir
On 3/5/13, 2:08 PM

it works now , i just reboot the server . thks for your replay .

0
filsystem
On 3/5/13, 1:14 PM

Maybe you look in account_voucher/report/account_voucher_print.py convert() function and account_voucher_print.rml for amount_to_text... use.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

Asked: 3/5/13, 11:45 AM
Seen: 2252 times
Last updated: 3/16/15, 8:10 AM