Skip to content
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

[16.0][FIX] spreadsheet_oca: Show the "Add" button in invoice list #46

Merged
merged 1 commit into from
Sep 19, 2024

Conversation

CarlosRoca13
Copy link
Contributor

If this files aren't charged just after the main file if some module that is charged before spreadsheet_oca makes a primary template, the button will not be shown.

Exmple:
image

cc @Tecnativa TT50815

ping @pedrobaeza @chienandalu

@CarlosRoca13 CarlosRoca13 changed the title [IMP] spreadsheet_oca: Extension views on separate files and added just after file [16.0][IMP] spreadsheet_oca: Extension views on separate files and added just after file Sep 16, 2024
@CarlosRoca13 CarlosRoca13 force-pushed the 16.0-IMP-spreadsheet_oca-assets branch from 472cf22 to b0847b4 Compare September 16, 2024 13:57
@pedrobaeza pedrobaeza added this to the 16.0 milestone Sep 16, 2024
@pedrobaeza
Copy link
Member

Tested an working. The only comment is about the commit message. It's a FIX instead of an IMP, as there's something not working, and the first line should express what is fixing:

[FIX] spreadsheet_oca: Show the "Add" button in invoice list

If any module males a primary template from the ones where the button is added, the button wasn't be shown previously.

That's because the inheritance and load order works in OWL. The way to fix this is to make this load order deterministic specifying to be loaded after the corresponding template for being taken into account for primary views. This also required to split the templates file into several ones.

If any module males a primary template from the ones where the button is
added, the button wasn't be shown previously.

That's because the inheritance and load order works in OWL. The way to
fix this is to make this load order deterministic specifying to be
loaded after the corresponding template for being taken into account for
primary views. This also required to split the templates file into
several ones.
@CarlosRoca13 CarlosRoca13 force-pushed the 16.0-IMP-spreadsheet_oca-assets branch from b0847b4 to bf32eda Compare September 17, 2024 05:39
@CarlosRoca13 CarlosRoca13 changed the title [16.0][IMP] spreadsheet_oca: Extension views on separate files and added just after file [16.0][FIX] spreadsheet_oca: Show the "Add" button in invoice list Sep 17, 2024
@CarlosRoca13
Copy link
Contributor Author

Change done @pedrobaeza

@pedrobaeza pedrobaeza requested a review from etobella September 17, 2024 05:53
Copy link
Member

@chienandalu chienandalu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested 👍

@pedrobaeza
Copy link
Member

/ocabot merge minor

@OCA-git-bot
Copy link
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 16.0-ocabot-merge-pr-46-by-pedrobaeza-bump-minor, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit f70bbed into OCA:16.0 Sep 19, 2024
7 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at ac4980b. Thanks a lot for contributing to OCA. ❤️

@pedrobaeza pedrobaeza deleted the 16.0-IMP-spreadsheet_oca-assets branch September 19, 2024 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants