我想使用"销售点"在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)
我该如何解决这个错误? 谢谢。
答案 0 :(得分:0)
正如Buket所述,快速答案是:设置>参数>公司属性添加property_account_receivable 但是,尚不清楚这些值是什么。
让我详细解释一下:
1)打开调试模式
2)转到“设置”>“参数”>“公司属性”
3)点击创建,您将看到创建新属性页面
4)在名称部分中输入:“ property_account_receivable_id”
5)字段部分,单击下拉菜单,然后选择搜索更多
5.1)搜索“ property_account_receivable_id”
5.2)如果显示很多项目,请在“联系人”模型中选择一个项目
5.3)单击创建
6)单击保存。
您可以对应付帐款做同样的事情 在这种情况下,请创建名称为“ property_account_payable_id”的属性 然后该字段为“应付帐款”(具有相同的联系人模型)