Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
8083 Lượt xem

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

Ảnh đại diện
Huỷ bỏ

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

Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 11 18
2657
1
thg 7 25
696
2
thg 7 25
797
1
thg 7 25
1874
3
thg 4 25
1887