odoo - Modul Místo prodeje se odmítá instalovat #56

Open
opened 2021-03-29 00:06:00 +02:00 by Podhorecky · 3 comments
Podhorecky commented 2021-03-29 00:06:00 +02:00 (Migrated from git.spotter.cz)

ok, objevuji nové zásery, zatím nereagovat.

Instalaci modulu Místo orodeje (POS) jsem dělal až po základní instalaci a setupu modulů fakturace a shopu

Chyba:
Odoo Server Error

Traceback (most recent call last):
  File "/srv/odoo/odoo/tools/convert.py", line 677, in _tag_root
    f(rec)
  File "/srv/odoo/odoo/tools/convert.py", line 330, in _tag_function
    _eval_xml(self, rec, env)
  File "/srv/odoo/odoo/tools/convert.py", line 201, in _eval_xml
    return odoo.api.call_kw(model, method_name, args, kwargs)
  File "/srv/odoo/odoo/api.py", line 392, in call_kw
    result = _call_kw_model(method, model, args, kwargs)
  File "/srv/odoo/odoo/api.py", line 365, in _call_kw_model
    result = method(recs, *args, **kwargs)
  File "/srv/odoo/addons/point_of_sale/models/pos_config.py", line 649, in post_install_pos_localisation
    pos_configs.setup_defaults(company)
  File "/srv/odoo/addons/point_of_sale/models/pos_config.py", line 658, in setup_defaults
    self.assign_payment_journals(company)
  File "/srv/odoo/addons/point_of_sale/models/pos_config.py", line 670, in assign_payment_journals
    payment_methods |= payment_methods.create({
  File "<decorator-gen-65>", line 2, in create
  File "/srv/odoo/odoo/api.py", line 344, in _model_create_multi
    return create(self, [arg])
  File "/srv/odoo/odoo/addons/base/models/ir_fields.py", line 533, in create
    recs = super().create(vals_list)
  File "<decorator-gen-13>", line 2, in create
  File "/srv/odoo/odoo/api.py", line 345, in _model_create_multi
    return create(self, arg)
  File "/srv/odoo/odoo/models.py", line 3868, in create
    records = self._create(data_list)
  File "/srv/odoo/odoo/models.py", line 3974, in _create
    cr.execute(query, params)
  File "<decorator-gen-3>", line 2, in execute
  File "/srv/odoo/odoo/sql_db.py", line 101, in check
    return f(self, *args, **kwargs)
  File "/srv/odoo/odoo/sql_db.py", line 298, in execute
    res = self._obj.execute(query, params)
psycopg2.errors.NotNullViolation: null value in column "receivable_account_id" violates not-null constraint
DETAIL:  Failing row contains (1, Hotovost, null, t, 6, f, 1, null, t, 1, 2021-03-28 22:01:25.895985, 1, 2021-03-28 22:01:25.895985).


The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/srv/odoo/odoo/addons/base/models/ir_http.py", line 237, in _dispatch
    result = request.dispatch()
  File "/srv/odoo/odoo/http.py", line 683, in dispatch
    result = self._call_function(**self.params)
  File "/srv/odoo/odoo/http.py", line 359, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/srv/odoo/odoo/service/model.py", line 94, in wrapper
    return f(dbname, *args, **kwargs)
  File "/srv/odoo/odoo/http.py", line 347, in checked_call
    result = self.endpoint(*a, **kw)
  File "/srv/odoo/odoo/http.py", line 912, in __call__
    return self.method(*args, **kw)
  File "/srv/odoo/odoo/http.py", line 531, in response_wrap
    response = f(*args, **kw)
  File "/srv/odoo/addons/web/controllers/main.py", line 1381, in call_button
    action = self._call_kw(model, method, args, kwargs)
  File "/srv/odoo/addons/web/controllers/main.py", line 1369, in _call_kw
    return call_kw(request.env[model], method, args, kwargs)
  File "/srv/odoo/odoo/api.py", line 396, in call_kw
    result = _call_kw_multi(method, model, args, kwargs)
  File "/srv/odoo/odoo/api.py", line 383, in _call_kw_multi
    result = method(recs, *args, **kwargs)
  File "<decorator-gen-72>", line 2, in button_immediate_install
  File "/srv/odoo/odoo/addons/base/models/ir_module.py", line 73, in check_and_log
    return method(self, *args, **kwargs)
  File "/srv/odoo/odoo/addons/base/models/ir_module.py", line 474, in button_immediate_install
    return self._button_immediate_function(type(self).button_install)
  File "/srv/odoo/odoo/addons/base/models/ir_module.py", line 592, in _button_immediate_function
    modules.registry.Registry.new(self._cr.dbname, update_module=True)
  File "/srv/odoo/odoo/modules/registry.py", line 89, in new
    odoo.modules.load_modules(registry._db, force_demo, status, update_module)
  File "/srv/odoo/odoo/modules/loading.py", line 453, in load_modules
    processed_modules += load_marked_modules(cr, graph,
  File "/srv/odoo/odoo/modules/loading.py", line 346, in load_marked_modules
    loaded, processed = load_module_graph(
  File "/srv/odoo/odoo/modules/loading.py", line 221, in load_module_graph
    load_data(cr, idref, mode, kind='data', package=package)
  File "/srv/odoo/odoo/modules/loading.py", line 69, in load_data
    tools.convert_file(cr, package.name, filename, idref, mode, noupdate, kind)
  File "/srv/odoo/odoo/tools/convert.py", line 733, in convert_file
    convert_xml_import(cr, module, fp, idref, mode, noupdate)
  File "/srv/odoo/odoo/tools/convert.py", line 799, in convert_xml_import
    obj.parse(doc.getroot())
  File "/srv/odoo/odoo/tools/convert.py", line 719, in parse
    self._tag_root(de)
  File "/srv/odoo/odoo/tools/convert.py", line 677, in _tag_root
    f(rec)
  File "/srv/odoo/odoo/tools/convert.py", line 681, in _tag_root
    raise ParseError('while parsing %s:%s, near\n%s' % (
Exception

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/srv/odoo/odoo/http.py", line 639, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/srv/odoo/odoo/http.py", line 315, in _handle_exception
    raise exception.with_traceback(None) from new_cause
odoo.tools.convert.ParseError: while parsing /srv/odoo/addons/point_of_sale/data/point_of_sale_data.xml:49, near
<function model="pos.config" name="post_install_pos_localisation"/>
ok, objevuji nové zásery, zatím nereagovat. Instalaci modulu Místo orodeje (POS) jsem dělal až po základní instalaci a setupu modulů fakturace a shopu ``` Chyba: Odoo Server Error Traceback (most recent call last): File "/srv/odoo/odoo/tools/convert.py", line 677, in _tag_root f(rec) File "/srv/odoo/odoo/tools/convert.py", line 330, in _tag_function _eval_xml(self, rec, env) File "/srv/odoo/odoo/tools/convert.py", line 201, in _eval_xml return odoo.api.call_kw(model, method_name, args, kwargs) File "/srv/odoo/odoo/api.py", line 392, in call_kw result = _call_kw_model(method, model, args, kwargs) File "/srv/odoo/odoo/api.py", line 365, in _call_kw_model result = method(recs, *args, **kwargs) File "/srv/odoo/addons/point_of_sale/models/pos_config.py", line 649, in post_install_pos_localisation pos_configs.setup_defaults(company) File "/srv/odoo/addons/point_of_sale/models/pos_config.py", line 658, in setup_defaults self.assign_payment_journals(company) File "/srv/odoo/addons/point_of_sale/models/pos_config.py", line 670, in assign_payment_journals payment_methods |= payment_methods.create({ File "<decorator-gen-65>", line 2, in create File "/srv/odoo/odoo/api.py", line 344, in _model_create_multi return create(self, [arg]) File "/srv/odoo/odoo/addons/base/models/ir_fields.py", line 533, in create recs = super().create(vals_list) File "<decorator-gen-13>", line 2, in create File "/srv/odoo/odoo/api.py", line 345, in _model_create_multi return create(self, arg) File "/srv/odoo/odoo/models.py", line 3868, in create records = self._create(data_list) File "/srv/odoo/odoo/models.py", line 3974, in _create cr.execute(query, params) File "<decorator-gen-3>", line 2, in execute File "/srv/odoo/odoo/sql_db.py", line 101, in check return f(self, *args, **kwargs) File "/srv/odoo/odoo/sql_db.py", line 298, in execute res = self._obj.execute(query, params) psycopg2.errors.NotNullViolation: null value in column "receivable_account_id" violates not-null constraint DETAIL: Failing row contains (1, Hotovost, null, t, 6, f, 1, null, t, 1, 2021-03-28 22:01:25.895985, 1, 2021-03-28 22:01:25.895985). The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/srv/odoo/odoo/addons/base/models/ir_http.py", line 237, in _dispatch result = request.dispatch() File "/srv/odoo/odoo/http.py", line 683, in dispatch result = self._call_function(**self.params) File "/srv/odoo/odoo/http.py", line 359, in _call_function return checked_call(self.db, *args, **kwargs) File "/srv/odoo/odoo/service/model.py", line 94, in wrapper return f(dbname, *args, **kwargs) File "/srv/odoo/odoo/http.py", line 347, in checked_call result = self.endpoint(*a, **kw) File "/srv/odoo/odoo/http.py", line 912, in __call__ return self.method(*args, **kw) File "/srv/odoo/odoo/http.py", line 531, in response_wrap response = f(*args, **kw) File "/srv/odoo/addons/web/controllers/main.py", line 1381, in call_button action = self._call_kw(model, method, args, kwargs) File "/srv/odoo/addons/web/controllers/main.py", line 1369, in _call_kw return call_kw(request.env[model], method, args, kwargs) File "/srv/odoo/odoo/api.py", line 396, in call_kw result = _call_kw_multi(method, model, args, kwargs) File "/srv/odoo/odoo/api.py", line 383, in _call_kw_multi result = method(recs, *args, **kwargs) File "<decorator-gen-72>", line 2, in button_immediate_install File "/srv/odoo/odoo/addons/base/models/ir_module.py", line 73, in check_and_log return method(self, *args, **kwargs) File "/srv/odoo/odoo/addons/base/models/ir_module.py", line 474, in button_immediate_install return self._button_immediate_function(type(self).button_install) File "/srv/odoo/odoo/addons/base/models/ir_module.py", line 592, in _button_immediate_function modules.registry.Registry.new(self._cr.dbname, update_module=True) File "/srv/odoo/odoo/modules/registry.py", line 89, in new odoo.modules.load_modules(registry._db, force_demo, status, update_module) File "/srv/odoo/odoo/modules/loading.py", line 453, in load_modules processed_modules += load_marked_modules(cr, graph, File "/srv/odoo/odoo/modules/loading.py", line 346, in load_marked_modules loaded, processed = load_module_graph( File "/srv/odoo/odoo/modules/loading.py", line 221, in load_module_graph load_data(cr, idref, mode, kind='data', package=package) File "/srv/odoo/odoo/modules/loading.py", line 69, in load_data tools.convert_file(cr, package.name, filename, idref, mode, noupdate, kind) File "/srv/odoo/odoo/tools/convert.py", line 733, in convert_file convert_xml_import(cr, module, fp, idref, mode, noupdate) File "/srv/odoo/odoo/tools/convert.py", line 799, in convert_xml_import obj.parse(doc.getroot()) File "/srv/odoo/odoo/tools/convert.py", line 719, in parse self._tag_root(de) File "/srv/odoo/odoo/tools/convert.py", line 677, in _tag_root f(rec) File "/srv/odoo/odoo/tools/convert.py", line 681, in _tag_root raise ParseError('while parsing %s:%s, near\n%s' % ( Exception The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/srv/odoo/odoo/http.py", line 639, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "/srv/odoo/odoo/http.py", line 315, in _handle_exception raise exception.with_traceback(None) from new_cause odoo.tools.convert.ParseError: while parsing /srv/odoo/addons/point_of_sale/data/point_of_sale_data.xml:49, near <function model="pos.config" name="post_install_pos_localisation"/> ```
Podhorecky commented 2021-03-29 00:06:21 +02:00 (Migrated from git.spotter.cz)

changed title from odoo - Modul Místo prodeje se o{-r-}mítá instalovat to odoo - Modul Místo prodeje se o{+d+}mítá instalovat

changed title from **odoo - Modul Místo prodeje se o{-r-}mítá instalovat** to **odoo - Modul Místo prodeje se o{+d+}mítá instalovat**
Disassembler commented 2021-03-29 07:34:08 +02:00 (Migrated from git.spotter.cz)

Jo, to je furt ten samý problém dokola. Asi bude nejsnazší, když si to za vydatného poznámkování uplácáte ve SpotterVM a až se vám to na dvacátý pokud podaří tam, tak to teprve provést u Hetznera. Dejte vědět, až bude vhodná chvíle to znova přeinstalovat.

Jo, to je furt ten samý problém dokola. Asi bude nejsnazší, když si to za vydatného poznámkování uplácáte ve SpotterVM a až se vám to na dvacátý pokud podaří tam, tak to teprve provést u Hetznera. Dejte vědět, až bude vhodná chvíle to znova přeinstalovat.
Podhorecky commented 2021-03-29 11:21:11 +02:00 (Migrated from git.spotter.cz)

ano, to bude asi nejlepší. vidim to stejně

ano, to bude asi nejlepší. vidim to stejně
Sign in to join this conversation.
No Label
CZ
OSM
pro info
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Spotter-Cluster/Hosting#56
No description provided.