Hi All,
Right now we can see journal items when we click on more button in particular account(account.account ) ,same way i want to go journal entries based on the account type what we posted in journal entries. ....
like this I created ====> https://prnt.sc/gmw6t5
https://prnt.sc/gmw73c
But its not filtering as per my account type
this is my updated code........
class account_account(models.Model):
_inherit = 'account.account'
def view_jounral_entries(self):
return {
'name': 'Journal Entries',
'view_type': 'form',
'view_mode': 'tree',
'res_model': 'account.move',
'type': 'ir.actions.act_window'
}<record id="action_filter_account_move" model="ir.actions.server"><field name="sequence" eval="3"/>
<field name="state">code</field>
<field name="type">ir.actions.server</field>
<field name="model_id" ref="payment_receipt_invoice.model_account_account"/>
<field name="code">model.browse(context.get('active_ids')).view_jounral_entries()</field>
<field name="condition">True</field>
<field name="name">Jounral Entries</field>
</record>
<record id="value_id_name" model="ir.values">
<field name="name">Journal</field>
<field name="key">action</field>
<field name="model">account.account</field>
<field name="key2">client_action_multi</field>
<field name="value" eval="'ir.actions.server,%d'%action_filter_account_move"/>
</record>