Browse Source

Nov 3 : [FIX] Bug Fixed 'base_accounting_kit'

pull/295/head
AjmalCybro 2 years ago
parent
commit
761d00f052
  1. 2
      base_accounting_kit/__manifest__.py
  2. 28
      base_accounting_kit/doc/RELEASE_NOTES.md
  3. 17
      base_accounting_kit/models/account_payment.py

2
base_accounting_kit/__manifest__.py

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

28
base_accounting_kit/doc/RELEASE_NOTES.md

@ -1,31 +1,57 @@
## Module <base_accounting_kit> ## Module <base_accounting_kit>
#### 14.10.2022 #### 14.10.2022
#### Version 16.0.1.0.0 #### Version 16.0.1.0.0
#### ADD #### ADD
- Initial commit for Odoo 16 accounting - Initial commit for Odoo 16 accounting
#### 08.03.2023 #### 08.03.2023
#### Version 16.0.2.0.0 #### Version 16.0.2.0.0
#### IMP #### IMP
- Added Anglo Saxon Accounting Feature - Added Anglo Saxon Accounting Feature
#### 09.06.2023 #### 09.06.2023
#### Version 16.0.2.0.3 #### Version 16.0.2.0.3
#### UPDT #### UPDT
- Bug Fix - Bug Fix
#### 15.06.2023 #### 15.06.2023
#### Version 16.0.2.0.4 #### Version 16.0.2.0.4
#### UPDT #### UPDT
- Bug Fix - Bug Fix
#### 11.07.2023 #### 11.07.2023
#### Version 16.0.2.0.5 #### Version 16.0.2.0.5
#### UPDT #### UPDT
- Cash journal Bug Fix - Cash journal Bug Fix
#### 17.08.2023 #### 17.08.2023
#### Version 16.0.2.0.7 #### Version 16.0.2.0.7
#### UPDT #### UPDT
- Asset type Bug Fix
- Asset type Bug Fix
### 02.11.2023
### Version 16.0.2.0.10
### UPDT
- Payment Register Bank and Cheque References Bug Fix

17
base_accounting_kit/models/account_payment.py

@ -76,6 +76,16 @@ class AccountRegisterPayments(models.TransientModel):
}) })
return res return res
def _create_payments(self):
payments = super(AccountRegisterPayments, self)._create_payments()
for payment in payments:
payment.write({
'bank_reference': self.bank_reference,
'cheque_reference': self.cheque_reference
})
return payments
class AccountPayment(models.Model): class AccountPayment(models.Model):
_inherit = "account.payment" _inherit = "account.payment"
@ -115,9 +125,9 @@ class AccountPayment(models.Model):
# Since this method can be called via a client_action_multi, we # Since this method can be called via a client_action_multi, we
# need to make sure the received records are what we expect # need to make sure the received records are what we expect
selfs = self.filtered(lambda r: selfs = self.filtered(lambda r:
r.payment_method_id.code r.payment_method_id.code
in ['check_printing', 'pdc'] in ['check_printing', 'pdc']
and r.state != 'reconciled') and r.state != 'reconciled')
if len(selfs) == 0: if len(selfs) == 0:
raise UserError(_( raise UserError(_(
"Payments to print as a checks must have 'Check' " "Payments to print as a checks must have 'Check' "
@ -175,6 +185,7 @@ class AccountPayment(models.Model):
def unmark_as_sent(self): def unmark_as_sent(self):
self.write({'is_move_sent': False}) self.write({'is_move_sent': False})
class AccountPaymentMethod(models.Model): class AccountPaymentMethod(models.Model):
_inherit = "account.payment.method" _inherit = "account.payment.method"

Loading…
Cancel
Save