Issue 10449

Title
Missing adaption in module product_kit when module purchase is not installed
Priority
bug
Status
resolved
Nosy list
ced, reviewbot, roundup-bot, yangoon
Assigned to
ced
Keywords
review

Created on 2021-05-20.11:10:59 by yangoon, last changed 2 weeks ago by roundup-bot.

Messages

New changeset 34cf5d394be1 by Cédric Krier in branch '6.0':
Import extra module exception only when used
https://hg.tryton.org/modules/product_kit/rev/34cf5d394be1
New changeset ba87aee0021e by Cédric Krier in branch 'default':
Import extra module exception only when used
https://hg.tryton.org/tryton-env/rev/ba87aee0021e
New changeset e6d4cdfcbb2a by Cédric Krier in branch 'default':
Import extra module exception only when used
https://hg.tryton.org/modules/product_kit/rev/e6d4cdfcbb2a
Author: [hidden] (yangoon) Tryton translator
Date: 2021-05-20.11:10:59

product_kit installed without purchase:

Traceback (most recent call last):
File "/home/mathiasb/.virtualenvs/pkit/bin/trytond", line 34, in <module>
Pool.start()
File "/home/mathiasb/.virtualenvs/pkit/lib/python3.9/site-packages/trytond/pool.py", line 105, in start
register_classes()
File "/home/mathiasb/.virtualenvs/pkit/lib/python3.9/site-packages/trytond/modules/__init__.py", line 346, in register_classes
the_module = import_module(module)
File "/home/mathiasb/.virtualenvs/pkit/lib/python3.9/site-packages/trytond/modules/__init__.py", line 76, in import_module
module = spec.loader.load_module()
File "<frozen importlib._bootstrap_external>", line 469, in _check_name_wrapper
File "<frozen importlib._bootstrap_external>", line 969, in load_module
File "<frozen importlib._bootstrap_external>", line 794, in load_module
File "<frozen importlib._bootstrap>", line 274, in _load_module_shim
File "<frozen importlib._bootstrap>", line 711, in _load
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 790, in exec_module
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "/home/mathiasb/.virtualenvs/pkit/product_kit/__init__.py", line 7, in <module>
from . import purchase
File "/home/mathiasb/.virtualenvs/pkit/product_kit/purchase.py", line 8, in <module>
from trytond.modules.purchase.exceptions import PartyLocationError
ModuleNotFoundError: No module named 'trytond.modules.purchase'

History
Date User Action Args
2021-07-09 22:58:49roundup-botsetkeyword: - backport
messages: + msg68812
2021-06-25 01:17:11roundup-botsetmessages: + msg68422
2021-06-25 01:17:06roundup-botsetmessages: + msg68421
nosy: + roundup-bot
status: testing -> resolved
2021-06-25 01:16:07cedsetassignedto: ced
keyword: + backport
nosy: + ced
type: crash
2021-06-15 00:30:30reviewbotsetmessages: + msg68254
nosy: + reviewbot
2021-06-15 00:05:24cedsetkeyword: + review
reviews: 348711002
status: unread -> testing
2021-05-20 11:10:59yangooncreate