-
Notifications
You must be signed in to change notification settings - Fork 117
[IMP] account: Allow searching on amount in move lines #4798
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 18.0-rd-accounting-onboarding-malb
Are you sure you want to change the base?
[IMP] account: Allow searching on amount in move lines #4798
Conversation
This PR targets the un-managed branch odoo-dev/odoo:18.0-rd-accounting-onboarding-malb, it needs to be retargeted before it can be merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one small nitpick
'|', '|', '|', | ||
('name', 'ilike', self), ('ref', 'ilike', self), ('account_id', 'ilike', self), ('partner_id', 'ilike', self)]"/> | ||
'|', '|', '|', '|', '|', '|', | ||
('debit', 'ilike', self), ('credit', 'ilike', self), ('balance', 'ilike', self), ('name', 'ilike', self), ('ref', 'ilike', self), ('account_id', 'ilike', self), ('partner_id', 'ilike', self)]"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to follow the functional need create a new filter call Amount 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@malb-odoo Done, thanks for the review!
ee83a4f
to
b97a185
Compare
@@ -305,6 +305,8 @@ | |||
<field name="name" string="Journal Item" filter_domain="[ | |||
'|', '|', '|', | |||
('name', 'ilike', self), ('ref', 'ilike', self), ('account_id', 'ilike', self), ('partner_id', 'ilike', self)]"/> | |||
<field name="debit" string="Amount" filter_domain="[ | |||
'|', '|', ('debit', 'ilike', self), ('credit', 'ilike', self), ('balance', 'ilike', self)]"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In fact no need to check the balance since the balance is just the sign version of the debit and credit, so
'|', '|', ('debit', 'ilike', self), ('credit', 'ilike', self), ('balance', 'ilike', self)]"/> | |
['|', ('debit', 'ilike', self), ('credit', 'ilike', self)]"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
1ca3ee3
to
597eef0
Compare
@@ -305,6 +305,8 @@ | |||
<field name="name" string="Journal Item" filter_domain="[ | |||
'|', '|', '|', | |||
('name', 'ilike', self), ('ref', 'ilike', self), ('account_id', 'ilike', self), ('partner_id', 'ilike', self)]"/> | |||
<field name="debit" string="Amount" filter_domain="[ | |||
'|', ('debit', 'ilike', self), ('credit', 'ilike', self)]"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In one line and it would be perfect but will not block for that it's not the point of the onboarding 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
This commit aims to add the ability for users to search on records with (debit, credit or balance) that matches the search keyword. task-4908897
597eef0
to
6d35198
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
noiiceeee
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all goood nice job! commit message is not perfect since you still mention the balance but i think it's not the point here
This commit aims to add the ability for users
to search on records with (debit, credit or balance) that matches the search keyword.
Task-4908897