[IMP] stock_account: stock journal in multicompany

Restrict the property_stock_journal to the main company only. This avoids errors in multicompany when the stock journal of the main company (getting an error company mismatch) is used instead of a more useful message explaining the missing stock journal.
Fixes #3251
This commit is contained in:
Martin Trigaux
2014-10-28 15:57:14 +01:00
parent 4b6363b7a6
commit ed5fc84a37
+1
View File
@@ -6,6 +6,7 @@
<field name="name">property_stock_journal</field>
<field name="fields_id" search="[('model', '=', 'product.category'), ('name', '=', 'property_stock_journal')]"/>
<field eval="'account.journal,'+str(ref('stock_journal'))" model="account.journal" name="value"/>
<field name="company_id" ref="base.main_company"/>
</record>
<record forcecreate="True" id="property_stock_account_output_prd" model="ir.property">