Browse Source

Sep 15 [FIX] : Bug Fixed 'base_accounting_kit'

pull/278/head
AjmalCybro 2 years ago
parent
commit
67ae0848bb
  1. 2
      base_accounting_kit/__manifest__.py
  2. 23
      base_accounting_kit/models/account_payment.py

2
base_accounting_kit/__manifest__.py

@ -22,7 +22,7 @@
{
'name': 'Odoo 16 Full Accounting Kit',
'version': '16.0.2.0.8',
'version': '16.0.2.0.9',
'category': 'Accounting',
'live_test_url': 'https://www.youtube.com/watch?v=peAp2Tx_XIs',
'summary': """ Asset and Budget Management,

23
base_accounting_kit/models/account_payment.py

@ -52,6 +52,29 @@ class AccountRegisterPayments(models.TransientModel):
})
return res
def _create_payment_vals_from_wizard(self, batch_result):
res = super(AccountRegisterPayments,
self)._create_payment_vals_from_wizard(
batch_result)
if self.effective_date:
res.update({
'bank_reference': self.bank_reference,
'cheque_reference': self.cheque_reference,
'effective_date': self.effective_date,
})
return res
def _create_payment_vals_from_batch(self, batch_result):
res = super(AccountRegisterPayments,
self)._create_payment_vals_from_batch(
batch_result)
if self.effective_date:
res.update({
'bank_reference': self.bank_reference,
'cheque_reference': self.cheque_reference,
'effective_date': self.effective_date,
})
return res
class AccountPayment(models.Model):

Loading…
Cancel
Save