Daily updates from Odoo
Thursday, May 16, 2024
1 change
Resolved issues and error corrections
This update fixes critical issues in Hungarian electronic invoice processing that were causing system crashes and blocking email delivery. The changes prevent crashes when invoice names aren't set, allow demo mode usage without credentials, enable proper email delivery for invoices in certain states, and ensure modification invoices use the correct submission method to allow future corrections.
Original PR description
1. Avoid crashing if move.name is not set
In the tests
- `:TestAccountMoveInInvoiceOnchanges.test_fiduciary_mode_date_suggestion`
- `:TestSequenceMixin.test_sequence_empty_editable_with_quick_edit_mode`
the compute method `_compute_l10n_hu_edi_attachment_filename` was called before the invoice name was set.
Because of this, calling move.name.replace('/', '_') was raising an AttributeError.
2. Allow user to not put credentials when they are using demo mode.
3. sent (waiting for response) and confirmed_warning states should not raise a UserError and should not block an e-mail from being sent to the customer.
4. always send modification invoices using 'MODIFY' (never 'STORNO') since 'STORNO' prevents further modifications from being issued to the invoice, but in Odoo we can't predict whether the user will want to issue further corrections to an invoice in the future.
Fixes runbot errors 64755 and 64756.