Skip to content

Commit

Permalink
[IMP] brand_external_report_layout : keep original company for report…
Browse files Browse the repository at this point in the history
…s and just temporarily use brand data - do not use company details and footer from brand, so that it could be used in multi-company - this avoid conflicts with other modules overriding company to add information in reports Fixes OCA#167 Fixes OCA#179
  • Loading branch information
metaminux committed Nov 1, 2023
1 parent aa1acba commit 82ae876
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions brand_external_report_layout/wizards/brand_document_layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class BrandDocumentLayout(models.TransientModel):

logo = fields.Binary(related="brand_id.logo", readonly=False)
report_header = fields.Html(related="brand_id.report_header", readonly=False)
report_footer = fields.Html(readonly=True)
report_footer = fields.Html(default=None, readonly=True)
paperformat_id = fields.Many2one(related="brand_id.paperformat_id", readonly=False)
external_report_layout_id = fields.Many2one(
related="brand_id.external_report_layout_id", readonly=False
Expand All @@ -30,7 +30,7 @@ class BrandDocumentLayout(models.TransientModel):
font = fields.Selection(related="brand_id.font", readonly=False)
primary_color = fields.Char(related="brand_id.primary_color", readonly=False)
secondary_color = fields.Char(related="brand_id.secondary_color", readonly=False)
company_details = fields.Html(readonly=True)
company_details = fields.Html(default=None, readonly=True)
layout_background = fields.Selection(
related="brand_id.layout_background", readonly=False
)
Expand Down

0 comments on commit 82ae876

Please sign in to comment.