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

how to reference unrelated fields in contract template

By
Daniel Holden
on 6/30/16, 7:02 AM 161 views

I am using Odoo 8 with the following modules:

1) tko_account_contract_report_template
this allows me to print a report containing the contract content, including a predefined signature.


2)chricar_partner_id_number
this allows me to associate ID numbers such as driver's license, health card, Passport number, etc. to each partner.


From within the contract report template I am able to reference fields that are directly associated with the contract such as  

Name: $(partner_id.name)s and Email: $(partner_id.email). These work as expected, no problems at all.


What I would like to be able to do, but don't know how, is to reference other fields in the res.partner.id_category and res_partner_id_number, both fields created by the chricar_partner_id_number module.I am familiar with SQL query language using the JOIN statement to bring together data from various related tables, but do not understand how it works in Odoo.

Any help would be much appreciated.


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: 6/30/16, 7:02 AM
Seen: 161 times
Last updated: 6/30/16, 8:30 AM