Skip to Content
Menu
This question has been flagged
1 Reply
3897 Views

win10+python3.8.5 or python3.7.7 + postgresql12.2 + odoo14 community 20201113

http://localhost:8069/web/database/manager
Odoo14 creates the database and runs for a while prompting Database creation error: Access denied.


Look at the database and see that it was created successfully, there are only 93 tables, the log has these errors, I wonder why

-------------------------odoo-server.log-------------------------------------

2020-11-13 14:34:39,648 2152 ERROR odoo14 odoo.addons.base.models.ir_cron: Call from cron Expense OCR: Update All Status for server action #665 failed in Job #31 

Traceback (most recent call last):

  File "F:\odoo14\odoo\tools\safe_eval.py", line 324, in safe_eval

    return unsafe_eval(c, globals_dict, locals_dict)

  File "", line 1, in <module>

AttributeError: 'hr.expense' object has no attribute 'check_all_status'


During handling of the above exception, another exception occurred:


Traceback (most recent call last):

  File "F:\odoo14\odoo\addons\base\models\ir_cron.py", line 110, in _callback

    self.env['ir.actions.server'].browse(server_action_id).run()

  File "F:\odoo14\odoo\addons\base\models\ir_actions.py", line 622, in run

    res = runner(run_self, eval_context=eval_context)

  File "F:\odoo14\odoo\addons\base\models\ir_actions.py", line 491, in _run_action_code_multi

    safe_eval(self.code.strip(), eval_context, mode="exec", nocopy=True)  # nocopy allows to return 'action'

  File "F:\odoo14\odoo\tools\safe_eval.py", line 340, in safe_eval

    raise ValueError('%s: "%s" while evaluating\n%r' % (ustr(type(e)), ustr(e), expr))

ValueError: <class 'AttributeError'>: "'hr.expense' object has no attribute 'check_all_status'" while evaluating

'model.check_all_status()'

2020-11-13 14:34:39,649 2152 INFO odoo14 odoo.addons.base.models.ir_cron: Job `Expense OCR: Update All Status` done. 

2020-11-13 14:35:39,654 2152 INFO odoo14 odoo.addons.base.models.ir_cron: Starting job `Post process payment transactions`. 

2020-11-13 14:35:39,664 2152 INFO odoo14 odoo.addons.base.models.ir_cron: Job `Post process payment transactions` done. 

2020-11-13 14:38:39,691 2152 INFO odoo14 odoo.addons.base.models.ir_cron: Starting job `Lunch: automatic email send`. 

2020-11-13 14:38:39,701 2152 INFO odoo14 odoo.addons.base.models.ir_cron: Job `Lunch: automatic email send` done. 

2020-11-13 14:38:39,702 2152 INFO odoo14 odoo.addons.base.models.ir_cron: Starting job `Lunch: alert chat notification`. 

2020-11-13 14:38:39,712 2152 INFO odoo14 odoo.addons.base.models.ir_cron: Job `Lunch: alert chat notification` done. 



////////////////////odoo.conf//////////////////////////

[options]

addons_path = F:\odoo14\extra-addons

admin_passwd = $pbkdf2-sha512$25000$jXEOgbDWeu/9H.Nci1FKqQ$cpRPnQeSOtvVLnGjMKsdvcHIMLArzGt8c7F0fkbs4pD6y1Y6uXwg2.OBu9qLQ5wR6H/zPYgPmht/WhLTc0R/XA

csv_internal_sep = ,

data_dir = F:\odoo14\data

db_host = localhost

db_maxconn = 64

db_name = False

db_password = odoo

db_port = 5432

;db_sslmode = prefer

db_template = template0

db_user = odoo

dbfilter = 

demo = {}

email_from = False

geoip_database = C:\usr\share\GeoIP\GeoLite2-City.mmdb

http_enable = True

http_interface = 

http_port = 8069

import_partial =

limit_memory_hard = 2684354560

limit_memory_soft = 2147483648

limit_request = 8192

limit_time_cpu = 60

limit_time_real = 120

limit_time_real_cron = -1

list_db = True

log_db = False

log_db_level = warning

log_handler = :INFO

log_level = info

logfile = F:\odoo14\odoo-server.log

longpolling_port = 8072

max_cron_threads = 2

osv_memory_age_limit = False

osv_memory_count_limit = False

pg_path = F:\PostgreSQL\12\bin

pidfile = 

proxy_mode = False

reportgz = False

screencasts = 

screenshots = C:\Users\Administrator\AppData\Local\Temp\odoo_tests

server_wide_modules = base,web

smtp_password = False

smtp_port = 25

smtp_server = localhost

smtp_ssl = False

smtp_user = False

syslog = False

test_enable = False

test_file = 

test_tags = None

transient_age_limit = 1.0

translate_modules = ['all']

unaccent = False

upgrade_path = 

without_demo = False

workers = None

Avatar
Discard

Error from model hr expense, make sure extra addons are working correctly. also, make sure the role is configured correctly

Best Answer

Hi,

Make sure that the function is defined in the correct model.


Hope it helps

Avatar
Discard
Related Posts Replies Views Activity
0
May 25
12
2
Jan 25
2459
1
Dec 24
6150
1
Nov 24
2598
1
Nov 24
1917