← Back to team overview

c2c-oerpscenario team mailing list archive

Re: [Bug 697111] Re: [6.0-rc2] Sale problem

 

ok, I will re-install the whole and check again...

Le 04.01.2011 09:03, Fabien (Open ERP) a écrit :
> It's probably related to a bad installation. Can you check your
> installation and put a full traceback ?
>
> ** Changed in: openobject-addons
>         Status: New =>  Incomplete
>


-- 

Meilleures salutations*

**MW Programmation SA*
Arnaud Forster
Rue Charles Schäublin 2
2735 Malleray-Bévilard

Tél. (+41).032.491.65.30
Fax (+41).032.491.65.35

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

Title:
  [6.0-rc2] Sale problem

Status in OpenObject Addons Modules:
  Incomplete

Bug description:
  Hello all,

I just updated the code to the last versions (web, server and addons). I then tried to create a new database but after having choosen the applications to install (all), here's what I get about the sale module :

[2011-01-04 08:51:21,536][mwp_25] INFO:init:module point_of_sale: loading test/point_of_sale_test.yml
[2011-01-04 08:51:24,085][mwp_25] ERROR:tests.point_of_sale:'NoneType' object has no attribute 'lines'
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 738, in _process_node
    self.process_record(node)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/tools/yaml_import.py", line 304, in process_record
    record_dict=self.create_osv_memory_record(record, fields)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/tools/yaml_import.py", line 295, in create_osv_memory_record
    id_new=model.create(self.cr, self.uid, record_dict, context=self.context)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/orm.py", line 1973, in create
    vals = self._add_missing_default_values(cr, user, vals, context)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/orm.py", line 1866, in _add_missing_default_values
    defaults = self.default_get(cr, uid, missing_defaults, context)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/point_of_sale/wizard/pos_return.py", line 45, in default_get
    res = super(pos_return, self).default_get(cr, uid, fields, context=context)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/orm.py", line 956, in default_get
    self.view_init(cr, uid, fields_list, context)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/point_of_sale/wizard/pos_return.py", line 72, in view_init
    for line in order.lines:
AttributeError: 'NoneType' object has no attribute 'lines'
[2011-01-04 08:51:24,086][mwp_25] ERROR:test:Tests failed to execute in module point_of_sale
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/__init__.py", line 665, in load_test
    _load_data(cr, module_name, id_map, mode, 'test')
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/__init__.py", line 688, in _load_data
    tools.convert_yaml_import(cr, module_name, file, id_map, mode, noupdate)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/tools/yaml_import.py", line 790, in yaml_import
    yaml_interpreter.process(yaml_string)
  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 738, in _process_node
    self.process_record(node)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/tools/yaml_import.py", line 304, in process_record
    record_dict=self.create_osv_memory_record(record, fields)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/tools/yaml_import.py", line 295, in create_osv_memory_record
    id_new=model.create(self.cr, self.uid, record_dict, context=self.context)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/orm.py", line 1973, in create
    vals = self._add_missing_default_values(cr, user, vals, context)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/orm.py", line 1866, in _add_missing_default_values
    defaults = self.default_get(cr, uid, missing_defaults, context)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/point_of_sale/wizard/pos_return.py", line 45, in default_get
    res = super(pos_return, self).default_get(cr, uid, fields, context=context)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/orm.py", line 956, in default_get
    self.view_init(cr, uid, fields_list, context)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/point_of_sale/wizard/pos_return.py", line 72, in view_init
    for line in order.lines:
AttributeError: 'NoneType' object has no attribute 'lines'





References