← Back to team overview

c2c-oerpscenario team mailing list archive

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

 

Hello forstera,

I have checked the issue with Latest version of Addons3 branch. It seems
there is no error in yaml (may be it is fixed with same branch). And it
will be merge with trunk addons soon.

Thank you,
Mustufa

** Changed in: openobject-addons
       Status: Confirmed => In Progress

** Changed in: openobject-addons
       Status: In Progress => Fix Released

-- 
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