Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Error occurred while validating the field(s) company_id

By
Nicholas Coad
on 5/25/13, 1:09 AM 2,305 views

I'm receiving this message when I try to validate an invoice. "Error occurred while validating the field(s) company_id: Account and Period must belong to the same company."

I've spent probably 10 hours trying to resolve this problem. I am testing OpenERP for integration into our business, but I'm pretty well hosed if I cannot validate an invoice.

I appear to have everything configured correct, there are specific Accounts and Journals for my multi-company environment and I'm referencing a single company in every aspect that I can see...

Screenshots of relevant information can be found here: imgur.com/a/nkFW8

The logs don't seem very helpful: 2013-05-24 23:40:04,463 3908 ERROR metro_production openerp.tools.safe_eval: Cannot eval u'action_move_create()'
Traceback (most recent call last):
File "C:\Program Files (x86)\OpenERP 7.0-20130413-232416\Server\server.\openerp\tools\safe_eval.py", line 241, in safe_eval
File "", line 1, in <module>
File "C:\Program Files (x86)\OpenERP 7.0-20130413-232416\Server\server.\openerp\osv\orm.py", line 374, in function_proxy
File "C:\Program Files (x86)\OpenERP 7.0-20130413-232416\Server\server\openerp\addons\account\account_invoice.py", line 1009, in action_move_create
File "C:\Program Files (x86)\OpenERP 7.0-20130413-232416\Server\server\openerp\addons\account\account.py", line 1408, in create
File "C:\Program Files (x86)\OpenERP 7.0-20130413-232416\Server\server.\openerp\osv\orm.py", line 4469, in create
File "C:\Program Files (x86)\OpenERP 7.0-20130413-232416\Server\server.\openerp\osv\fields.py", line 557, in set
File "C:\Program Files (x86)\OpenERP 7.0-20130413-232416\Server\server\openerp\addons\account\account_move_line.py", line 1226, in create
File "C:\Program Files (x86)\OpenERP 7.0-20130413-232416\Server\server.\openerp\osv\orm.py", line 4470, in create
File "C:\Program Files (x86)\OpenERP 7.0-20130413-232416\Server\server.\openerp\osv\orm.py", line 1544, in _validate
except_orm: ('ValidateError', u'Error occurred while validating the field(s) company_id: Account and Period must belong to the same company.')
2013-05-24 23:40:04,463 3908 ERROR metro_production openerp.netsvc: ValidateError
Error occurred while validating the field(s) company_id: Account and Period must belong to the same company.
Traceback (most recent call last):
File "C:\Program Files (x86)\OpenERP 7.0-20130413-232416\Server\server.\openerp\netsvc.py", line 293, in dispatch_rpc
File "C:\Program Files (x86)\OpenERP 7.0-20130413-232416\Server\server.\openerp\service\web_services.py", line 626, in dispatch
File "C:\Program Files (x86)\OpenERP 7.0-20130413-232416\Server\server.\openerp\osv\osv.py", line 144, in wrapperC except_osv: ('ValidateError', u'Error occurred while validating the field(s) company_id: Account and Period must belong to the same company.')

1

Cyril Gaspard (GEM)

--Cyril Gaspard (GEM)--
4136
| 5 6 8
Paris, France
--Cyril Gaspard (GEM)--

Forum contributor since 2008

Cyril Gaspard (GEM)
On 5/25/13, 4:20 AM

Hi,

this is not a bug, in muticompany, you must create one user for each company with rights to valid invoices, one user can't valid invoices for all companies. Bye

You are correct, this was my problem. Thank you!

Nicholas Coad
on 5/26/13, 1:21 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

Asked: 5/25/13, 1:09 AM
Seen: 2305 times
Last updated: 3/16/15, 8:10 AM