Skip to content

Instantly share code, notes, and snippets.

@Danielericking
Created September 16, 2020 19:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Danielericking/4f4b03764e6fe8c7bb3bcd704135f7b4 to your computer and use it in GitHub Desktop.
Save Danielericking/4f4b03764e6fe8c7bb3bcd704135f7b4 to your computer and use it in GitHub Desktop.
<record forcecreate="True" id="product_purchase_deposit_expense_hk" model="ir.property">
<field name="name">property_account_expense_id</field>
<field name="fields_id" search="[('model','=','product.template'),('name','=','property_account_expense_id')]"/>
<field name="res_id" eval="'product.template,'+str(ref('product_purchase_deposit'))"/> <!-- External ID -->
<field name="value" model="account.account" search="[('code','=','2300'),('company_id','=',ref('hbx_data.company_hbx_hk'))]" /> <!-- Odoo domain -->
<field name="company_id" ref="hbx_data.company_hbx_hk"/> <!-- External ID -->
</record>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment