[imp] point_of_sale: payment journal filter
Before this commit, payment journal "Available in PoS" should not ticked by default if created from PoS. And if I remove the filter "Available in PoS", I should not see all payments methods. Now, payment journal "Available in PoS" is ticked by default if created from PoS. And if I remove the filter "Available in PoS", I should see all payment methods. closes odoo/odoo#30748 Signed-off-by: Quentin Lejeune (qle) <qle@odoo.com>
This commit is contained in:
committed by
Gert Pellin
parent
c1dbc3f5ab
commit
ab4f5b1ff3
@@ -41,8 +41,7 @@
|
||||
<field name="res_model">account.journal</field>
|
||||
<field name="view_mode">tree,form,kanban</field>
|
||||
<field name="search_view_id" ref="view_account_journal_search_inherit_point_of_sale"/>
|
||||
<field name="domain">[('journal_user', '=', True ), ('type', 'in', ['bank', 'cash'])]</field>
|
||||
<field name="context">{'search_default_available_in_pos': 1, 'default_type': 'cash'}</field>
|
||||
<field name="context">{'search_default_available_in_pos': True, 'default_journal_user': True, 'default_type': 'cash'}</field>
|
||||
</record>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user