Skip to content

Instantly share code, notes, and snippets.

@ianjosephwilson
Created January 18, 2013 23:25
Show Gist options
  • Save ianjosephwilson/4569553 to your computer and use it in GitHub Desktop.
Save ianjosephwilson/4569553 to your computer and use it in GitHub Desktop.
search domain for inventories
<record model="ir.action.act_window" id="act_inventory_form">
<field name="name">Inventories</field>
<field name="res_model">inventory.inventory</field>
<field name="search_value">[('create_date', '>=', DateTime(hour=0, minute=0, second=0, microsecond=0, delta_years=-1))]</field>
</record>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment