Getting TypeError: type() argument 1 must be string, not None

OpenCurious

I am getting error while installing customized Odoo module.

Here is the full Traceback I am getting. it is when I am clicking install button on module kanban view.

Traceback (most recent call last):
  File "/home/software/ws/bma8_dev/odoo/openerp/http.py", line 518, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/home/software/ws/bma8_dev/odoo/openerp/http.py", line 539, in dispatch
    result = self._call_function(**self.params)
  File "/home/software/ws/bma8_dev/odoo/openerp/http.py", line 295, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/home/software/ws/bma8_dev/odoo/openerp/service/model.py", line 113, in wrapper
    return f(dbname, *args, **kwargs)
  File "/home/software/ws/bma8_dev/odoo/openerp/http.py", line 292, in checked_call
    return self.endpoint(*a, **kw)
  File "/home/software/ws/bma8_dev/odoo/openerp/http.py", line 759, in __call__
    return self.method(*args, **kw)
  File "/home/software/ws/bma8_dev/odoo/openerp/http.py", line 388, in response_wrap
    response = f(*args, **kw)
  File "/home/software/ws/bma8_dev/odoo/openerp/addons/web/controllers/main.py", line 953, in call_button
    action = self._call_kw(model, method, args, {})
  File "/home/software/ws/bma8_dev/odoo/openerp/addons/web/controllers/main.py", line 941, in _call_kw
    return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
  File "/home/software/ws/bma8_dev/odoo/openerp/api.py", line 237, in wrapper
    return old_api(self, *args, **kwargs)
  File "/home/software/ws/bma8_dev/odoo/openerp/addons/base/module/module.py", line 450, in button_immediate_install
    return self._button_immediate_function(cr, uid, ids, self.button_install, context=context)
  File "/home/software/ws/bma8_dev/odoo/openerp/api.py", line 237, in wrapper
    return old_api(self, *args, **kwargs)
  File "/home/software/ws/bma8_dev/odoo/openerp/addons/base/module/module.py", line 498, in _button_immediate_function
    registry = openerp.modules.registry.RegistryManager.new(cr.dbname, update_module=True)
  File "/home/software/ws/bma8_dev/odoo/openerp/modules/registry.py", line 346, in new
    openerp.modules.load_modules(registry._db, force_demo, status, update_module)
  File "/home/software/ws/bma8_dev/odoo/openerp/modules/loading.py", line 363, in load_modules
    loaded_modules, update_module)
  File "/home/software/ws/bma8_dev/odoo/openerp/modules/loading.py", line 263, in load_marked_modules
    loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)
  File "/home/software/ws/bma8_dev/odoo/openerp/modules/loading.py", line 158, in load_module_graph
    models = registry.load(cr, package)
  File "/home/software/ws/bma8_dev/odoo/openerp/modules/registry.py", line 148, in load
    model = cls._build_model(self, cr)
  File "/home/software/ws/bma8_dev/odoo/openerp/models.py", line 659, in _build_model
    cls = type(cls._name, (cls,), attrs)
TypeError: type() argument 1 must be string, not None

can any one know what is wrong ?

Atul Arvind

You missed required module descriptor on model.

try to _name or _inherit on your model class.

It will resolve this kind of error.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Getting TypeError: type() argument 1 must be string, not None

From Dev

flask-mail TypeError: getaddrinfo() argument 1 must be string or None

From Dev

TypeError: decode() argument 1 must be str, not None

From Dev

python TypeError: argument 1 must be string or read-only character buffer, not None

From Dev

TypeError: argument 1 must be string or read-only character buffer, not None

From Dev

When trying to request for OAuth access_token I get: TypeError: encode() argument 1 must be string, not None

From Dev

Getting "TypeError: float() argument must be a string or a number" with pandas plot()

From Dev

Assistance with TypeError:write() argument must be str, not None

From Dev

TypeError: super() argument 1 must be type, not int (Python)

From Dev

I'm getting a typeError: string indices must be integers, not type

From Dev

unicode() argument 2 must be string not None

From Dev

TypeError: float() argument must be a string or a number, not 'Tensor'

From Dev

TypeError: float() argument must be a string or a number, not 'IntVar'

From Dev

TypeError: write() argument 1 must be unicode, not str

From Dev

TypeError: strptime() argument 1 must be str, not Series

From Dev

TypeError: Fetch argument has invalid type float32, must be a string or Tensor

From Java

TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined raised when starting react app

From Dev

TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined raised when starting react app

From Dev

Tensorflow TypeError: Fetch argument None has invalid type <type 'NoneType'>?

From Dev

TypeError: file() argument 1 must be encoded string without NULL bytes, not str odoo

From Dev

Training '\x00' s and TypeError: stat() argument 1 must be encoded string without null bytes, not str

From Dev

TypeError: argument 1 must be string or read-only character buffer, not file (in exercise 17 of Learn python the Hard)

From Dev

Fatal error: Uncaught TypeError: Argument 1 passed to DOMNode::appendChild() must be an instance of DOMNode, string given in

From Dev

Django tutorial, Getting: TypeError at /admin/ argument to reversed() must be a sequence

From Dev

Argument 1 must be string, not datetime.datetime?

From Dev

Why do I get "Argument 1 passed to Illuminate\Database\Grammar::parameterize() must be of the type array, string given"

From Dev

TypeError: Fetch argument None has invalid type <class 'NoneType'> in Tensorflow

From Dev

Django TypeError int() argument must be a string or a number, not 'QueryDict'

From Dev

TypeError: float() argument must be a string or a number in Django distance

Related Related

  1. 1

    Getting TypeError: type() argument 1 must be string, not None

  2. 2

    flask-mail TypeError: getaddrinfo() argument 1 must be string or None

  3. 3

    TypeError: decode() argument 1 must be str, not None

  4. 4

    python TypeError: argument 1 must be string or read-only character buffer, not None

  5. 5

    TypeError: argument 1 must be string or read-only character buffer, not None

  6. 6

    When trying to request for OAuth access_token I get: TypeError: encode() argument 1 must be string, not None

  7. 7

    Getting "TypeError: float() argument must be a string or a number" with pandas plot()

  8. 8

    Assistance with TypeError:write() argument must be str, not None

  9. 9

    TypeError: super() argument 1 must be type, not int (Python)

  10. 10

    I'm getting a typeError: string indices must be integers, not type

  11. 11

    unicode() argument 2 must be string not None

  12. 12

    TypeError: float() argument must be a string or a number, not 'Tensor'

  13. 13

    TypeError: float() argument must be a string or a number, not 'IntVar'

  14. 14

    TypeError: write() argument 1 must be unicode, not str

  15. 15

    TypeError: strptime() argument 1 must be str, not Series

  16. 16

    TypeError: Fetch argument has invalid type float32, must be a string or Tensor

  17. 17

    TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined raised when starting react app

  18. 18

    TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined raised when starting react app

  19. 19

    Tensorflow TypeError: Fetch argument None has invalid type <type 'NoneType'>?

  20. 20

    TypeError: file() argument 1 must be encoded string without NULL bytes, not str odoo

  21. 21

    Training '\x00' s and TypeError: stat() argument 1 must be encoded string without null bytes, not str

  22. 22

    TypeError: argument 1 must be string or read-only character buffer, not file (in exercise 17 of Learn python the Hard)

  23. 23

    Fatal error: Uncaught TypeError: Argument 1 passed to DOMNode::appendChild() must be an instance of DOMNode, string given in

  24. 24

    Django tutorial, Getting: TypeError at /admin/ argument to reversed() must be a sequence

  25. 25

    Argument 1 must be string, not datetime.datetime?

  26. 26

    Why do I get "Argument 1 passed to Illuminate\Database\Grammar::parameterize() must be of the type array, string given"

  27. 27

    TypeError: Fetch argument None has invalid type <class 'NoneType'> in Tensorflow

  28. 28

    Django TypeError int() argument must be a string or a number, not 'QueryDict'

  29. 29

    TypeError: float() argument must be a string or a number in Django distance

HotTag

Archive