0

我想在 odoo-9 中使用“销售点”模块,但出现错误。我创建了 2 家公司并进行了配置。(我不确定)然后,当我确认付款时,我得到了错误。

    Traceback (most recent call last):
  File "C:\Program Files (x86)\Odoo 9.0-20151221\server\.\openerp\http.py", line 605, in _handle_exception
  File "C:\Program Files (x86)\Odoo 9.0-20151221\server\.\openerp\http.py", line 642, in dispatch
  File "C:\Program Files (x86)\Odoo 9.0-20151221\server\.\openerp\http.py", line 316, in _call_function
  File "C:\Program Files (x86)\Odoo 9.0-20151221\server\.\openerp\service\model.py", line 118, in wrapper
  File "C:\Program Files (x86)\Odoo 9.0-20151221\server\.\openerp\http.py", line 309, in checked_call
  File "C:\Program Files (x86)\Odoo 9.0-20151221\server\.\openerp\http.py", line 893, in __call__
  File "C:\Program Files (x86)\Odoo 9.0-20151221\server\.\openerp\http.py", line 471, in response_wrap
  File "C:\Program Files (x86)\Odoo 9.0-20151221\server\openerp\addons\web\controllers\main.py", line 892, in call_kw
  File "C:\Program Files (x86)\Odoo 9.0-20151221\server\openerp\addons\web\controllers\main.py", line 884, in _call_kw
  File "C:\Program Files (x86)\Odoo 9.0-20151221\server\.\openerp\api.py", line 238, in wrapper
  File "C:\Program Files (x86)\Odoo 9.0-20151221\server\openerp\addons\point_of_sale\point_of_sale.py", line 765, in create_from_ui
  File "C:\Program Files (x86)\Odoo 9.0-20151221\server\.\openerp\api.py", line 238, in wrapper
  File "C:\Program Files (x86)\Odoo 9.0-20151221\server\openerp\addons\point_of_sale\point_of_sale.py", line 720, in _process_order
  File "C:\Program Files (x86)\Odoo 9.0-20151221\server\.\openerp\api.py", line 238, in wrapper
  File "C:\Program Files (x86)\Odoo 9.0-20151221\server\openerp\addons\point_of_sale\point_of_sale.py", line 1040, in add_payment
UserError: (u'There is no receivable account defined to make payment.', None)

我该如何解决这个错误?谢谢你。

4

1 回答 1

0

正如 Buket 所提到的,快速回答是:设置 > 参数 > 公司属性添加 property_account_receivable 但是,尚不清楚这些值是什么。

让我详细解释一下:

1) 开启调试模式

2) 转到设置 > 参数 > 公司属性

3) 点击创建,您将看到创建新属性页面

4)在名称部分输入:“property_account_receivable_id”

5)字段部分单击下拉并选择搜索更多

5.1) 搜索“property_account_receivable_id”

5.2)如果显示的项目很多,选择Contact model中的一项

5.3) 点击创建

6) 单击保存。

您可以对应付帐款执行相同操作在这种情况下,创建名称为“property_account_payable_id”的属性然后该字段为应付帐款(具有相同的联系人模型)

于 2019-11-11T05:09:15.490 回答