Update rent_payment.py

This commit is contained in:
zainab2097 2024-09-03 12:07:50 +03:00 committed by GitHub
parent 25bac204a3
commit 380b1c641b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ class RentPayment(models.Model):
code = fields.Char(string="Sequence")
collected_from_company = fields.Boolean(string="Is Payment Collected from Company")
commission_amount = fields.Monetary(string="Commission Amount",store=True,compute='_compute_commission_amount')
commission_amount = fields.Float(string="Commission Amount",store=True,compute='_compute_commission_amount')
name = fields.Char(string="Description")
contract_id = fields.Many2one('rental.contract', string="Rental Contract")
renter_id = fields.Many2one('res.partner',string="Renter",related='contract_id.partner_id',readonly=1)