Community: Framework mailing list archives

expert-framework@mail.odoo.com

Re: Pdf generation question

by
Kobus Wolvaardt
- 01/27/2015 13:14:39
Thanks,

On Tue, Jan 27, 2015 at 6:27 PM, André P. <app@thinkopensolutions.pt> wrote:

Once the returned pdf are added to the debtor I want to finalise the system. Is there a way to make the document uploading mandatory before the final tickbox can be toggled?

My suggestion would be to use a binary field to store the signed PDF. Then you can set the checkbox readonly if the binary field doesn't have file uploaded (see 'attrs' in the views XML).

Excellent. I missed the binary type for some reason, fields.binary looks exactly like what I want.
 

Any suggestions on where to start with the pdf? I am finding very little on the topic in the docs. There is a quote and invoice generation pdf system but I am not finding much on it.

The PDFs are generated by the reporting engine. In v8, the recommended system is QWeb. Here's the docs: https://www.odoo.com/documentation/8.0/reference/reports.html

I read through this, but I am missing something. There is no link to how to actually do the layout, nor to what that module will be called. It references report = report_obj._get_report_from_name('<<module.reportname>>') and then renders it. How do I change the layout? Would there be a sample somewhere to look at?


 

2015-01-27 16:07 GMT+00:00 Kobus Wolvaardt <kobus@quantsolutions.co.za>:

Hi,

I am using odoo or v8.

I have a model that stores a client's setup, it affects his billing and I want to generate PDF for the client to sign and return.

Once the returned pdf are added to the debtor I want to finalise the system. Is there a way to make the document uploading mandatory before the final tickbox can be toggled?

Any suggestions on where to start with the pdf? I am finding very little on the topic in the docs. There is a quote and invoice generation pdf system but I am not finding much on it.

I have been working through the howtos and think I just missed something somewhere.

Thanks in advance,

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-framework-62
Post to: mailto:expert-framework@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe




--
Cumprimentos,


André Paramés

Developer

Miraflores Office Center,

Avenida das Túlipas, nº 6,

13ºA/B 1495-161 Algés

e. app@thinkopensolutions.pt

m. +351 960 029 663

t. +351 214 123 492

f. +351 214 123 493

O conteúdo desta mensagem de correio electrónico e seus anexos é confidencial e de uso reservado. Se não é o destinatário apague-a e informe o remetente. Esta mensagem é verificada pelo nosso sistema de anti-vírus, ainda assim não aceitamos qualquer responsabilidade por danos causados por vírus que possam estar contidos nesta mensagem. Para mais informações visite-nos em www.thinkopensolutions.com.

 Não imprima este email caso não seja estritamente necessário. A Terra agradece-lhe!

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-framework-62
Post to: mailto:expert-framework@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe




--
Kobus Wolvaardt
S:   +27 71 191 1499
W:  +27 12 804 6724