Update rental_contract.py
This commit is contained in:
parent
c3e3c19aeb
commit
3af5e83b5e
|
|
@ -103,7 +103,7 @@ class RentalContract(models.Model):
|
|||
('unit', 'Unit')], string="Rent Method")
|
||||
property_id = fields.Many2one('internal.property', string="Property", tracking=True)
|
||||
unit_ids = fields.Many2many('re.unit', string="Units", tracking=True)
|
||||
partner_id = fields.Many2one('res.partner', string="Renter")
|
||||
partner_id = fields.Many2one('res.partner', string="Renter",domain=[('is_tenant', '=', True)])
|
||||
identification_type = fields.Selection(related="partner_id.identification_type", string='Identification Type')
|
||||
identification_number = fields.Char(related="partner_id.identification_number", string='Identification NUmber')
|
||||
identification_issue_date = fields.Date(related="partner_id.identification_issue_date",
|
||||
|
|
|
|||
Loading…
Reference in New Issue