payment
This commit is contained in:
parent
e922ef35ad
commit
89dd545952
|
|
@ -207,7 +207,7 @@ class RentPayment(models.Model):
|
|||
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 = int(self.env['ir.config_parameter'].sudo().get_param('property_management.collecting_company_id'))
|
||||
account_id = int(self.env['ir.config_parameter'].sudo().get_param('property_management.commission_account_id '))
|
||||
account_id = int(self.env['ir.config_parameter'].sudo().get_param('property_management.commission_account_id'))
|
||||
total_commission_amount = sum(payments_to_invoice.mapped('commission_amount'))
|
||||
today_date = datetime.today().strftime('%Y-%m-%d')
|
||||
name = (_('Commission for selected payments'))
|
||||
|
|
|
|||
Loading…
Reference in New Issue