Skip to content

Commit

Permalink
Merge PR #1035 into 14.0
Browse files Browse the repository at this point in the history
Signed-off-by aleuffre
  • Loading branch information
OCA-git-bot committed Jan 15, 2024
2 parents 0578d31 + 7092694 commit f2649c3
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions subscription_oca/views/sale_subscription_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -370,12 +370,63 @@
<field name="model">sale.subscription</field>
<field name="arch" type="xml">
<search>
<field name="name" />
<field name="to_renew" />
<field name="description" />
<field name="journal_id" />
<field name="partner_id" />
<field name="pricelist_id" />
<field name="sale_order_id" />
<separator />
<filter
string="Pending subscriptions"
name="pendingsubs"
domain="[('to_renew','=', True)]"
/>
<filter
name="not_finished"
string="In progress"
domain="[
'|',
('date', '&gt;=', context_today().strftime('%Y-%m-%d')),
'&amp;',
('date', '=', False),
('recurring_next_date', '!=', False)
]"
/>
<filter
name="finished"
string="Finished"
domain="[
('date', '&lt;', context_today().strftime('%Y-%m-%d')),
('recurring_next_date', '=', False)
]"
/>
<filter
string="Archived"
domain="[('active', '=', False)]"
name="inactive"
/>
<group expand="0" string="Group By...">
<filter
name="group_by_partner"
string="Partner"
domain="[]"
context="{'group_by': 'partner_id'}"
/>
<filter
name="group_by_next_invoice"
string="Next Invoice"
domain="[('recurring_next_date', '!=', False)]"
context="{'group_by':'recurring_next_date'}"
/>
<filter
name="group_by_date"
string="Date"
domain="[]"
context="{'group_by':'date'}"
/>
</group>
</search>
</field>
</record>
Expand Down

0 comments on commit f2649c3

Please sign in to comment.