-
-
Notifications
You must be signed in to change notification settings - Fork 766
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
[IMP][14.0]account_loan: add loan lines menu item #1730
Conversation
b190d7f
to
3a19a8c
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.
Functional review LGTM 👍
a1eeb27
to
ae10a41
Compare
df92808
to
adc87c7
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.
Functional ok!
Added loan items menu with pivot and graph for loan analysis.
@AaronHForgeFlow since I saw you recently merged the v16 migration, is this ok? we can then forward-port it. |
For me it is fine. WDYT @etobella ? |
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.
I like the idea. Can you do something like this https://github.com/odoo/odoo/blob/14.0/addons/account/views/account_move_views.xml#L201-L207 in order to improve even more the view 😄
Hi @etobella , what is it that you suggest to change functionally? AFAICS it's not currently possible to edit loan items from loan form |
No, no, I just wanted to add an access to the loan 😄 |
adc87c7
to
7a56e8b
Compare
Now, clicking on the loan name it will open loan form view. |
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.
I was not talking about this. I was looking for something like this:
This would add an edit button to access the loan when grouping by loan 😄
<field name="short_term_loan_account_id" optional="hide" /> | ||
<field name="long_term_loan_account_id" optional="hide" /> | ||
<field name="interest_expenses_account_id" optional="hide" /> | ||
</tree> |
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.
</tree> | |
<groupby name="loan_id"> | |
<button name="edit" type="edit" icon="fa-edit" title="Edit"/> | |
</groupby> | |
</tree> |
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.
Thanks for the advices. Now it shown the edit button when grouping.
<field name="name">account.loan.lines.view</field> | ||
<field name="model">account.loan.line</field> | ||
<field name="arch" type="xml"> | ||
<tree create="0" import="0" editable="bottom"> |
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.
Do not add this. It might be a problem to edit the information
7a56e8b
to
32fb458
Compare
32fb458
to
0dc48fc
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.
/ocabot merge patch
Can you port it to 16? Module has not been migrated to 15
What a great day to merge this nice PR. Let's do it! |
Congratulations, your PR was merged at 789f3d5. Thanks a lot for contributing to OCA. ❤️ |
No description provided.