-
-
Notifications
You must be signed in to change notification settings - Fork 320
[18.0][MIG] l10n_it_financial_statements_report: Migration to 18.0 #4789
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
Are you sure you want to change the base?
[18.0][MIG] l10n_it_financial_statements_report: Migration to 18.0 #4789
Conversation
e1793e5
to
04d7fb0
Compare
04d7fb0
to
78694fe
Compare
Ho introdotto con questa PR anche un metodo per il campo account_ids che sulla 18.0 restituisce "cannot be searchable" Issue OCA/account-financial-reporting#1306 |
addc917
to
2555cb4
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.
Grazie!
l10n_it_financial_statements_report/migrations/18.0.0.0.1/post-migrate.py
Outdated
Show resolved
Hide resolved
<t t-set="company" t-value="o.company_id" /> | ||
<link | ||
href="/account_financial_report/static/src/css/report.css" | ||
href="/l10n_it_financial_statements_report/static/src/css/report.css" |
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.
Come mai non usiamo più quello di account_financial_report
?
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.
il file scss di account_financial_report viene incluso solo nel bundle assets_backend , stampando il pdf non si renderizza correttamente in quanto non è nel bundle report_assets_common e per procedere comunque alla migrazione ho incluso questo report nel modulo
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.
Meglio continuare a usare i file scss di account_financial_report
invece di duplicare anche qui lo stesso file.
Per farlo funzionare hanno incluso i bundle del backend nel report nella migrazione OCA/account-financial-reporting@01f22b8:
<template id="account_financial_report.html_container">
<t t-call-assets="web.assets_backend" />
<t t-set="body_classname" t-value="'container'" />
Non dico che mi piaccia come soluzione, ma è meglio che copiare quello stesso file in questo modulo.
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.
Per il css avevo già provato a usare
<t t-call="account_financial_report.html_container">
ma non viene proprio stampato il bundle asset backend. Ho verificato proprio l'html generato che viene poi passato a wkhtml e c'è solo report asset bundle
Prova a fare come è stato fatto nel commit di migrazione che ti ho linkato:
- <link
- href="/account_financial_report/static/src/css/report_html.css"
- rel="stylesheet"
- />
+ <t t-call-assets="web.assets_backend" />
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.
@monen17 https://github.com/OCA/account-financial-reporting/pull/1366/files a quanto pare cambieranno tornando a com'era, effettivamente il css di financial_report rompe il css in giro per odoo
> | ||
<div> | ||
<!--invisible="[('not_only_one_unaffected_earnings_account', '=', False)]" --> | ||
|
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.
Non serve più?
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.
mia svista, ripristinato sia questo che gli altri. C'è il boolean nella nuova versione ma il valore è l'opposto dell'altro
l10n_it_financial_statements_report/wizard/wizard_financial_statements_report.xml
Outdated
Show resolved
Hide resolved
l10n_it_financial_statements_report/wizard/wizard_financial_statements_report.xml
Outdated
Show resolved
Hide resolved
l10n_it_financial_statements_report/wizard/wizard_financial_statements_report.xml
Outdated
Show resolved
Hide resolved
"account.account", compute="_compute_current_account_ids" | ||
) | ||
|
||
def _compute_current_account_ids(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.
Secondo me possiamo lasciare le modifiche in OCA/account-financial-reporting#1327 e far dipendere questa (#4789) da quella (OCA/account-financial-reporting#1327)
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.
Va bene, solo che non so quando verrà mergiata la PR su financial_report . Semmai una volta fatto il giro che tutto funziona, appena la mergiano punto a quel campo e tolgo da qui.
Alla fine la compute è la stessa , quindi funzionerà uguale la computazione dei conti
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.
@eLBati approvatela in 2-3 così costringiamo i maintainers a rispondere
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.
Secondo me possiamo lasciare le modifiche in OCA/account-financial-reporting#1327 e far dipendere questa (#4789) da quella (OCA/account-financial-reporting#1327)
Concordo
Va bene, solo che non so quando verrà mergiata la PR su financial_report . Semmai una volta fatto il giro che tutto funziona, appena la mergiano punto a quel campo e tolgo da qui. Alla fine la compute è la stessa , quindi funzionerà uguale la computazione dei conti
E se di là vengono fatte delle modifiche poi chi si ricorda di portarle di qua? E se anche qualcuno se lo ricordasse, poi ha voglia di farlo?
Meglio non duplicare il codice.
2555cb4
to
b33173d
Compare
/ocabot migration |
Hi @micheledic. Your command failed:
Ocabot commands
More information
|
/ocabot migration l10n_it_financial_statements_report |
Sorry @micheledic you are not allowed to mark the addon to be migrated. To do so you must either have push permissions on the repository, or be a declared maintainer of all modified addons. If you wish to adopt an addon and become it's maintainer, open a pull request to add your GitHub login to the |
@eLBati puoi tu ? |
/ocabot migration l10n_it_financial_statements_report |
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.
Grazie della PR!
Ci sono diverse cose che non mi tornano sul segno dei gruppi di conti ma sono uguali a com'è in 16.0
quindi non è questo il momento di cambiarle, anche se qui il codice viene proprio aggiunto e non migrato perché è stato rimosso da df6d0e5.
Puoi schiacciare i commit come descritto in https://github.com/OCA/maintainer-tools/wiki/Merge-commits-in-pull-requests#mergesquash-the-commits-generated-by-bots-or-weblate? Al momento diversi commit portati sono dei bot:

Potresti anche togliere [18.0]
dal commit di migrazione? Al momento è

Ma i commit dovrebbero seguire https://github.com/OCA/odoo-community.org/blob/master/website/Contribution/CONTRIBUTING.rst#71commit-message, quindi iniziare con un tag che in questo caso è [MIG]
.
Occhio anche al typo nel nome del modulo 😉
Ti consiglio di usare https://github.com/OCA/odoo-module-migrator che automatizza la creazione del commit e diversi passaggi per la migrazione.
l10n_it_financial_statements_report/migrations/18.0.0.0.1/post-migrate.py
Outdated
Show resolved
Hide resolved
"account.account", compute="_compute_current_account_ids" | ||
) | ||
|
||
def _compute_current_account_ids(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.
Secondo me possiamo lasciare le modifiche in OCA/account-financial-reporting#1327 e far dipendere questa (#4789) da quella (OCA/account-financial-reporting#1327)
Concordo
Va bene, solo che non so quando verrà mergiata la PR su financial_report . Semmai una volta fatto il giro che tutto funziona, appena la mergiano punto a quel campo e tolgo da qui. Alla fine la compute è la stessa , quindi funzionerà uguale la computazione dei conti
E se di là vengono fatte delle modifiche poi chi si ricorda di portarle di qua? E se anche qualcuno se lo ricordasse, poi ha voglia di farlo?
Meglio non duplicare il codice.
l10n_it_financial_statements_report/report/financial_statements_report_xlsx.py
Outdated
Show resolved
Hide resolved
<t t-set="company" t-value="o.company_id" /> | ||
<link | ||
href="/account_financial_report/static/src/css/report.css" | ||
href="/l10n_it_financial_statements_report/static/src/css/report.css" |
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.
Meglio continuare a usare i file scss di account_financial_report
invece di duplicare anche qui lo stesso file.
Per farlo funzionare hanno incluso i bundle del backend nel report nella migrazione OCA/account-financial-reporting@01f22b8:
<template id="account_financial_report.html_container">
<t t-call-assets="web.assets_backend" />
<t t-set="body_classname" t-value="'container'" />
Non dico che mi piaccia come soluzione, ma è meglio che copiare quello stesso file in questo modulo.
l10n_it_financial_statements_report/wizard/wizard_financial_statements_report.xml
Outdated
Show resolved
Hide resolved
l10n_it_financial_statements_report/wizard/wizard_financial_statements_report.xml
Outdated
Show resolved
Hide resolved
l10n_it_financial_statements_report/wizard/wizard_financial_statements_report.xml
Outdated
Show resolved
Hide resolved
l10n_it_financial_statements_report/wizard/wizard_financial_statements_report.xml
Outdated
Show resolved
Hide resolved
1bdeda0
to
39c908e
Compare
@monen17 ho squashato i commit del bot, fixato nome commit e alcuni attributi, aggiunto anche test-requirementst.txt per far dipendere dalla PR fix di account_financial_report (è corretto fare così giusto? ma non viene proprio stampato il bundle asset backend. |
39c908e
to
81ff7a5
Compare
@OCA/local-italy-maintainers rimosso i test-requirements in quanto hanno mergiato il fix, ora è ok |
Potrebbe essere un bug di account_financial_report e non di financial_report(l'ennesimo bug). ![]() Potrei occuparmene io di fixarlo, ma a questo punto ritengo non sia più un bug che blocchi la migrazione di financial statements, visto che è da fixare sul modulo da cui dipende. |
OCA/account-financial-reporting#1387 Aperta PR per fix del problema di cui sopra |
Balance is too generic, Financial statements is what this module is producing
Currently translated at 100.0% (74 of 74 strings) Translation: l10n-italy-14.0/l10n-italy-14.0-l10n_it_financial_statements_report Translate-URL: https://translation.odoo-community.org/projects/l10n-italy-14-0/l10n-italy-14-0-l10n_it_financial_statements_report/it/
Currently translated at 100.0% (70 of 70 strings) Translation: l10n-italy-16.0/l10n-italy-16.0-l10n_it_financial_statements_report Translate-URL: https://translation.odoo-community.org/projects/l10n-italy-16-0/l10n-italy-16-0-l10n_it_financial_statements_report/it/
Report XLSX: the syntax "if isinstance(value, int | float)" can be used on Python 3.10 and above versions. 16.0 code should be compatible with Python>=3.7 tho.
Currently translated at 100.0% (70 of 70 strings) Translation: l10n-italy-16.0/l10n-italy-16.0-l10n_it_financial_statements_report Translate-URL: https://translation.odoo-community.org/projects/l10n-italy-16-0/l10n-italy-16-0-l10n_it_financial_statements_report/it/
Currently translated at 100.0% (70 of 70 strings) Translation: l10n-italy-16.0/l10n-italy-16.0-l10n_it_financial_statements_report Translate-URL: https://translation.odoo-community.org/projects/l10n-italy-16-0/l10n-italy-16-0-l10n_it_financial_statements_report/it/
Currently translated at 100.0% (70 of 70 strings) Translation: l10n-italy-16.0/l10n-italy-16.0-l10n_it_financial_statements_report Translate-URL: https://translation.odoo-community.org/projects/l10n-italy-16-0/l10n-italy-16-0-l10n_it_financial_statements_report/it/
Currently translated at 100.0% (71 of 71 strings) Translation: l10n-italy-16.0/l10n-italy-16.0-l10n_it_financial_statements_report Translate-URL: https://translation.odoo-community.org/projects/l10n-italy-16-0/l10n-italy-16-0-l10n_it_financial_statements_report/it/
389b5d6
to
22f0280
Compare
@mrcast potresti riprovare ora? fix su financial_report mergiato @OCA/local-italy-developers ora dovrebbe essere tutto ok |
22f0280
to
585833a
Compare
Ciao, financial_statements_report si basa su account_financial_report, i dati li prende dal wizard di financial_report e quindi ne eredita anche le logiche |
No description provided.