Skip to content

Instantly share code, notes, and snippets.

@ilyasProgrammer
Last active April 25, 2019 19:15
Show Gist options
  • Save ilyasProgrammer/f0b00d8f31c8f3b90a7592dae59fe58c to your computer and use it in GitHub Desktop.
Save ilyasProgrammer/f0b00d8f31c8f3b90a7592dae59fe58c to your computer and use it in GitHub Desktop.
Odoo add xml identifier to modify record via xml
<!-- Trick to bind to record created with UI -->
<record id="amz_warehouse_to_fba_ext_id" model="ir.model.data">
<field name="res_id">10</field>
<field name="model">stock.picking.type</field>
<field name="module">sale_store_amazon</field>
<field name="name">amz_warehouse_to_fba</field>
<field name="noupdate">False</field>
</record>
<record id="amz_warehouse_to_fba" model="stock.picking.type">
<field name="name">Ama A</field>
<field name="sequence_id" search="[('code','=','FF')]" model="ir.sequence"/>
<field name="code">outgoing</field>
<field name="warehouse_id" search="[('code','=','EE')]" model="stock.warehouse"/>
</record>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment