Invoice with Analytical Account Error on Validate
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Summary:
If Hours Encoding is used to record time, against an Analytical account and journal, with a product for a partner, there are two problems - the product price does not get passed into the line item on the invoice, and when corrected, attempting to validate the order causes a traceback.
Steps to reproduce:
1) Create Partner, Receivables GL account, Sales GL account, Analytic account, Analytic journal, product.
2) Use hours encoding to create some entries for the above analytic account and journal, using the product.
3) Use uninvoice entries to generate an invoice from the analytic account (there is a fix released to allow this to happen)
The first problem is here, the pricing information is not put into the line item. This can be corrected by opening the line item and retyping the product name - it will then pick up the price and tax from the product.
4) Compute taxes, which works fine.
5) Create invoice. The following traceback happens:
Traceback (most recent call last):
File "/usr/lib/
result = LocalService(
File "/usr/lib/
return getattr(self, method)(*params)
File "/usr/lib/
res = service.
File "/usr/lib/
return f(self, dbname, *args, **kwargs)
File "/usr/lib/
res = self.exec_
File "/usr/lib/
return wf_service.
File "/usr/lib/
res2 = instance.
File "/usr/lib/
workitem.
File "/usr/lib/
ok = _split_test(cr, workitem, activity[
File "/usr/lib/
_join_test(cr, t[0], t[1], ident, stack)
File "/usr/lib/
create(
File "/usr/lib/
process(cr, res, ident, stack=stack)
File "/usr/lib/
result = _execute(cr, workitem, activity, ident, stack)
File "/usr/lib/
wkf_
File "/usr/lib/
return _eval_expr(cr, ident, workitem, activity['action'])
File "/usr/lib/
ret = eval(line, env)
File "<string>", line 1, in <module>
File "/usr/lib/
return lambda *args, **argv: getattr(
File "/usr/lib/
iml = self._get_
File "/usr/lib/
iml = super(account_
File "/usr/lib/
'journal_id': self._get_
File "/usr/lib/
raise osv.except_
File "/usr/lib/
lang = frame.f_
AttributeError: 'NoneType' object has no attribute 'get'
This suggests that there isn't an analytical journal associated with the line item. In the account_
This is 5.0.0-2 with the latest hr_timesheet_
Related branches
Changed in openobject-addons: | |
status: | New → Fix Released |