Odoo Help

1

Add vendor address to the check printing report.

By
Kyle Krenzer
on 6/16/16, 2:37 PM 778 views

I would like to add the address for the payable vendor that printed check is going to.  This is standard for most accounting systems that use printed checks to accommodate window envelopes.


Is this done in the associated Qweb view?


Thanks

Looks like this view has changed since V9. It is no longer ckus_check. Anyone have updated instructions?

TWC Equipment, Michael C
on 2/1/17, 2:08 PM

The view at v10 is called "l10n_us_check_printing.ckus_check" - it hasn't changed.

Bista Solutions US, Ray Carnes
on 2/1/17, 3:38 PM

You are correct. Mea culpa. With your answer I was able to get 90% of the way towards printing the address on checks. The rest was just formatting for my check paper. Thank you.

TWC Equipment, Michael C
on 2/2/17, 1:35 PM
1
Ray Carnes
On 6/16/16, 8:43 PM

Inherit and override the Qweb View called l10n_us_check_printing.ckus_check and add something like:

<xpath expr="//div/div[@class='ckus_payee_name']" position="replace">

<div class="ckus_payee_name" t-esc="page['partner_name']"/>

<table width="100%" style="padding:5px;margin: 160px 0px 0px 75px;">

<tr t-if="o.partner_id.street">

<td colspan="3" style="width:auto; padding:5px;">

<div class="ckus_payee_street" t-esc="o.partner_id.street"/>

</td>

</tr>

<tr t-if="o.partner_id.street2">

<td colspan="3" style="width:auto; padding:5px;">

<div class="ckus_payee_street" t-esc="o.partner_id.street2"/>

</td>

</tr>

<tr>

<td style="width:auto; padding:5px;">

<div class="ckus_payee_street" t-if="o.partner_id.city" t-esc="o.partner_id.city"/>

</td>

<td style="width:auto; padding:5px;">

<div class="ckus_payee_street" t-if="o.partner_id.state_id" t-esc="o.partner_id.state_id.code"/>

</td>

<td style="width:auto; padding:5px;">

<div class="ckus_payee_street" t-if="o.partner_id.zip" t-esc="o.partner_id.zip"/>

</td>

</tr>

</table>

</xpath>


About This Community

This platform 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.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 6/16/16, 2:37 PM
Seen: 778 times
Last updated: 2/1/17, 2:07 PM