mirror of
https://github.com/bringout/odoomates.git
synced 2026-04-18 01:32:03 +02:00
Exclude cancelled entries from General/Partner Ledger views
The ledger action domains only filtered display types but relied on
a removable search_default_posted filter to exclude cancelled moves.
Added parent_state != cancel to the hard domain so cancelled entries
never appear regardless of active search filters.
🤖 assisted by claude
This commit is contained in:
parent
156eee6617
commit
6be693d7af
2 changed files with 3 additions and 3 deletions
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
{
|
||||
'name': 'Odoo 16 Accounting Financial Reports',
|
||||
'version': '16.0.2.0.4',
|
||||
'version': '16.0.2.0.5',
|
||||
'category': 'Invoicing Management',
|
||||
'description': 'Accounting Reports For Odoo 16, Accounting Financial Reports, '
|
||||
'Odoo 16 Financial Reports',
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
<field name="context">{'journal_type':'general', 'search_default_group_by_account': 1, 'search_default_posted':1}</field>
|
||||
<field name="name">General Ledger</field>
|
||||
<field name="res_model">account.move.line</field>
|
||||
<field name="domain">[('display_type', 'not in', ('line_section', 'line_note'))]</field>
|
||||
<field name="domain">[('display_type', 'not in', ('line_section', 'line_note')), ('parent_state', '!=', 'cancel')]</field>
|
||||
<field name="view_id" ref="account.view_move_line_tree_grouped_general"/>
|
||||
<field name="search_view_id" ref="account.view_account_move_line_filter"/>
|
||||
<field name="view_mode">tree,pivot,graph</field>
|
||||
|
|
@ -16,7 +16,7 @@
|
|||
<field name="context">{'journal_type':'general', 'search_default_group_by_partner': 1, 'search_default_posted':1, 'search_default_payable':1, 'search_default_receivable':1, 'search_default_unreconciled':1}</field>
|
||||
<field name="name">Partner Ledger</field>
|
||||
<field name="res_model">account.move.line</field>
|
||||
<field name="domain">[('display_type', 'not in', ('line_section', 'line_note'))]</field>
|
||||
<field name="domain">[('display_type', 'not in', ('line_section', 'line_note')), ('parent_state', '!=', 'cancel')]</field>
|
||||
<field name="view_id" ref="account.view_move_line_tree_grouped_partner"/>
|
||||
<field name="search_view_id" ref="account.view_account_move_line_filter"/>
|
||||
<field name="view_mode">tree,pivot,graph</field>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue