Skip to Content
Odoo Menu
  • Log ind
  • Prøv gratis
  • Apps
    Økonomi
    • Bogføring
    • Fakturering
    • Udgifter
    • Regneark (BI)
    • Dokumenter
    • e-Signatur
    Salg
    • CRM
    • Salg
    • POS Butik
    • POS Restaurant
    • Abonnementer
    • Udlejning
    Hjemmeside
    • Hjemmesidebygger
    • e-Handel
    • Blog
    • Forum
    • LiveChat
    • e-Læring
    Forsyningskæde
    • Lagerbeholdning
    • Produktion
    • PLM
    • Indkøb
    • Vedligeholdelse
    • Kvalitet
    HR
    • Medarbejdere
    • Rekruttering
    • Fravær
    • Medarbejdersamtaler
    • Anbefalinger
    • Flåde
    Marketing
    • Markedsføring på sociale medier
    • E-mailmarketing
    • SMS-marketing
    • Arrangementer
    • Automatiseret marketing
    • Spørgeundersøgelser
    Tjenester
    • Projekt
    • Timesedler
    • Udkørende Service
    • Kundeservice
    • Planlægning
    • Aftaler
    Produktivitet
    • Dialog
    • Godkendelser
    • IoT
    • VoIP
    • Vidensdeling
    • WhatsApp
    Tredjepartsapps Odoo Studio Odoo Cloud-platform
  • Brancher
    Detailhandel
    • Boghandel
    • Tøjforretning
    • Møbelforretning
    • Dagligvarebutik
    • Byggemarked
    • Legetøjsforretning
    Mad og værtsskab
    • Bar og pub
    • Restaurant
    • Fastfood
    • Gæstehus
    • Drikkevareforhandler
    • Hotel
    Ejendom
    • Ejendomsmægler
    • Arkitektfirma
    • Byggeri
    • Ejendomsadministration
    • Havearbejde
    • Boligejerforening
    Rådgivning
    • Regnskabsfirma
    • Odoo-partner
    • Marketingbureau
    • Advokatfirma
    • Rekruttering
    • Audit & certificering
    Produktion
    • Tekstil
    • Metal
    • Møbler
    • Fødevareproduktion
    • Bryggeri
    • Firmagave
    Heldbred & Fitness
    • Sportsklub
    • Optiker
    • Fitnesscenter
    • Kosmetolog
    • Apotek
    • Frisør
    Håndværk
    • Handyman
    • IT-hardware og support
    • Solenergisystemer
    • Skomager
    • Rengøringsservicer
    • VVS- og ventilationsservice
    Andet
    • Nonprofitorganisation
    • Miljøagentur
    • Udlejning af billboards
    • Fotografi
    • Cykeludlejning
    • Softwareforhandler
    Gennemse alle brancher
  • Community
    Få mere at vide
    • Tutorials
    • Dokumentation
    • Certificeringer
    • Oplæring
    • Blog
    • Podcast
    Bliv klogere
    • Udannelselsesprogram
    • Scale Up!-virksomhedsspillet
    • Besøg Odoo
    Få softwaren
    • Download
    • Sammenlign versioner
    • Udgaver
    Samarbejde
    • Github
    • Forum
    • Arrangementer
    • Oversættelser
    • Bliv partner
    • Tjenester til partnere
    • Registrér dit regnskabsfirma
    Modtag tjenester
    • Find en partner
    • Find en bogholder
    • Kontakt en rådgiver
    • Implementeringstjenester
    • Kundereferencer
    • Support
    • Opgraderinger
    Github Youtube Twitter LinkedIn Instagram Facebook Spotify
    +1 (650) 691-3277
    Få en demo
  • Prissætning
  • Hjælp

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

  • CRM
  • e-Commerce
  • Bogføring
  • Lager
  • PoS
  • Projekt
  • MRP
All apps
Du skal være registreret for at interagere med fællesskabet.
All Posts People Emblemer
Tags (View all)
odoo accounting v14 pos v15
Om dette forum
Du skal være registreret for at interagere med fællesskabet.
All Posts People Emblemer
Tags (View all)
odoo accounting v14 pos v15
Om dette forum
Hjælp

Validation error The transaction cannot be completed: (v17)

Tilmeld

Få besked, når der er aktivitet på dette indlæg

Dette spørgsmål er blevet anmeldt
accountingv17
1 Svar
3521 Visninger
Avatar
François-Hervé de CAMBOURG

The transaction cannot be completed: The amount expressed in the secondary currency must be positive when the account is debited and negative when the account is credited. If the currency is the same as the company’s, this amount must be strictly equal to the balance. In Odoo 17.

I want to enter a writing sale of our store due to malfunction, but there is this message when I want to validate the writing.

No line is negative

0
Avatar
Kassér
Avatar
Gracious Joseph
Bedste svar

The error "The amount expressed in the secondary currency must be positive when the account is debited and negative when the account is credited" in Odoo 17 accounting typically occurs due to incorrect values in multi-currency journal entries. It happens when there is a mismatch between the secondary currency amounts and the balance in the company's currency.

Here's how to resolve the issue:

1. Understand the Error

In Odoo, when working with multi-currency transactions:

  • Secondary Currency Rules:
    • For a debit line: The amount in the secondary currency must be positive.
    • For a credit line: The amount in the secondary currency must be negative.
  • If the transaction uses the company's currency only, the secondary currency amount must exactly match the primary amount.

2. Root Cause Analysis

The issue may occur due to:

  1. Incorrect Manual Entry:
    • A mismatch between the debit/credit amount and the corresponding secondary currency amount.
  2. Currency Mismatch:
    • The journal entry references a foreign currency, but the amounts are not properly calculated.
  3. System Bug:
    • If using customizations or a specific accounting configuration, the error may stem from an unhandled edge case.

3. Steps to Fix the Issue

A. Check the Journal Entry Lines

  1. Navigate to the Journal Entry:
    • Go to Accounting > Journal Entries > Journal Items and open the journal entry in question.
  2. Inspect the Debit/Credit Lines:
    • Ensure that:
      • Debit amounts are positive.
      • Credit amounts are negative.
    • The total debit matches the total credit in the company currency.
  3. Check Secondary Currency Amounts:
    • If the transaction involves a foreign currency:
      • Ensure the amount_currency field reflects the correct foreign currency value.
      • For debit: amount_currency must be positive.
      • For credit: amount_currency must be negative.
  4. Adjust Manually if Necessary:
    • Edit the amounts to align with the rules and save the entry.

B. Check the Account Configuration

  1. Navigate to the Account:
    • Go to Accounting > Configuration > Chart of Accounts.
    • Open the account referenced in the journal entry.
  2. Verify Currency Settings:
    • Ensure the account's currency settings are correct:
      • If the account is configured with a foreign currency, make sure the transaction aligns with that currency.
      • If the account uses the company's currency, secondary currency amounts must match the primary amounts.

C. Check the Journal Configuration

  1. Navigate to the Journal:
    • Go to Accounting > Configuration > Journals and open the journal used in the entry.
  2. Verify the Journal's Default Currency:
    • Ensure the journal's default currency matches the transaction's currency setup.

D. Automate Secondary Currency Calculation

If secondary currency amounts are not automatically calculated, enable automatic currency computation:

  1. Enable Foreign Exchange Rates:
    • Go to Accounting > Configuration > Settings.
    • Ensure that Multi-Currencies is enabled and the exchange rates are correctly configured.
  2. Recalculate the Journal Entry:
    • Open the journal entry, clear the amount_currency fields, and let Odoo recompute them based on the exchange rate.

E. Validate Again

  1. After making the necessary adjustments:
    • Save the journal entry.
    • Try validating it again.

4. Common Scenarios and Fixes

Scenario Fix
Secondary currency amount is missing or zero. Enter the correct amount in the amount_currency field based on the exchange rate.
Secondary currency amount does not match rules. Adjust the amounts so that debit is positive and credit is negative in the amount_currency.
Account uses company currency but has foreign currency values. Set the amount_currency field to zero or remove it.
Exchange rate discrepancy. Update the exchange rates under Accounting > Configuration > Currencies > Exchange Rates.

5. Example

Case 1: Single Currency Transaction

  • Debit: 1000 (in company currency)
  • Credit: -1000 (in company currency)

No secondary currency (amount_currency) is required.

Case 2: Multi-Currency Transaction

  • Debit: 1000 USD
    • amount_currency: +1000 (for debit).
  • Credit: -950 EUR (with an exchange rate of 1 USD = 0.95 EUR)
    • amount_currency: -950 (for credit).

6. If the Problem Persists

  1. Recreate the Journal Entry:
    • Delete the problematic journal entry and recreate it to ensure all amounts and currencies are calculated properly.
  2. Check for Bugs or Customizations:
    • If the issue is caused by a custom module or system bug, disable the customizations or report the issue to your Odoo support provider.

By following these steps, you should be able to resolve the validation error for the journal entry. Let me know if you need further clarification or assistance!

0
Avatar
Kassér
Enjoying the discussion? Don't just read, join in!

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

Tilmeld dig
Related Posts Besvarelser Visninger Aktivitet
Odoo 17 - Sales Invoice Error: “The entry / (id 75075) is using accounts from a different company”
accounting v17
Avatar
Avatar
2
nov. 25
156
Bank Balance and Last Statement Discrepancy on Odoo Accounting Dashboard after Upgrade to v17
accounting v17
Avatar
Avatar
1
feb. 25
3064
Cost of goods sold Løst
accounting v17
Avatar
Avatar
Avatar
2
apr. 24
4709
How to attach a customized pdf file for mailing in Accounting in Odoo 17 Løst
accounting v17
Avatar
Avatar
Avatar
2
apr. 24
6700
Inside the Branch Company Anglo saxon is not working
accounting v17
Avatar
0
mar. 24
2208
Community
  • Tutorials
  • Dokumentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Oversættelser
Tjenester
  • Odoo.sh-hosting
  • Support
  • Opgradere
  • Individuelt tilpasset udvikling
  • Uddannelse
  • Find en bogholder
  • Find en partner
  • Bliv partner
Om os
  • Vores virksomhed
  • Brandaktiver
  • Kontakt os
  • Stillinger
  • Arrangementer
  • Podcast
  • Blog
  • Kunder
  • Juridiske dokumenter • Privatlivspolitik
  • Sikkerhedspolitik
الْعَرَبيّة 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 er en samling open source-forretningsapps, der dækker alle dine virksomhedsbehov – lige fra CRM, e-handel og bogføring til lagerstyring, POS, projektledelse og meget mere.

Det unikke ved Odoo er, at systemet både er brugervenligt og fuldt integreret.

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