Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
2103 มุมมอง

Odoo 16.0 On Premise

Error when creating invoice in field service module

----------------------------------------------------

Field service>

My task>

Select task>

Regular invoice>

Create invoice>

=

Traceback (most recent call last):
  File "/odoo/odoo-server/odoo/http.py", line 1584, in _serve_db
    return service_model.retrying(self._serve_ir_http, self.env)
  File "/odoo/odoo-server/odoo/service/model.py", line 133, in retrying
    result = func()
  File "/odoo/odoo-server/odoo/http.py", line 1611, in _serve_ir_http
    response = self.dispatcher.dispatch(rule.endpoint, args)
  File "/odoo/odoo-server/odoo/http.py", line 1809, in dispatch
    result = self.request.registry['ir.http']._dispatch(endpoint)
  File "/odoo/odoo-server/odoo/addons/base/models/ir_http.py", line 154, in _dispatch
    result = endpoint(**request.params)
  File "/odoo/odoo-server/odoo/http.py", line 697, in route_wrapper
    result = endpoint(self, *args, **params_ok)
  File "/odoo/enterprise/addons/web/controllers/dataset.py", line 46, in call_button
    action = self._call_kw(model, method, args, kwargs)
  File "/odoo/enterprise/addons/web/controllers/dataset.py", line 33, in _call_kw
    return call_kw(request.env[model], method, args, kwargs)
  File "/odoo/odoo-server/odoo/api.py", line 461, in call_kw
    result = _call_kw_multi(method, model, args, kwargs)
  File "/odoo/odoo-server/odoo/api.py", line 448, in _call_kw_multi
    result = method(recs, *args, **kwargs)
  File "/odoo/enterprise/addons/sale/wizard/sale_make_invoice_advance.py", line 149, in create_invoices
    self._create_invoices(self.sale_order_ids)
  File "/odoo/enterprise/addons/industry_fsm_sale/wizard/sale_make_invoice_advance.py", line 11, in _create_invoices
    invoices = super()._create_invoices(sale_orders)
  File "/odoo/enterprise/addons/sale_timesheet/wizard/sale_make_invoice_advance.py", line 51, in _create_invoices
    return super()._create_invoices(sale_orders)
  File "/odoo/enterprise/addons/sale/wizard/sale_make_invoice_advance.py", line 161, in _create_invoices
    return sale_orders._create_invoices(final=self.deduct_down_payments)
  File "/odoo/enterprise/addons/sale_timesheet/models/sale_order.py", line 120, in _create_invoices
    moves = super()._create_invoices(grouped=grouped, final=final, date=date)
TypeError: sale_order._create_invoices() got an unexpected keyword argument 'date'

Any help would be appreciated Thank you

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

Thanks for your reply Niyas 

>In Runbot the process works correctly

= custom codes are not causing any issues = I have no Custom Code that im aware of
= you are having latest 16.0 source code in your instance = Im using Odoo 16.0 Enterprise

Thankyou


อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi,

Can you provide a detailed steps to reproduce the same in standard odoo 16 instance ? I tried for the same in runbot and couldn't reproduce the same.

See if you can reproduce the issue here in odoo runbot:  https://runbot.odoo.com/

If yes, please report it in github: https://github.com/odoo/odoo/issues  , if you are not able to reproduce the same in runbot, you can ensure below points:-

* custom codes are not causing any issues
* you are having latest 16.0 source code in your instance

Thanks

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
พ.ค. 24
2704
Deferred account issue แก้ไขแล้ว
1
ส.ค. 24
1555
invoice paid แก้ไขแล้ว
1
ต.ค. 22
2449
1
มี.ค. 15
6087
2
เม.ย. 25
1861