← Back to team overview

openerp-india team mailing list archive

[Bug 925360] Re: [Trunk] Impossible to Validate invoice once set Secondary Currency on account!!!

 

My Google search on the error message of OpenERP pointed me to this bug
report. My pb was also around this, and I found a solution, so let me
explain :

Whay I say apply to OpenERP 6.1 and trunk.

On a bank journal, if you fill the "Currency" field, you are obliged to set the "Secondary currency" field of the Default Debit/Credit account to the same value.
Imagine you are a French company and you have a single bank account in EUR. Naturally, on the related bank journal, you have set the Currency field to "EUR". As you get the error message "Configuration error! The currency chosen should be shared by the default accounts too", then you set "EUR" as secondary currency on the accounting account related to this bank account.

Now, when you pay an invoice via a payment voucher and you select this
bank journal, you will get the error message "The selected account of
your Journal Entry forces to provide a secondary currency. You should
remove the secondary currency on the account or select a multi-currency
view on the journal." As explained by Amit, this is because you should
not set a "Secondary currency" on your accounting account related to
your bank account that is the same as your company currency.

So, if my analysis of this problem is right, you should :
- remove the "Secondary currency" from the accounting account of your bank account
- remove the "Currency" on your bank journal

The lesson of this is that we should probably add more constraints :
- a constraint on account.account to prevent someone to enter a "Secondary currency" which is the same as the company currency
- constraint on account.journal to prevent someone to enter a "Currency" which is the same as the company currency

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/925360

Title:
  [Trunk] Impossible to Validate invoice once set Secondary Currency on
  account!!!

Status in OpenERP Addons (modules):
  Invalid

Bug description:
  Hello,

  Steps to produce the bug:

  1) Set secondary currency on "Debtors " Account as EUR.
  2) Now try to create a customer invoice with same currency EUR.
  3) Try to validate it.
  4) You will always get a constraint "The selected account of your Journal Entry forces to provide a secondary currency. You should remove the secondary currency on the account or select a multi-currency view on the journal."

  I checked the constraint _check_currency on account_move_line and find
  that if there is any secondary currency set on account then it will
  always return false.

  It should allow to validate the invoice in case of same currency set
  on invoice and account!!

  Thanks,
  Purnendu Singh

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/925360/+subscriptions


References