Update property_management_conf.py

This commit is contained in:
zainab2097 2024-09-02 11:38:40 +03:00 committed by GitHub
parent 634aa732f4
commit 5a2430a9fc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 9 additions and 0 deletions

View File

@ -3,6 +3,15 @@
from odoo import models, fields, api, exceptions, tools, _
class ResConfigSettings(models.TransientModel):
_inherit = 'res.config.settings'
# Add new fields
commission_percentage = fields.Float(string='Commission Percentage', help="The commission percentage.")
commission_account_id = fields.Many2one('account.account', string='Commission Account', help="The account used to record commissions.")
collecting_company_id = fields.Many2one('res.partner', string='Collecting Company', help="The company responsible for collecting the commission.")
class RentType(models.Model):
_name = 'rent.type'