Skip to Content
Odoo Menú
  • Registra entrada
  • Prova-ho gratis
  • Aplicacions
    Finances
    • Comptabilitat
    • Facturació
    • Despeses
    • Full de càlcul (IA)
    • Documents
    • Signatura
    Vendes
    • CRM
    • Vendes
    • Punt de venda per a botigues
    • Punt de venda per a restaurants
    • Subscripcions
    • Lloguer
    Imatges de llocs web
    • Creació de llocs web
    • Comerç electrònic
    • Blog
    • Fòrum
    • Xat en directe
    • Aprenentatge en línia
    Cadena de subministrament
    • Inventari
    • Fabricació
    • PLM
    • Compres
    • Manteniment
    • Qualitat
    Recursos humans
    • Empleats
    • Reclutament
    • Absències
    • Avaluacions
    • Recomanacions
    • Flota
    Màrqueting
    • Màrqueting Social
    • Màrqueting per correu electrònic
    • Màrqueting per SMS
    • Esdeveniments
    • Automatització del màrqueting
    • Enquestes
    Serveis
    • Projectes
    • Fulls d'hores
    • Servei de camp
    • Suport
    • Planificació
    • Cites
    Productivitat
    • Converses
    • Validacions
    • IoT
    • VoIP
    • Coneixements
    • WhatsApp
    Aplicacions de tercers Odoo Studio Plataforma d'Odoo al núvol
  • Sectors
    Comerç al detall
    • Llibreria
    • Botiga de roba
    • Botiga de mobles
    • Botiga d'ultramarins
    • Ferreteria
    • Botiga de joguines
    Food & Hospitality
    • Bar i pub
    • Restaurant
    • Menjar ràpid
    • Guest House
    • Distribuïdor de begudes
    • Hotel
    Immobiliari
    • Agència immobiliària
    • Estudi d'arquitectura
    • Construcció
    • Gestió immobiliària
    • Jardineria
    • Associació de propietaris de béns immobles
    Consultoria
    • Empresa comptable
    • Partner d'Odoo
    • Agència de màrqueting
    • Bufet d'advocats
    • Captació de talent
    • Auditoria i certificació
    Fabricació
    • Textile
    • Metal
    • Mobles
    • Menjar
    • Brewery
    • Regals corporatius
    Salut i fitness
    • Club d'esport
    • Òptica
    • Centre de fitness
    • Especialistes en benestar
    • Farmàcia
    • Perruqueria
    Trades
    • Servei de manteniment
    • Hardware i suport informàtic
    • Sistemes d'energia solar
    • Shoe Maker
    • Serveis de neteja
    • Instal·lacions HVAC
    Altres
    • Nonprofit Organization
    • Agència del medi ambient
    • Lloguer de panells publicitaris
    • Fotografia
    • Lloguer de bicicletes
    • Distribuïdors de programari
    Browse all Industries
  • Comunitat
    Aprèn
    • Tutorials
    • Documentació
    • Certificacions
    • Formació
    • Blog
    • Pòdcast
    Potenciar l'educació
    • Programa educatiu
    • Scale-Up! El joc empresarial
    • Visita Odoo
    Obtindre el programari
    • Descarregar
    • Comparar edicions
    • Novetats de les versions
    Col·laborar
    • GitHub
    • Fòrum
    • Esdeveniments
    • Traduccions
    • Converteix-te en partner
    • Services for Partners
    • Registra la teva empresa comptable
    Obtindre els serveis
    • Troba un partner
    • Troba un comptable
    • Contacta amb un expert
    • Serveis d'implementació
    • Referències del client
    • Suport
    • Actualitzacions
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Programar una demo
  • Preus
  • Ajuda

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Comptabilitat
  • Inventari
  • PoS
  • Projectes
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
Ajuda

[Odoo v17 CE] Error reloading Fiscal Localization

Subscriure's

Get notified when there's activity on this post

This question has been flagged
localizationspain
2 Respostes
2097 Vistes
Avatar
Jordi S

· What are the steps to reproduce the issue?

Settings → Invoicing → Fiscal Localization → Reload “Package🇪🇸 Spain - Complete (2008)” → Error


· What is the current behaviour you observe?

It fails https://imgur.com/a/tYxfvqY

0
Avatar
Descartar
Avatar
Jordi S
Autor Best Answer

None of this worked... thought that maybe upgrading would do because it's an insert to the database but it didn't.

The error is:

2025-04-01 11:29:20,160 1 ERROR odoo odoo.sql_db: bad query: INSERT INTO "account_tax" ("active", "amount", "amount_type", "company_id", "country_id", "create_date", "create_uid", "description", "facturae_code", "include_base_amount", "invoice_label", "is_base_affected", "l10n_es_bien_inversion", "l10n_es_edi_facturae_tax_type", "l10n_es_type", "name", "price_include", "sequence", "tax_exigibility", "tax_group_id", "tax_scope", "type_tax_use", "write_date", "write_uid") VALUES (true, '10.0000', 'percent', 1, 68, '2025-04-01 11:29:16.205726', 2, '{"en_US": "VAT 10% import (services)"}', '01', false, DEFAULT, true, false, '01', 'sujeto_isp', '{"en_US": "10% EX S"}', false, 1, 'on_invoice', 51, 'service', 'purchase', '2025-04-01 11:29:16.205726', 2), (true, '0.0000', 'percent', 1, 68, '2025-04-01 11:29:16.205726', 2, '{"en_US": "VAT 0% intra-community (goods)"}', DEFAULT, false, DEFAULT, true, false, '01', 'sujeto', '{"en_US": "0% EU G"}', false, 1, 'on_invoice', 34, 'consu', 'purchase', '2025-04-01 11:29:16.205726', 2), (true, '0.0000', 'percent', 1, 68, '2025-04-01 11:29:16.205726', 2, '{"en_US": "VAT 0% import (goods)"}', DEFAULT, false, DEFAULT, true, false, '01', 'sujeto', '{"en_US": "0% EX G"}', false, 1, 'on_invoice', 34, 'consu', 'purchase', '2025-04-01 11:29:16.205726', 2), (true, '0.0000', 'percent', 1, 68, '2025-04-01 11:29:16.205726', 2, '{"en_US": "VAT 0% intra-community (good)"}', DEFAULT, false, '{"en_US": "Intra-Community (Goods)"}', true, false, '01', 'no_sujeto_loc', '{"en_US": "0% EU G"}', false, 1, 'on_invoice', 34, 'consu', 'sale', '2025-04-01 11:29:16.205726', 2), (true, '0.0000', 'percent', 1, 68, '2025-04-01 11:29:16.205726', 2, '{"en_US": "VAT 0% export (goods)"}', DEFAULT, false, '{"en_US": "Non-EU"}', true, false, '01', 'no_sujeto_loc', '{"en_US": "0% EX G"}', false, 1, 'on_invoice', 34, 'consu', 'sale', '2025-04-01 11:29:16.205726', 2), (true, '0.0000', 'percent', 1, 68, '2025-04-01 11:29:16.205726', 2, DEFAULT, '01', false, DEFAULT, true, false, '01', 'sujeto', DEFAULT, false, 1, 'on_invoice', 34, DEFAULT, 'sale', '2025-04-01 11:29:16.205726', 2) RETURNING "id"
ERROR: null value in column "name" of relation "account_tax" violates not-null constraint
DETAIL:  Failing row contains (403, 1, 1, 34, null, 68, 2, 2, sale, null, percent, on_invoice, null, null, null, 0.0000, t, f, f, t, null, 2025-04-01 11:29:16.205726, 2025-04-01 11:29:16.205726, null, sujeto, f, 01, 01).
2025-04-01 11:29:20,166 1 WARNING odoo odoo.http: The operation cannot be completed:
- Create/update: a mandatory field is not set.
- Delete: another model requires the record being deleted. If possible, archive it instead.

Model: Tax (account.tax)
Field: Tax Name (name)
0
Avatar
Descartar
Avatar
Ritik (Wan Buffer Services)
Best Answer

​Experiencing errors when reloading the Spanish fiscal localization package in Odoo 17 Community Edition can stem from various factors. Here's a structured approach to diagnose and resolve the issue:​

1. Update the Invoicing Module:

Ensure that your Invoicing (account) module is up-to-date, as outdated modules can lead to compatibility issues with localization packages.​

  • Steps:
    • Navigate to Apps.​
    • Locate the Invoicing module.​
    • Click on Upgrade to install the latest version.​

This approach has been effective for other users encountering similar localization errors. ​

2. Verify Company Country Settings:

The fiscal localization package aligns with the country specified in your company settings. Confirm that Spain is set as the country for your company.​

  • Steps:
    • Go to Settings → Companies.​
    • Select your company.​
    • Ensure the Country field is set to Spain.​

Proper country configuration ensures the correct localization package is applied. ​

3. Check for Existing Journal Entries:

If there are existing journal entries, changing the fiscal localization package may be restricted.​

  • Solution:
    • If possible, delete draft journal entries.​
    • For posted entries, consider creating a new database if no critical data exists.​

This limitation is noted in Odoo's community discussions. ​

4. Review Error Logs:

Examining server logs can provide insights into the specific cause of the error.​

  • Steps:
    • Access your server's log files, typically located at /var/log/odoo/odoo-server.log.​
    • Look for detailed error messages related to the localization loading process.​

5. Seek Community Support:

If the issue persists, consider reaching out to the Odoo community or consulting with Odoo experts who may have encountered and resolved similar challenges.​

By systematically addressing these areas, you can identify and resolve the issues affecting the reloading of the Spanish fiscal localization package in Odoo 17 CE.

0
Avatar
Descartar
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Registrar-se
Related Posts Respostes Vistes Activitat
Odoo 15 vs 16 and accounting packages
localization
Avatar
Avatar
1
d’abr. 23
3546
Chile: [l10n_cl] ¿Cómo puedo agregar el campo 801 al DTE que es la orden de compra del cliente? Solved
localization
Avatar
1
de nov. 24
3888
a label should be localized and it's not
localization
Avatar
0
de febr. 22
2827
Is there a compiled list of all the Chart of Account localizations that Odoo support right now in version 7.0?
localization
Avatar
Avatar
1
de març 15
4935
Can we use Electronic invoice for Mexico ?
localization
Avatar
Avatar
1
de març 15
5510
Community
  • Tutorials
  • Documentació
  • Fòrum
Codi obert
  • Descarregar
  • GitHub
  • Runbot
  • Traduccions
Serveis
  • Allotjament a Odoo.sh
  • Suport
  • Actualització
  • Desenvolupaments personalitzats
  • Educació
  • Troba un comptable
  • Troba un partner
  • Converteix-te en partner
Sobre nosaltres
  • La nostra empresa
  • Actius de marca
  • Contacta amb nosaltres
  • Llocs de treball
  • Esdeveniments
  • Pòdcast
  • Blog
  • Clients
  • Informació legal • Privacitat
  • Seguretat
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo és un conjunt d'aplicacions empresarials de codi obert que cobreix totes les necessitats de la teva empresa: CRM, comerç electrònic, comptabilitat, inventari, punt de venda, gestió de projectes, etc.

La proposta única de valor d'Odoo és ser molt fàcil d'utilitzar i estar totalment integrat, ambdues alhora.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now