[FIX] report: added default value on res_company.paperformat to allow out of the box use
OPW 726738
This commit is contained in:
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user