Update rent_payment.py
This commit is contained in:
parent
fa8173555b
commit
aab0bd2b4d
|
|
@ -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 ')
|
||||
|
|
|
|||
Loading…
Reference in New Issue