0
我想设置默认帐户对于某些字段,为我写这样设置其他科目核算模块
<!-- 1.Income account–311000 -->
<record forcecreate="True" id="property_account_income_product" model="ir.property">
<field name="name">property_account_income</field>
<field name="fields_id" search="[('model','=','product.template'),('name','=','property_account_income')]"/>
<field eval="'account.account,'+str(account_account_456)" name="value"/>
<field name="company_id" ref="base.main_company"/>
</record>
在account.account.template一些代码,我写的代码像
<record model="account.account.template" id="account_account_456">
<field name="name">INCOME FROM SALES</field>
<field name="code">311000</field>
<field name="type">other</field>
<field name="user_type" ref="account.data_account_type_income"/>
<field name="reconcile" eval="False"/>
<field name="parent_id" ref="account_account_256"/>
</record>
但更新数据库后它设置不同的帐户 我不知道为什么,但没有设置正确的帐户 请帮我 谢谢...
现在,我得到确切的问题,首先我把记录在account.account.template这一纪录也被自动添加到account.account,当我尝试添加记录到ir.property搜索该帐户进去。 account.template采取ID和account.account
显示记录,所以这个问题是ID不匹配在account.account和account.account.template 如何解决这个问题,对不起英语
我想为字段property_account_income不是为property_account_income_product并且没有其他字段property_account_income –