[IMP] account_fr_fec: fix SQL Memory error when FEC too big

Set fec_data to attachment True to avoid storing data in DB and generating memory alloc errors.

closes odoo/odoo#83620

Task: 2453453
X-original-commit: e2d4a6bd03361188f7454015574896b52aa797ef
Signed-off-by: William André (wan) <wan@odoo.com>
This commit is contained in:
jbw
2022-01-28 18:58:47 +00:00
parent 0e8e71aa9e
commit 0f4cc6dcce
+1 -1
View File
@@ -19,7 +19,7 @@ class AccountFrFec(models.TransientModel):
date_from = fields.Date(string='Start Date', required=True)
date_to = fields.Date(string='End Date', required=True)
fec_data = fields.Binary('FEC File', readonly=True, attachment=False)
fec_data = fields.Binary('FEC File', readonly=True)
filename = fields.Char(string='Filename', size=256, readonly=True)
test_file = fields.Boolean()
export_type = fields.Selection([