Buongiorno a tutti, ho installato il modulo hr_payroll_account_community per Odoo 14, funziona tutto bene, eccetto che quando vado a confermare la busta paga (mi serve solo per la generazione delle scritture contabili, il lavoro sporco lo fa il consulente) mi da un errore come il seguente:
Errore:
Odoo Server Error
Traceback (most recent call last):
File "C:\Program Files\Odoo 14.0\server\odoo\addons\base\models\ir_http.py", line 237, in _dispatch
result = request.dispatch()
File "C:\Program Files\Odoo 14.0\server\odoo\http.py", line 685, in dispatch
result = self._call_function(**self.params)
File "C:\Program Files\Odoo 14.0\server\odoo\http.py", line 361, in _call_function
return checked_call(self.db, *args, **kwargs)
File "C:\Program Files\Odoo 14.0\server\odoo\service\model.py", line 94, in wrapper
return f(dbname, *args, **kwargs)
File "C:\Program Files\Odoo 14.0\server\odoo\http.py", line 349, in checked_call
result = self.endpoint(*a, **kw)
File "C:\Program Files\Odoo 14.0\server\odoo\http.py", line 914, in __call__
return self.method(*args, **kw)
File "C:\Program Files\Odoo 14.0\server\odoo\http.py", line 533, in response_wrap
response = f(*args, **kw)
File "C:\Program Files\Odoo 14.0\server\odoo\addons\web\controllers\main.py", line 1398, in call_button
action = self._call_kw(model, method, args, kwargs)
File "C:\Program Files\Odoo 14.0\server\odoo\addons\web\controllers\main.py", line 1386, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "C:\Program Files\Odoo 14.0\server\odoo\api.py", line 399, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "C:\Program Files\Odoo 14.0\server\odoo\api.py", line 386, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "C:\Program Files\Odoo 14.0\server\odoo\addons\hr_payslip_monthly_report\models\hr_payslip.py", line 35, in action_payslip_done
res = super(HrPayslip, self).action_payslip_done()
File "C:\Program Files\Odoo 14.0\server\odoo\addons\hr_payroll_account_community\models\hr_payroll_account.py", line 110, in action_payslip_done
acc_id = slip.journal_id.default_credit_account_id.id
Exception
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Program Files\Odoo 14.0\server\odoo\http.py", line 641, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "C:\Program Files\Odoo 14.0\server\odoo\http.py", line 317, in _handle_exception
raise exception.with_traceback(None) from new_cause
AttributeError: 'account.journal' object has no attribute 'default_credit_account_id'
Si lo so, il server è Windows ... ma io sono affezionato :-)
Grazie per chi riesce a farmi capire dove ho sbagliato.
Simone