[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:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user