asset: liste mit reiter für aktuell/inaktiv/alle

This commit is contained in:
Frederik Jaeckel 2022-12-02 12:56:14 +01:00
parent 4ab79e4200
commit 53dfb14254
3 changed files with 51 additions and 0 deletions

View file

@ -35,6 +35,29 @@ full copyright notices and license terms. -->
<field name="act_window" ref="act_asset_view"/> <field name="act_window" ref="act_asset_view"/>
</record> </record>
<!-- domain view -->
<record model="ir.action.act_window.domain" id="act_asset_domain_current">
<field name="name">Current</field>
<field name="sequence" eval="10"/>
<field name="domain" eval="[('date', '&gt;=', Date(delta_days=-5))]" pyson="1"/>
<field name="count" eval="True"/>
<field name="act_window" ref="act_asset_view"/>
</record>
<record model="ir.action.act_window.domain" id="act_asset_domain_inactive">
<field name="name">Inactive</field>
<field name="sequence" eval="10"/>
<field name="domain" eval="[('date', '&lt;', Date(delta_days=-5))]" pyson="1"/>
<field name="count" eval="True"/>
<field name="act_window" ref="act_asset_view"/>
</record>
<record model="ir.action.act_window.domain" id="act_asset_domain_all">
<field name="name">All</field>
<field name="sequence" eval="10"/>
<field name="domain" eval="" pyson="1"/>
<field name="count" eval="True"/>
<field name="act_window" ref="act_asset_view"/>
</record>
<!-- permission --> <!-- permission -->
<!-- anon: deny all --> <!-- anon: deny all -->
<record model="ir.model.access" id="access_asset-anon"> <record model="ir.model.access" id="access_asset-anon">

View file

@ -67,6 +67,22 @@ msgid "Update Source"
msgstr "Quelle aktualisieren" msgstr "Quelle aktualisieren"
###############################
# ir.action.act_window.domain #
###############################
msgctxt "model:ir.action.act_window.domain,name:act_asset_domain_current"
msgid "Current"
msgstr "Aktuell"
msgctxt "model:ir.action.act_window.domain,name:act_asset_domain_inactive"
msgid "Inactive"
msgstr "Inaktiv"
msgctxt "model:ir.action.act_window.domain,name:act_asset_domain_all"
msgid "All"
msgstr "Alle"
############################ ############################
# investment.source_update # # investment.source_update #
############################ ############################

View file

@ -46,6 +46,18 @@ msgctxt "model:ir.action,name:updt_source_wiz"
msgid "Update Source" msgid "Update Source"
msgstr "Update Source" msgstr "Update Source"
msgctxt "model:ir.action.act_window.domain,name:act_asset_domain_current"
msgid "Current"
msgstr "Current"
msgctxt "model:ir.action.act_window.domain,name:act_asset_domain_inactive"
msgid "Inactive"
msgstr "Inactive"
msgctxt "model:ir.action.act_window.domain,name:act_asset_domain_all"
msgid "All"
msgstr "All"
msgctxt "model:investment.source_update,name:" msgctxt "model:investment.source_update,name:"
msgid "Update Source" msgid "Update Source"
msgstr "Update Source" msgstr "Update Source"