line, book - wf + tests
This commit is contained in:
parent
ba442b726e
commit
654e9d2ee7
25 changed files with 786 additions and 160 deletions
38
book.xml
38
book.xml
|
@ -21,7 +21,7 @@ full copyright notices and license terms. -->
|
|||
|
||||
<!-- action view-->
|
||||
<record model="ir.action.act_window" id="act_book_view">
|
||||
<field name="name">Account</field>
|
||||
<field name="name">Cashbook</field>
|
||||
<field name="res_model">cashbook.book</field>
|
||||
</record>
|
||||
<record model="ir.action.act_window.view" id="act_book_view-1">
|
||||
|
@ -63,5 +63,41 @@ full copyright notices and license terms. -->
|
|||
<field name="perm_delete" eval="False"/>
|
||||
</record>
|
||||
|
||||
<!-- 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>
|
||||
|
||||
</data>
|
||||
</tryton>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue