Browse Source

[FIX] account_chart_report: Add ondelete=cascade to wizard

Wizards should never have `required=True` without `ondelete="cascade"`, or they forbid deletion of the referenced model.

@Tecnativa TT18838
pull/635/head
Jairo Llopis 5 years ago
parent
commit
4bc77a28d0
No known key found for this signature in database GPG Key ID: 59564BF1E22F314F
  1. 1
      account_chart_report/wizard/account_report_chart_of_account.py

1
account_chart_report/wizard/account_report_chart_of_account.py

@ -32,6 +32,7 @@ class ChartOfAccountsReport(models.TransientModel):
'Chart of Accounts',
help='Select Charts of Accounts',
required=True,
ondelete="cascade",
domain=([('parent_id', '=', False)]))
@api.multi

Loading…
Cancel
Save