Odoo Help

0

how to reference unrelated fields in contract template

By
Daniel Holden
on 6/30/16, 7:02 AM 511 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.


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