Skip to Content
Menu
This question has been flagged

Hello , i am trying odoo 18 community edition 

everything installed freshly , from a new pc , new windows setup , new odoo installation from latest nightly odoo 18
activate full accounting feature using developer settings on group settings , no third party addons installed. 

i configure indonesian vat number at company , set e-faktur range , set customer with npwp/vat and pkp mode , 

everything went well with sales module


but when i try to download e-faktur , i get this error



Oops!

Something went wrong... If you really are stuck, share the report with your friendly support service

Hide technical details

Odoo Server Error

RPC_ERROR

Odoo Server Error

Occured on 192.168.1.61:8069 on 2025-01-25 09:09:19 GMT

Traceback (most recent call last):
  File "C:\Odoo18\server\odoo\tools\safe_eval.py", line 390, in safe_eval
    return unsafe_eval(c, globals_dict, locals_dict)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "ir.actions.server(437,)", line 1, in <module>
  File "C:\Odoo18\server\odoo\addons\l10n_id_efaktur\models\account_move.py", line 176, in download_efaktur
    self.l10n_id_efaktur_document.action_regenerate()
  File "C:\Odoo18\server\odoo\addons\l10n_id_efaktur\models\efaktur_document.py", line 57, in action_regenerate
    self._generate_csv()
  File "C:\Odoo18\server\odoo\addons\l10n_id_efaktur\models\efaktur_document.py", line 66, in _generate_csv
    output_head = self._generate_efaktur_invoice(delimiter)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Odoo18\server\odoo\addons\l10n_id_efaktur\models\efaktur_document.py", line 143, in _generate_efaktur_invoice
    eTax['TANGGAL_FAKTUR'] = move.invoice_date.strftime("%-d/%-m/%Y")
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: Invalid format string

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Odoo18\server\odoo\http.py", line 1957, in _transactioning
    return service_model.retrying(func, env=self.env)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Odoo18\server\odoo\service\model.py", line 137, in retrying
    result = func()
             ^^^^^^
  File "C:\Odoo18\server\odoo\http.py", line 1924, in _serve_ir_http
    response = self.dispatcher.dispatch(rule.endpoint, args)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Odoo18\server\odoo\http.py", line 2171, in dispatch
    result = self.request.registry['ir.http']._dispatch(endpoint)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Odoo18\server\odoo\addons\base\models\ir_http.py", line 329, in _dispatch
    result = endpoint(**request.params)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Odoo18\server\odoo\http.py", line 727, in route_wrapper
    result = endpoint(self, *args, **params_ok)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Odoo18\server\odoo\addons\web\controllers\action.py", line 58, in run
    result = action.run()
             ^^^^^^^^^^^^
  File "C:\Odoo18\server\odoo\addons\base\models\ir_actions.py", line 995, in run
    res = runner(run_self, eval_context=eval_context)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Odoo18\server\odoo\addons\base\models\ir_actions.py", line 827, in _run_action_code_multi
    safe_eval(self.code.strip(), eval_context, mode="exec", nocopy=True, filename=str(self))  # nocopy allows to return 'action'
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Odoo18\server\odoo\tools\safe_eval.py", line 404, in safe_eval
    raise ValueError('%r while evaluating\n%r' % (e, expr))
ValueError: ValueError('Invalid format string') while evaluating
'action = records.download_efaktur()'

The above server error caused the following client error:
RPC_ERROR: Odoo Server Error
    RPC_ERROR
        at makeErrorFromResponse (http://192.168.1.61:8069/web/assets/9ca566b/web.assets_web.min.js:3132:163)
        at XMLHttpRequest.<anonymous> (http://192.168.1.61:8069/web/assets/9ca566b/web.assets_web.min.js:3137:13)


can somebody help with this ? how to fix it ? i use version 15 16 and 17 , it worked perfectly

i need to download e-faktur 

Thanks


Jeff

Avatar
Discard
Author Best Answer

i found this answer already , it's happened on windows version only because of faktur date ,

and i solve it using ubuntu version of odoo 18 


Avatar
Discard
Related Posts Replies Views Activity
2
Apr 25
278
1
Sep 24
792
2
Jul 22
3643
1
Mar 15
3940
3
Mar 25
2586