[7.0][Multi company] Error in confirming statement line when company is different than base company
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Banking Addons |
New
|
Undecided
|
Unassigned |
Bug Description
[Pre-requisite]
* Multicompany module
* Accounting module
[steps to reproduce bug]
* Create bank statement for non base company
* Add statement line
* confirm statement line
[Traceback]
<pre> Error occurred while validating the field(s) company_id: Account and Period must belong to the same company.
Traceback (most recent call last):
File "/home/
result = ExportService.
File "/home/
res = fn(db, uid, *params)
File "/home/
return self.execute(db, uid, obj, method, *args, **kw or {})
File "/home/
return f(self, dbname, *args, **kwargs)
File "/home/
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/
statement_pool = self.pool.
File "/home/
context=
File "/home/
return super(account_
File "/home/
move_line_id = account_
File "/home/
result = super(account_
File "/home/
record_id = create_
File "/home/
self.
File "/home/
raise except_
except_osv: ('ValidateError', u'Error occurred while validating the field(s) company_id: Account and Period must belong to the same company.')
</pre>
description: | updated |
affects: | ocb-addons → banking-addons |
Are you creating the bank statement as the admin user? That would not work, I'm guessing.