Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
8116 มุมมอง

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"?

คำตอบที่ดีที่สุด

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

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
พ.ย. 18
2675
change between 2 Invoice formats แก้ไขแล้ว
1
ก.ค. 25
772
2
ก.ค. 25
880
1
ก.ค. 25
1943
3
เม.ย. 25
1967