Odoo 17 Journal Entry Customization
Budget: $30 – $250 AUD
I'm looking for someone who can provide a way of overriding the method that determines which accounts are used for the journal entry created by a customer payment when a certain condition is true. I already have the module created, I just need help with writing the method.
By default in Odoo 17, when creating a customer payment, the related journal entry is comprised of a debit to the bank account that is set on account.journal and a credit to the receivable account that is set on res.partner.
I'm happy with the default behaviour most of the time, but I want to override those defaults under certain circumstances.
In my module, I have inherited account.payment and added a custom boolean field (trust_account_deposit).
I have also inherited account.account and added two custom boolean fields - trust_bank_account and trust_receivable_account. I have added constraints so that only one account can be 'trust_bank_account' and only one can be 'trust_receivable_account', and the same account can't be both - it's either one, or the other, or neither.
So far everything is working fine...I just need the override method so that a customer payment with trust_account_deposit set to true, generates a journal entry that debits the account marked 'trust_bank_account' and credits the account marked 'trust_account_receivable'.
I will provide you with the module I have so far.
By default in Odoo 17, when creating a customer payment, the related journal entry is comprised of a debit to the bank account that is set on account.journal and a credit to the receivable account that is set on res.partner.
I'm happy with the default behaviour most of the time, but I want to override those defaults under certain circumstances.
In my module, I have inherited account.payment and added a custom boolean field (trust_account_deposit).
I have also inherited account.account and added two custom boolean fields - trust_bank_account and trust_receivable_account. I have added constraints so that only one account can be 'trust_bank_account' and only one can be 'trust_receivable_account', and the same account can't be both - it's either one, or the other, or neither.
So far everything is working fine...I just need the override method so that a customer payment with trust_account_deposit set to true, generates a journal entry that debits the account marked 'trust_bank_account' and credits the account marked 'trust_account_receivable'.
I will provide you with the module I have so far.