[UPD] odex_takaful
This commit is contained in:
parent
ed6407c65e
commit
ecb5b79ef0
|
|
@ -45,11 +45,11 @@ class EsterdadWizard(models.Model):
|
||||||
for rec in self:
|
for rec in self:
|
||||||
refund_hour_limit = self.env['ir.config_parameter'].sudo().get_param('odex_takaful.cancel_refund', default=0)
|
refund_hour_limit = self.env['ir.config_parameter'].sudo().get_param('odex_takaful.cancel_refund', default=0)
|
||||||
limit_refund_date_time = fields.Datetime.now() - timedelta(hours=int(refund_hour_limit))
|
limit_refund_date_time = fields.Datetime.now() - timedelta(hours=int(refund_hour_limit))
|
||||||
rec.allowed_journal_entry_ids = rec.sponsor_id.journal_entry_ids.ids
|
# rec.allowed_journal_entry_ids = rec.sponsor_id.journal_entry_ids.ids
|
||||||
# rec.allowed_journal_entry_ids = rec.sponsor_id.journal_entry_ids.filtered(lambda r:
|
rec.allowed_journal_entry_ids = rec.sponsor_id.journal_entry_ids.filtered(lambda r:
|
||||||
# r.move_type == 'out_invoice' and\
|
r.move_type == 'out_invoice' and\
|
||||||
# r.payment_state == 'paid' and\
|
r.payment_state == 'paid' and\
|
||||||
# r.create_date >= limit_refund_date_time).ids
|
r.create_date >= limit_refund_date_time).ids
|
||||||
|
|
||||||
@api.depends('journal_entry_ids')
|
@api.depends('journal_entry_ids')
|
||||||
def _compute_payment_ids(self):
|
def _compute_payment_ids(self):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue