Saturday, August 17, 2024
2 changes · saas-17.2
Miscellaneous changes
**Steps to reproduce:** (Require credentials) - Install l10n_eg_edi_eta - Switch to an Egyptian company - Configure the Egyption localization - Create an invoice and post it to ETA - Go to ETA portal and reject the invoice - From invoice in Odoo, request EDI cancellation **Issue:** The following error is displayed: { 'code': 'ValidationError', 'message': None, 'target': 'Update Document Status', 'details': [{ 'code': None, 'target': 'Document.UUID
Original PR description
**Steps to reproduce:** (Require credentials)
- Install l10n_eg_edi_eta
- Switch to an Egyptian company
- Configure the Egyption localization
- Create an invoice and post it to ETA
- Go to ETA portal and reject the invoice
- From invoice in Odoo, request EDI cancellation
**Issue:**
The following error is displayed:
{
'code': 'ValidationError',
'message': None,
'target': 'Update Document Status',
'details': [{
'code': None,
'target': 'Document.UUID',
'message': 'Provided Status is invalid, based on the current document status.'
}]
}
**Solution:**
Before cancelling an invoice, check submission status.
If it's cancelled or rejected, do not send the cancellation EDI request and responds to the method with a success.
opw-3884519
---
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Forward-Port-Of: odoo/odoo#170406**Steps to reproduce:** - Install Accounting, l10n_eu_oss and l10n_es_edi_tbai - Switch to a Spanish company (e.g. ES Company) - Create an invoice for a Portugese customer: * Customer: [a Portugese customer] * Invoice Lines: [a line with OSS tax "23.0% PT VAT (Goods)"] - Confirm the invoice - Process the invoice by E-invoicing service: TicketBAI (ES) - Check the generated EDI document **Issue:** The value of "ClaveRegimenIvaOpTrascendencia" is "01". It should be "17" for OSS oper
Original PR description
**Steps to reproduce:** - Install Accounting, l10n_eu_oss and l10n_es_edi_tbai - Switch to a Spanish company (e.g. ES Company) - Create an invoice for a Portugese customer: * Customer: [a Portugese customer] * Invoice Lines: [a line with OSS tax "23.0% PT VAT (Goods)"] - Confirm the invoice - Process the invoice by E-invoicing service: TicketBAI (ES) - Check the generated EDI document **Issue:** The value of "ClaveRegimenIvaOpTrascendencia" is "01". It should be "17" for OSS operations. **Solution:** Check if a tax from "l10n_eu_oss" module is used in one of the invoice lines. If it is the case, set "ClaveRegimenIvaOpTrascendencia" to "17". opw-4034659 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#176780 Forward-Port-Of: odoo/odoo#176564