-
-
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 l10n_it_fatturapa documenti correlati non vengono salvati #2211
Comments
@TheMule71 facendo prove in quest'area ho notato che inserendo il campo anche nella vista lista di
|
Il problema evidenziato si verifica quando sono installati sia Oltre a capire come farla convivere quando è installato anche |
Potrebbe essere sufficiente aggiungere un |
…elong to account.move form when l10n_it_fatturapa_in is installed after l10n_it_fatturapa_out This change fixes the following scenario: - install l10n_it_fatturapa_out - install l10n_it_fatturapa_in - tick the flag *Enable electronic invoicing* on a partner - create an invoice for the previous partner - add some lines in Related Document - related documents are not saved This is due to the order in which `account.view_move_form` inherited views are loaded (ref. https://github.com/odoo/odoo/blob/293f54336fe18b41579604a20969534006437460/odoo/addons/base/models/ir_ui_view.py#L595) And it closes OCA#2211
…elong to account.view_move_form when l10n_it_fatturapa_in is installed after l10n_it_fatturapa_out This change fixes the following scenario: - install l10n_it_fatturapa_out - install l10n_it_fatturapa_in - tick the flag *Enable electronic invoicing* on a partner - create an invoice for the previous partner - add some lines in Related Document - related documents are not saved This is due to the order in which `account.view_move_form` inherited views are loaded (ref. https://github.com/odoo/odoo/blob/293f54336fe18b41579604a20969534006437460/odoo/addons/base/models/ir_ui_view.py#L595) And it closes OCA#2211
Quindi questa si può chiudere? |
No perché abbiamo chiarito in #2586 (comment) (riporto qui sotto) che la PR #2586 non risolve questo problema:
|
Applied suggestion by Github user @fredzamoabg OCA#2211 (comment)
There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. |
@aleuffre puoi verificare se si presenta anche sulla 16? |
Applied suggestion by Github user @fredzamoabg OCA#2211 (comment)
@TheMule71 riesci a fare il punto su questa issue? grazie! |
NOTA: dopo il merge di #1984
Il motivo per cui i related_documents (e admin_ref) non vengono salvati è che il core esclude le modifiche a
invoice_line_ids
in https://github.com/odoo/odoo/blob/d44dfff647939022b8fe8d091bc1f6562cc47d86/addons/account/models/account_move.py#L1872.Per qualche motivo i related_documents vengono passati come modifica a
invoice_line_ids
mentre ad esempio le imposte sono passate comunque come modifiche aline_ids
:Abbiamo fatto un po' di indagini su questo problema senza arrivare a una soluzione.
Sembra ci sia qualche meccanismo oscuro per cui dei campi vengono copiati da
invoice_line_ids
aline_ids
(vedi ad esempio i metodicreate
,write
e_onchange_invoice_line_ids
diaccount.move.line
).Originally posted by @SimoRubi in #1984 (comment)
The text was updated successfully, but these errors were encountered: