-
-
Notifications
You must be signed in to change notification settings - Fork 305
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
[14.0][FIX] l10n_it_fatturapa_in multicompany wrong company #2352
[14.0][FIX] l10n_it_fatturapa_in multicompany wrong company #2352
Conversation
6c99b7b
to
cba3db8
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.
Revisione del codice.
Puoi correggere anche le occorrenze nei test? Ad esempio https://github.com/TheMule71/l10n-italy/blob/cba3db8e157fdbf4d977bbdff9f95c666a56c977/l10n_it_fatturapa_in/tests/test_import_fatturapa_xml.py#L210
Ci avevo guardato, ho deciso di non farlo perché lì prendiamo una company che funziona, nei test non è che dipendiamo da una scelta fatta dall'utente... |
Se come scrivevi in #2043 (comment) avere i valori nel contesto è la norma, allora penso sia da usare |
cba3db8
to
3c31d03
Compare
Cambiati anche i test. |
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.
Revisione del codice, per me è ok.
👍🏼 |
/ocabot merge patch |
On my way to merge this fine PR! |
It looks like something changed on |
It looks like something changed on |
It looks like something changed on |
Congratulations, your PR was merged at e62dd22. Thanks a lot for contributing to OCA. ❤️ |
Descrizione del problema o della funzionalità:
Nell'importare una fattura il sistema tenta di usare la company di default dell'utente corrente e non la company selezionata a livello di interfaccia.
Comportamento attuale prima di questa PR:
L'import fallisce perché non trova un registro di tipo 'sale' per la company di default dell'utente.
Comportamento desiderato dopo questa PR:
La fattura viene importata correttamente.
N.B. Idealmente sarebbe da scrivere un test.
--
Confermo di aver firmato il CLA https://odoo-community.org/page/cla e di aver letto le linee guida su https://odoo-community.org/page/contributing