diff --git a/base_accounting_kit/__manifest__.py b/base_accounting_kit/__manifest__.py index af4d8408b..c19d184dc 100644 --- a/base_accounting_kit/__manifest__.py +++ b/base_accounting_kit/__manifest__.py @@ -22,7 +22,7 @@ { 'name': 'Odoo 16 Full Accounting Kit', - 'version': '16.0.2.0.9', + 'version': '16.0.2.0.10', 'category': 'Accounting', 'live_test_url': 'https://www.youtube.com/watch?v=peAp2Tx_XIs', 'summary': """ Asset and Budget Management, diff --git a/base_accounting_kit/doc/RELEASE_NOTES.md b/base_accounting_kit/doc/RELEASE_NOTES.md index 0ae52fc8b..8b8049978 100644 --- a/base_accounting_kit/doc/RELEASE_NOTES.md +++ b/base_accounting_kit/doc/RELEASE_NOTES.md @@ -1,31 +1,57 @@ ## Module #### 14.10.2022 + #### Version 16.0.1.0.0 + #### ADD + - Initial commit for Odoo 16 accounting #### 08.03.2023 + #### Version 16.0.2.0.0 + #### IMP + - Added Anglo Saxon Accounting Feature #### 09.06.2023 + #### Version 16.0.2.0.3 + #### UPDT + - Bug Fix #### 15.06.2023 + #### Version 16.0.2.0.4 + #### UPDT + - Bug Fix #### 11.07.2023 + #### Version 16.0.2.0.5 + #### UPDT + - Cash journal Bug Fix #### 17.08.2023 + #### Version 16.0.2.0.7 + #### UPDT -- Asset type Bug Fix \ No newline at end of file + +- Asset type Bug Fix + +### 02.11.2023 + +### Version 16.0.2.0.10 + +### UPDT + +- Payment Register Bank and Cheque References Bug Fix \ No newline at end of file diff --git a/base_accounting_kit/models/account_payment.py b/base_accounting_kit/models/account_payment.py index 534b72dcf..bf2d88bd4 100644 --- a/base_accounting_kit/models/account_payment.py +++ b/base_accounting_kit/models/account_payment.py @@ -76,6 +76,16 @@ class AccountRegisterPayments(models.TransientModel): }) 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): _inherit = "account.payment" @@ -115,9 +125,9 @@ class AccountPayment(models.Model): # Since this method can be called via a client_action_multi, we # need to make sure the received records are what we expect selfs = self.filtered(lambda r: - r.payment_method_id.code - in ['check_printing', 'pdc'] - and r.state != 'reconciled') + r.payment_method_id.code + in ['check_printing', 'pdc'] + and r.state != 'reconciled') if len(selfs) == 0: raise UserError(_( "Payments to print as a checks must have 'Check' " @@ -175,6 +185,7 @@ class AccountPayment(models.Model): def unmark_as_sent(self): self.write({'is_move_sent': False}) + class AccountPaymentMethod(models.Model): _inherit = "account.payment.method"