-
Notifications
You must be signed in to change notification settings - Fork 117
[IMP] l10n_cl: copy of invoice for yielding #4881
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] l10n_cl: copy of invoice for yielding #4881
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. |
Creating a copy of the invoices with an additional information box task-5231290
555b6ae to
da533c9
Compare
malb-odoo
left a comment
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 pr ! Few comments 😄
| </tr> | ||
| </template> | ||
|
|
||
| <template id="report_invoice_document_copy" inherit_id="l10n_cl.report_invoice_document"> |
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.
This should be in enterprise 😉
We can dooo wayyy better with bootstrap, let's take a course ahah
|
|
||
| <template id="report_invoice_document_copy" inherit_id="l10n_cl.report_invoice_document"> | ||
| <xpath expr="//div[@id='right-elements']" position="inside"> | ||
| <div t-if="show_information_box" name="custom_info_box" class="col-12 mt-3 p-3 border border-primary rounded"> |
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.
Seems a bit IA generated that ahah, don't rely too much on that ahah. IA is a tool that you can use but do not trust everything he say 😄
Missing a condition on the partner use don't you think ? Do we really want that for all customers ?
| <div class="row mb-2"> | ||
| <div class="col-12 d-flex align-items-baseline"> | ||
| <span class="small me-2 text-nowrap">Nombre: </span> | ||
| <div class="border-bottom pb-1 flex-grow-1" stylr="min-height: 1.2rem;"/> |
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 suppose you meant style ?
Style should be avoided at all cost for multiple reason:
- Difficult to maintain, using class we can actually modify the class for everything in the code to have consistency, here you cannot
- Readability: here you have just one styling so ok but you can have a lot and it will become a nightmare
- Priority: let's say we have a min height in one of the class, the styling will take priority on everything, which you could lead to problematic behavior
| la letra b) del Art. 4° y la letra c) del Art. 5° de la Ley 19.983, acredita que | ||
| la entrega de mercaderia(s) o servicio(s) | ||
| </p> | ||
| </div> |
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.
What you could do is having the first div just to have the basic space if we follow what has been done in the base template it would be. I will let you check what is an offset 😄
<div t-if="..." name="..." class="col-4 offset-8">
now either you do multiple row and you add the border like you have you could do one big row (that was the chosen solution but i think both are fine) just multiple row will need a bit more code.
I see that you use d-flex which is nice, i would advice reading about it because you will definitely use it later in your odoo career !
| El acuse de recibo que se declara en este acto, de acuerdo a lo dispuesto en | ||
| la letra b) del Art. 4° y la letra c) del Art. 5° de la Ley 19.983, acredita que | ||
| la entrega de mercaderia(s) o servicio(s) |
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.
We try to never add text in another language than English here, that's why we use translation ! Let's export the pot and po files and do the translation 😄
Creating a copy of the invoices with an additional information box
task-5231290