How to add fields to Contract Template by Contracts for Customer

How can I display the company_name and the billing address in a Contract Template?

Custom Client Code is the key?

Thanks for help

Hi @jmueller71,

I think no need to use a custom/client script.

Please apply step:

  1. please go to the Contract Template and create a template of the Contract for the Customer.

Then apply it.

{{ party_name }}

{{frappe.db.get_value("Customer", party_name, 'primary_address')}}

If customers have primary_address in master then show it in Contract form.

  1. Reload your system.

  2. Create the Contract for the customer and select the template.

Then check it.

Thank You!

It works… :grinning:

Thank you NCP for your help!

Kind regards