跳至内容
菜单
此问题已终结
2 回复
7334 查看

There used to be a button on a completed invoice for printing it (or was it in the More menu?). Now that's disappeared, and I'm left with no way to print an invoice.

I've recently been experimenting with changes to account_print_invoice.rml, and that was working OK. Then I tried installing the webkit engine and associated modules -- I couldn't get that to work, so I uninstalled those modules again. But I still can't print the invoices.

Any suggestions for how to fix this?

I'm running OpenERP 7.0-20130111-002202 on 64-bit Linux.

形象
丢弃

Try to check in other database maybe there you can get invoice print button.

编写者

Yes, the Print button is there in my test database, but not in the production database. Which is interesting, but not helpful!

编写者 最佳答案

Keyur's comment did give me a clue where to look though.

In Settings / Technical / Actions / Reports the account.invoice object still had a report type of 'webkit'. I set it back to 'pdf' and set the other fields to be the same as in the test database. After restarting the server, the Print button is back!

形象
丢弃
最佳答案

I run into the same problem after installing report_webkit and invoice_webkit and Openerp v7. The print invoice button disappears for paid invoices.

I managed to solve the problem by adding a button into the view for those states where the print button disappears.

Try this:

- Go to Admin --> UI --> Views (Enable first technical features) and search for "account.invoice.form" view.

- Edit the view and add the below code before closing the header tag </header>

<button name="invoice_print" string="Print" type="object" attrs="{'invisible':['|', ('state', '=', 'open'), ('state', '=', 'draft')]}" groups="base.group_user"/>

 

Hope this can fix it.

For the Print link in the dropdown I've tried to go to Admin --> Actions --> Reports --> Invoices report and try to re-generate the print button, but it doesn't work.

 

 

形象
丢弃
相关帖文 回复 查看 活动
0
3月 15
3979
1
3月 15
4558
1
3月 15
5457
4
3月 15
7131
0
3月 15
4101