[FIX] report: added default value on res_company.paperformat to allow out of the box use

OPW 726738
This commit is contained in:
Lucas Perais (lpe)
2017-04-03 08:56:50 +02:00
parent de1226011b
commit 173d9db667
+1 -1
View File
@@ -6,7 +6,7 @@ from odoo import api, fields, models
class ResCompany(models.Model):
_inherit = 'res.company'
paperformat_id = fields.Many2one('report.paperformat', 'Paper format')
paperformat_id = fields.Many2one('report.paperformat', 'Paper format', default=lambda self: self.env.ref('report.paperformat_euro'))
external_report_layout = fields.Selection([
('background', 'Background'),
('boxed', 'Boxed'),