Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
7324 Vistas

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.

Avatar
Descartar

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

Autor

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

Autor Mejor respuesta

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!

Avatar
Descartar
Mejor respuesta

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.

 

 

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
0
mar 15
3974
1
mar 15
4548
1
mar 15
5446
4
mar 15
7126
0
mar 15
4098