Update rental_contract.py

This commit is contained in:
zainab2097 2024-08-18 14:37:28 +03:00 committed by GitHub
parent c3e3c19aeb
commit 3af5e83b5e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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",