project_task_partner_info/models/partner_contact.py

24 lines
642 B
Python

# -*- coding: utf-8 -*-
from odoo import api, fields, models
class ProjectTask(models.Model):
_inherit = "project.task"
# related field to display phone of related res.partner record
customer_phone_id = fields.Char(
string="Phone",
related="partner_id.phone"
)
# related field to display email of related res.partner record
customer_email_id = fields.Char(
string="Email",
related="partner_id.email"
)
# related field to display email of related res.partner record
customer_mobile_id = fields.Char(
string="Mobile",
related="partner_id.mobile"
)