Update rent_payment.py

This commit is contained in:
zainab2097 2024-09-03 12:59:34 +03:00 committed by GitHub
parent fa8173555b
commit aab0bd2b4d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -203,7 +203,7 @@ class RentPayment(models.Model):
active_ids = self._context.get('active_ids', [])
# action = self.env['rent.payment'].browse(context.get('active_ids', []))
# payments_to_invoice = action.filtered(lambda p: p.state == 'paid' and p.collected_from_company and not p.invoice_commission_id)
payments_to_invoice = self.env['rent.payment'].browse(active_ids).filtered(
payments_to_invoice = self.env['rent.payment'].browse(active_ids).filtered(
lambda p: p.state == 'paid' and p.collected_from_company and not p.invoice_commission_id)
vendor_id = self.env['ir.config_parameter'].get_param('property_management.collecting_company_id')
account_id = self.env['ir.config_parameter'].get_param('property_management.commission_account_id ')