Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Is it possible to add the word "PAID" anywhere on the paid invoices when I print them as PDF?

By
Orlando Campos
on 11/16/16, 8:48 PM 211 views

Is it possible to add the word "PAID" anywhere on the paid invoices when I print them as PDF?

The thing is that I want to add the word PAID anywhere when I print the paid invoices as PDF.  Maybe there is a way to modify the template for this?

This for odoo online version. BTW

Thanks! ;)

HERMATIX, Orlando Campos
on 11/16/16, 8:52 PM
1

Ray Carnes

--Ray Carnes--
15717
| 9 7 9
Greater Los Angeles, United States
--Ray Carnes--

Senior Odoo Analyst

OpenERP 6.1, 7.0 and Odoo 8.0, 9.0 (Since 2012)

Completed Functional and Technical Training.

Major Skills:

  • Needs Discovery and Requirements Analysis;

  • Function and Technical Specifications;

  • Project Planning;

  • Prototyping and Proof of concepts;

  • Data migration;

  • Configuration & Customization (UI and modules);

  • Integration - data, business logic and service levels;

  • Training and Knowledge transfer;

  • Go Live support;

  • Help desk;

  • Version Migration.

I have over 20 years of experience empowering and enabling users with enterprise information systems that make a real and measurable difference in their ability to proactively manage their businesses and organizations. 

Ray Carnes
On 11/17/16, 1:41 PM

1. Create a new QWEB view that inherits and overrides the standard Invoice report.  Do this via Settings --> Technical --> User Interface --> Views



2. Add the following to the ARCHITECTURE FIELD:


<p t-if="o.comment"  position="before">
 <t t-set="paid_total" t-value="- o.amount_total + o.residual"/>
  <div class="row">
<div class="col-xs-4 pull-right">
<table class="table table-condensed">
<tr class="border-black">
<td><strong>Less Payments</strong></td>
<td class="text-right">
<span t-esc="paid_total"
t-options="{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: o.currency_id}"/>
  </td>
</tr>
  <tr class="border-black">
<td><strong>Open Balance</strong>
</td>
<td class="text-right">
<span t-field="o.residual"
t-options="{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: o.currency_id}"/>
  </td>
</tr>
<!-- OPTIONALLY INSERT WORDS HERE --> 
</table>
</div>
</div>
</p>


3. Make sure RELOAD FROM ATTACHMENT is not checked in the Report Definition.  Find it at Settings --> Technical --> Actions --> Reports.



4. The Invoice Report will then look like this:


EDIT: To add the words PAID, add this at the end of the XML in the ARCHITECTURE field (where is has <!-- OPTIONALLY INSERT WORDS HERE -->)


<tr>            
<td>
<span t-if="o.residual == 0">PAID IN FULL</span>
</td>
</tr>

Thanks for your answer Ray Carnes, but I'm not sure If this is what I need it. I need the word "PAID" present when I print a paid invoice as PDF... This word "PAID" should be big. Because sometimes my clients asks to send the invoice again with that label (PAID).

And on the step 4 of your steps I cant see the word "PAID".

HERMATIX, Orlando Campos
on 11/18/16, 2:49 PM

See my edit.

Bista Solutions US, Ray Carnes
on 11/18/16, 3:50 PM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 11/16/16, 8:48 PM
Seen: 211 times
Last updated: 11/17/16, 1:41 PM