Add journal - period buttons to form view

This commit is contained in:
Cédric Krier
2024-03-14 13:51:20 +01:00
parent 440827194d
commit 4da709134d
3 changed files with 9 additions and 3 deletions
+2
View File
@@ -214,10 +214,12 @@ this repository contains the full copyright notices and license terms. -->
<record model="ir.model.button" id="journal_period_close_button">
<field name="model">account.journal.period</field>
<field name="name">close</field>
<field name="string">Close</field>
</record>
<record model="ir.model.button" id="journal_period_reopen_button">
<field name="model">account.journal.period</field>
<field name="name">reopen</field>
<field name="string">Reopen</field>
</record>
</data>
+5 -1
View File
@@ -12,5 +12,9 @@ this repository contains the full copyright notices and license terms. -->
<newline/>
<label name="state"/>
<field name="state" colspan="4"/>
<field name="state"/>
<group id="buttons" colspan="2" col="-1">
<button name="reopen"/>
<button name="close"/>
</group>
</form>
@@ -5,7 +5,7 @@ this repository contains the full copyright notices and license terms. -->
<field name="company" expand="1" optional="1"/>
<field name="journal" icon="icon" expand="1"/>
<field name="period" expand="1"/>
<button name="reopen" string="Re-Open"/>
<button name="close" string="Close"/>
<button name="reopen"/>
<button name="close"/>
<field name="state" tree_invisible="1"/>
</tree>