← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 688021] Re: [6.0-rc1] Error configuring timesheets

 

** Changed in: openobject-addons
    Milestone: None => 6.0-rc2

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/688021

Title:
  [6.0-rc1] Error configuring timesheets

Status in OpenObject Addons Modules:
  Fix Released

Bug description:
  
[2010-12-09 13:48:04,904][mwp_03] ERROR:tests.hr_timesheet_invoice:'NoneType' object has no attribute 'partner_id'
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/tools/yaml_import.py", line 725, in process
    self._process_node(node)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/tools/yaml_import.py", line 740, in _process_node
    self.process_python(node)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/tools/yaml_import.py", line 414, in process_python
    unsafe_eval(code_obj, {'ref': self.get_id}, code_context)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/hr_timesheet_invoice/test/test_hr_timesheet_invoice.yml", line 8, in <module>
    amount: -1.0
AttributeError: 'NoneType' object has no attribute 'partner_id'
Traceback (most recent call last):
  File "/usr/lib/python2.6/logging/__init__.py", line 776, in emit
    msg = self.format(record)
  File "/usr/lib/python2.6/logging/__init__.py", line 654, in format
    return fmt.format(record)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/netsvc.py", line 182, in format
    return DBFormatter.format(self, record)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/netsvc.py", line 176, in format
    return logging.Formatter.format(self, record)
  File "/usr/lib/python2.6/logging/__init__.py", line 436, in format
    record.message = record.getMessage()
  File "/usr/lib/python2.6/logging/__init__.py", line 306, in getMessage
    msg = msg % self.args
TypeError: not enough arguments for format string





References