-
-
Notifications
You must be signed in to change notification settings - Fork 157
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
[12.0][IMP] - manage different report layouts by brand #16
[12.0][IMP] - manage different report layouts by brand #16
Conversation
789e8be
to
ad21b3f
Compare
a7d1cb8
to
f7ab106
Compare
FYI @gva-acsone |
8d56c54
to
a887006
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.
Looks good a few comments.
<xpath expr="//t[@t-if='not company']" position="after"> | ||
<t t-if="'brand_id' in o.fields_get() and o.brand_id and o.brand_id.external_report_layout_id" | ||
t-call="{{o.brand_id.external_report_layout_id.key}}"> | ||
<t t-set="company" t-value="o.brand_id.sudo()"/> |
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.
So yes, this is a little bit of a hack, but I think it's worth it for the sake of code simplicity.
Knowing that reports normally don't use this field and rely on the record company_id
field, this should not be an issue in practice, as explained in the README.
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.
Tried and tested.
I understand that @sbidoul is also OK to merge. |
Yes. /ocabot merge patch |
On my way to merge this fine PR! |
@sbidoul your merge command was aborted due to failed check(s), which you can inspect on this commit of 12.0-ocabot-merge-pr-16-by-sbidoul-bump-patch. After fixing the problem, you can re-issue a merge command. Please refrain from merging manually as it will most probably make the target branch red. |
Co-Authored-By: Stéphane Bidoul (ACSONE) <stephane.bidoul@acsone.eu>
595bed6
to
0a8b112
Compare
/ocabot merge patch |
What a great day to merge this nice PR. Let's do it! |
Congratulations, your PR was merged at 9e1eb1f. Thanks a lot for contributing to OCA. ❤️ |
Fixes #758
Manage different report layouts by brand: