[IMP] account_financial_report: added 'auto sequence' option in Journal Ledger

This commit is contained in:
valen
2021-06-14 21:40:04 +02:00
committed by chaule97
parent 6fc73b237a
commit 93d3792bae
10 changed files with 89 additions and 6 deletions

View File

@@ -40,6 +40,7 @@ class JournalLedgerReportWizard(models.TransientModel):
required=True,
)
with_account_name = fields.Boolean(default=False)
with_auto_sequence = fields.Boolean(string="Show Auto Sequence", default=False)
@api.model
def _get_move_targets(self):
@@ -128,6 +129,7 @@ class JournalLedgerReportWizard(models.TransientModel):
"group_option": self.group_option,
"with_account_name": self.with_account_name,
"account_financial_report_lang": self.env.lang,
"with_auto_sequence": self.with_auto_sequence,
}
def _export(self, report_type):

View File

@@ -31,6 +31,7 @@
<field name="group_option" />
<field name="foreign_currency" />
<field name="with_account_name" />
<field name="with_auto_sequence" />
</group>
<group />
</group>