[17.0][IMP] account_financial_report: Set custom intervales in aged report
This commit is contained in:
committed by
chaule97
parent
18a8cef8af
commit
6d6937346a
@@ -40,6 +40,9 @@ class AgedPartnerBalanceWizard(models.TransientModel):
|
||||
comodel_name="account.account",
|
||||
help="Ending account in a range",
|
||||
)
|
||||
age_partner_config_id = fields.Many2one(
|
||||
"account.age.report.configuration", string="Intervals configuration"
|
||||
)
|
||||
|
||||
@api.onchange("account_code_from", "account_code_to")
|
||||
def on_change_account_range(self):
|
||||
@@ -140,6 +143,7 @@ class AgedPartnerBalanceWizard(models.TransientModel):
|
||||
"partner_ids": self.partner_ids.ids,
|
||||
"show_move_line_details": self.show_move_line_details,
|
||||
"account_financial_report_lang": self.env.lang,
|
||||
"age_partner_config_id": self.age_partner_config_id.id,
|
||||
}
|
||||
|
||||
def _export(self, report_type):
|
||||
|
||||
@@ -33,6 +33,8 @@
|
||||
/>
|
||||
</group>
|
||||
<group name="account_filter" col="4">
|
||||
<label for="age_partner_config_id" />
|
||||
<field name="age_partner_config_id" nolabel="1" />
|
||||
<label for="account_ids" colspan="4" />
|
||||
<field name="receivable_accounts_only" />
|
||||
<field name="payable_accounts_only" />
|
||||
@@ -68,19 +70,16 @@
|
||||
default_focus="1"
|
||||
class="oe_highlight"
|
||||
/>
|
||||
or
|
||||
<button
|
||||
name="button_export_pdf"
|
||||
string="Export PDF"
|
||||
type="object"
|
||||
/>
|
||||
or
|
||||
<button
|
||||
name="button_export_xlsx"
|
||||
string="Export XLSX"
|
||||
type="object"
|
||||
/>
|
||||
or
|
||||
<button string="Cancel" class="oe_link" special="cancel" />
|
||||
</footer>
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user