mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
[IMP]account_move_template: Archive templates
This commit is contained in:
@@ -21,6 +21,7 @@ class AccountMoveTemplate(models.Model):
|
||||
line_ids = fields.One2many(
|
||||
'account.move.template.line', inverse_name='template_id',
|
||||
string='Lines')
|
||||
active = fields.Boolean(default=True)
|
||||
|
||||
_sql_constraints = [(
|
||||
'name_company_unique',
|
||||
|
||||
@@ -15,3 +15,4 @@ Module Contributors
|
||||
* Guewen Baconnier <guewen.baconnier@camptocamp.com>
|
||||
* Raf Ven <raf.ven@dynapps.be> (port to v11)
|
||||
* Jordi Ballester <jordi.ballester@eficent.com> (EFICENT)
|
||||
* Manuel Regidor <manuel.regidor@sygel.es>
|
||||
|
||||
@@ -82,6 +82,11 @@
|
||||
type="object"/>
|
||||
</header>
|
||||
<sheet>
|
||||
<div class="oe_button_box" name="button_box">
|
||||
<button name="toggle_active" type="object" class="oe_stat_button" icon="fa-archive">
|
||||
<field name="active" widget="boolean_button" options="{"terminology": "archive"}"/>
|
||||
</button>
|
||||
</div>
|
||||
<div class="oe_title">
|
||||
<label for="name" class="oe_edit_only"/>
|
||||
<h1><field name="name"/></h1>
|
||||
@@ -120,6 +125,7 @@
|
||||
<field name="model">account.move.template</field>
|
||||
<field name="arch" type="xml">
|
||||
<search string="Journal Entry Template">
|
||||
<filter string="Archived" name="inactive" domain="[('active','=',False)]"/>
|
||||
<field name="name"/>
|
||||
<group name="groupby">
|
||||
<filter name="journal_groupby" string="Journal" context="{'group_by': 'journal_id'}"/>
|
||||
|
||||
Reference in New Issue
Block a user