2022-08-05 10:02:04 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
<!-- This file is part of the cashbook-module from m-ds for Tryton.
|
|
|
|
The COPYRIGHT file at the top level of this repository contains the
|
|
|
|
full copyright notices and license terms. -->
|
|
|
|
<tryton>
|
|
|
|
<data>
|
|
|
|
|
|
|
|
<!-- views -->
|
|
|
|
<record model="ir.ui.view" id="book_view_list">
|
|
|
|
<field name="model">cashbook.book</field>
|
|
|
|
<field name="type">tree</field>
|
|
|
|
<field name="priority" eval="10"/>
|
|
|
|
<field name="name">book_list</field>
|
|
|
|
</record>
|
|
|
|
<record model="ir.ui.view" id="book_view_form">
|
|
|
|
<field name="model">cashbook.book</field>
|
|
|
|
<field name="type">form</field>
|
|
|
|
<field name="priority" eval="20"/>
|
|
|
|
<field name="name">book_form</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<!-- action view-->
|
|
|
|
<record model="ir.action.act_window" id="act_book_view">
|
2022-08-08 12:31:42 +00:00
|
|
|
<field name="name">Cashbook</field>
|
2022-08-05 10:02:04 +00:00
|
|
|
<field name="res_model">cashbook.book</field>
|
|
|
|
</record>
|
|
|
|
<record model="ir.action.act_window.view" id="act_book_view-1">
|
|
|
|
<field name="sequence" eval="10"/>
|
|
|
|
<field name="view" ref="book_view_list"/>
|
|
|
|
<field name="act_window" ref="act_book_view"/>
|
|
|
|
</record>
|
|
|
|
<record model="ir.action.act_window.view" id="act_book_view-2">
|
|
|
|
<field name="sequence" eval="20"/>
|
|
|
|
<field name="view" ref="book_view_form"/>
|
|
|
|
<field name="act_window" ref="act_book_view"/>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<!-- permission -->
|
|
|
|
<!-- anon: deny all -->
|
|
|
|
<record model="ir.model.access" id="access_book-anon">
|
|
|
|
<field name="model" search="[('model', '=', 'cashbook.book')]"/>
|
|
|
|
<field name="perm_read" eval="False"/>
|
|
|
|
<field name="perm_write" eval="False"/>
|
|
|
|
<field name="perm_create" eval="False"/>
|
|
|
|
<field name="perm_delete" eval="False"/>
|
|
|
|
</record>
|
|
|
|
<!-- admin: read/write -->
|
|
|
|
<record model="ir.model.access" id="access_book-group_admin">
|
|
|
|
<field name="model" search="[('model', '=', 'cashbook.book')]"/>
|
|
|
|
<field name="group" ref="res.group_admin"/>
|
|
|
|
<field name="perm_read" eval="True"/>
|
|
|
|
<field name="perm_write" eval="True"/>
|
|
|
|
<field name="perm_create" eval="True"/>
|
|
|
|
<field name="perm_delete" eval="True"/>
|
|
|
|
</record>
|
|
|
|
<!-- cashbook: read -->
|
|
|
|
<record model="ir.model.access" id="access_book-group_cashbook">
|
|
|
|
<field name="model" search="[('model', '=', 'cashbook.book')]"/>
|
|
|
|
<field name="group" ref="group_cashbook"/>
|
|
|
|
<field name="perm_read" eval="True"/>
|
|
|
|
<field name="perm_write" eval="False"/>
|
|
|
|
<field name="perm_create" eval="False"/>
|
|
|
|
<field name="perm_delete" eval="False"/>
|
|
|
|
</record>
|
|
|
|
|
2022-08-08 12:31:42 +00:00
|
|
|
<!-- button - open -->
|
|
|
|
<record model="ir.model.button" id="book_wfopen_button">
|
|
|
|
<field name="name">wfopen</field>
|
|
|
|
<field name="string">Open</field>
|
|
|
|
<field name="model" search="[('model', '=', 'cashbook.book')]"/>
|
|
|
|
</record>
|
|
|
|
<record model="ir.model.button-res.group"
|
|
|
|
id="book_wfopen_button-group_admin">
|
|
|
|
<field name="button" ref="book_wfopen_button"/>
|
|
|
|
<field name="group" ref="res.group_admin"/>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<!-- button - close -->
|
|
|
|
<record model="ir.model.button" id="book_wfclosed_button">
|
|
|
|
<field name="name">wfclosed</field>
|
|
|
|
<field name="string">Close</field>
|
|
|
|
<field name="model" search="[('model', '=', 'cashbook.book')]"/>
|
|
|
|
</record>
|
|
|
|
<record model="ir.model.button-res.group"
|
|
|
|
id="book_wfclosed_button-group_admin">
|
|
|
|
<field name="button" ref="book_wfclosed_button"/>
|
|
|
|
<field name="group" ref="res.group_admin"/>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<!-- button - done -->
|
|
|
|
<record model="ir.model.button" id="book_wfarchive_button">
|
|
|
|
<field name="name">wfarchive</field>
|
|
|
|
<field name="string">Archive</field>
|
|
|
|
<field name="model" search="[('model', '=', 'cashbook.book')]"/>
|
|
|
|
</record>
|
|
|
|
<record model="ir.model.button-res.group"
|
|
|
|
id="book_wfarchive_button-group_admin">
|
|
|
|
<field name="button" ref="book_wfarchive_button"/>
|
|
|
|
<field name="group" ref="res.group_admin"/>
|
|
|
|
</record>
|
|
|
|
|
2022-08-05 10:02:04 +00:00
|
|
|
</data>
|
|
|
|
</tryton>
|