hey all,
I have a new problem for you.
I was sure of my code this time, but I finally still have a problem.
Our goal is to set the category expense account with XML only. In the picture, it is set to 51100, but we want to change it.
Example 1 : WORKING
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data noupdate="0">
<record id="product_lapagept.achats" model="product.category">
<field name="name">Achats - PT</field>
</record>
</data>
</openerp>
Example 2 : not WORKING
(account_lapagept.stock_en_transit is a valid external ID)
(we depend of product and account_lapagept in the __openerp__.py file)
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data noupdate="0">
<record id="product_lapagept.achats" model="product.category">
<field name="name">Achats - PT</field>
<field name="property_account_expense_categ" eval="[(6, 0, [ref('account_lapagept.stock_en_transit')])]" />
</record>
</data>
</openerp>
What is the problem with our line
<field name="property_account_expense_categ" eval="[(6, 0, [ref('account_lapagept.stock_en_transit')])]" />
????
Thanks