Skip to Content
Menu
This question has been flagged
1938 Views

Hi


I am trying to create product categories and insert the properties for accounting. below is an XML snippet.



<record id="product_category_2" model="product.category">
<field name="name">Spectacle Lenses</field>
<field name="property_cost_method">average</field>
<field name="property_valuation">real_time</field>
<field name="property_account_income_categ_id" ref="l10n_za_humint.1_500030"/>
<field name="property_account_expense_categ_id" ref="l10n_za_humint.1_600030"/>
<field name="property_stock_account_input_categ_id" ref="l10n_za_humint.1_200000"/>
<field name="property_stock_account_output_categ_id" ref="l10n_za_humint.1_100000"/>
<field name="property_stock_valuation_account_id" ref="l10n_za_humint.1_100030"/>

the 1 in in the ref directive refers to res.company.id. Am I amble to reference this field in the XML so this snippet will work with any company in a multicompoany instance?

Avatar
Discard