[16.0] [MIG] l10n_it_website_portal_fiscal_code#3338
Conversation
|
/ocabot rebase |
|
@tafaRU The rebase process failed, because command |
ca57bde to
c2df466
Compare
|
Fatto il rebase a mano |
SirAionTech
left a comment
There was a problem hiding this comment.
Grazie della PR!
Potresti modificare la storia dei commit come indicato in https://github.com/OCA/maintainer-tools/wiki/Merge-commits-in-pull-requests?
| error, error_message = super( | ||
| WebsitePortalFiscalCode, self | ||
| ).details_form_validate(data) | ||
| ).details_form_validate(data, partner_creation) |
There was a problem hiding this comment.
È possibile passare l'argomento con partner_creation=partner_creation?
Altrimenti, se qualche altro modulo dovesse modificare l'ordine dei kwarg non verrebbero assegnati i parametri corretti.
| for="fiscalcode" | ||
| >Fiscal Code</label> | ||
| <input | ||
| type="text" |
There was a problem hiding this comment.
Più sotto negli attributi t-att* si usano logiche copiate da come era fatto il template in 14.0, queste sono però state corrette in 16.0 (vedi odoo/odoo@beb50e8); è possibile riportare le correzioni anche in questa migrazione?
guidgaro
left a comment
There was a problem hiding this comment.
Ho testato il modulo e funziona correttamente.
|
/ocabot rebase |
|
@eLBati The rebase process failed, because command |
|
@renda-dev o @PicchiSeba riuscite voi? |
c2df466 to
1f60375
Compare
|
@francesco-ooops proviamo adesso |
|
/ocabot rebase |
|
@TheMule71 The rebase process failed, because command |
|
Devo sentire l'amministratore del nostro fork. Vi taggo non appena sblocchiamo la situazione |
FrancescoBallerini
left a comment
There was a problem hiding this comment.
Functional : LGTM
| > | ||
| <label | ||
| class="col-form-label label-optional" | ||
| for="vat" |
There was a problem hiding this comment.
Per consistenza con gli altri campi, sarei per mantenere readonly invece che disabled
There was a problem hiding this comment.
ti chiedevo di modificarla perché coerente con la vista
https://github.com/odoo/odoo/blob/16.0/addons/portal/views/portal_templates.xml#L404
che stai facendo modificando
è solo un osservazione per me va bene anche così
There was a problem hiding this comment.
done!
puoi controllare vedo ancora if partner.partner.can_edit_vat() else invece che if partner_can_edit_vat else
There was a problem hiding this comment.
Lo sapevate che se non salvi il file, poi sul file non vengono scritte le modifiche? Sapevatelo.
1f60375 to
bb7fd1b
Compare
andreampiovesana
left a comment
There was a problem hiding this comment.
LGTM - functional review
|
Metto in draft per non avere merge preventivi, visto che ho ricevuto un sacco di approvazioni, ma vorrei guardare quello che hanno suggerito @Borruso e @SirAionTech . Spero di avere tempo oggi. |
bb7fd1b to
eda96a9
Compare
Steps: - Create a partner (type company) and give them portal access - With the new user, access to portal - Edit partner details setting fiscal code with 11 digits - Using admin, create an invoice for that partner and validate - Using the new user, access to portal, open partner details and save Get "The fiscal code doesn't seem to be correct"
Currently translated at 100.0% (2 of 2 strings) Translation: l10n-italy-12.0/l10n-italy-12.0-l10n_it_website_portal_fiscalcode Translate-URL: https://translation.odoo-community.org/projects/l10n-italy-12-0/l10n-italy-12-0-l10n_it_website_portal_fiscalcode/it/
eda96a9 to
22f3f7f
Compare
|
Done |
SirAionTech
left a comment
There was a problem hiding this comment.
Vedo che hai incluso 9a879d9 nel commit di migrazione, sarebbe stato da mantenere nella history come gli altri commit di 14.0, riesci a correggere?
Altrimenti ci sarebbe almeno da chiedere all'autore @FrancescoBallerini se va bene così
| def details_form_validate(self, data, partner_creation=False): | ||
| error, error_message = super( | ||
| WebsitePortalFiscalCode, self | ||
| ).details_form_validate(data, partner_creattion=partner_creation) |
There was a problem hiding this comment.
| ).details_form_validate(data, partner_creattion=partner_creation) | |
| ).details_form_validate(data, partner_creation=partner_creation) |
There was a problem hiding this comment.
È preoccupante che i test passassero anche con questo typo
Non sono certo di come funzioni il mantenimento della commit history per le migrazioni, tuttavia sono abbastanza sicuro che non servirà un "rollback" del commit vista l'entità della modifica, al di la di questo non so se possa creare altre problematiche.. ma per me non è un gran problema se decidete di includerla direttamente perdendo eventualmente il commit |
Non credo di averlo incluso, era una correzione che avevo rifatto io, non sapevo ci fosse la PR per la 14. Io sono partito prendendo #3025 così com'era. Comunque adesso per pulizia faccio cherry-pick |
22f3f7f to
263251c
Compare
In tal caso, se dovesse tornarti utile questa è la PR con il commit #3521 |
|
/ocabot merge nobump |
|
On my way to merge this fine PR! |
|
It looks like something changed on |
|
Congratulations, your PR was merged at 3763994. Thanks a lot for contributing to OCA. ❤️ |
Superseeds #3025