Repository
OCA/brand · module folder · Try on Runboat
Module version
1.0.0
Category
Uncategorized
Folder size
0.15 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/brand
Last tracking update
2026-08-07 08:43:05
Authors
ACSONE SA/NV, Odoo Community Association (OCA)
Maintainers
ACSONE SA/NV, Odoo Community Association (OCA)
Committers
Weblate, OCA-git-bot, oca-ci, bosd
Odoo dependencies
OCA/brand:
odoo/odoo:
- web
Python dependencies
None
System dependencies
None
Required by
None
Description
This module allows you to have a different layout by brand for your
external reports.

Code Analysis

Views touched (11)
XML IDNameModelTypeStatus
brand_document_layout_form_view brand.document.layout form Inherits web.view_base_document_layout
brand_external_layout brand_external_layout ir.ui.view qweb Inherits web.external_layout
external_layout_bold external_layout_bold ir.ui.view qweb Inherits web.external_layout_bold
external_layout_boxed external_layout_boxed ir.ui.view qweb Inherits web.external_layout_boxed
external_layout_bubble external_layout_bubble ir.ui.view qweb Inherits web.external_layout_bubble
external_layout_folder external_layout_folder ir.ui.view qweb Inherits web.external_layout_folder
external_layout_standard external_layout_standard ir.ui.view qweb Inherits web.external_layout_standard
external_layout_striped external_layout_striped ir.ui.view qweb Inherits web.external_layout_striped
external_layout_wave external_layout_wave ir.ui.view qweb Inherits web.external_layout_wave
res_brand_form_view res.brand form Inherits brand.res_brand_form_view
styles_brand_report styles_brand_report ir.ui.view qweb New
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (2)

New fields (12)
  • brand_id Many2one → res.brand
    required=True args: 'res.brand'
  • company_details Html
    readonly=False related='brand_id.company_details'
  • external_report_layout_id Many2one
    readonly=False related='brand_id.external_report_layout_id'
  • font Selection
    readonly=False related='brand_id.font'
  • layout_background Selection
    readonly=False related='brand_id.layout_background'
  • layout_background_image Binary
    readonly=False related='brand_id.layout_background_image'
  • logo Binary
    readonly=False related='brand_id.logo'
  • paperformat_id Many2one
    readonly=False related='brand_id.paperformat_id'
  • primary_color Char
    readonly=False related='brand_id.primary_color'
  • report_footer Html
    readonly=False related='brand_id.report_footer'
  • report_header Html
    readonly=False related='brand_id.report_header'
  • secondary_color Char
    readonly=False related='brand_id.secondary_color'
Public methods (0)

No public methods.

New fields (12)
  • company_details Html
    help='Header text displayed at the top of all reports.' string='Brand Details'
  • external_report_layout_id Many2one → ir.ui.view
    comodel_name='ir.ui.view' string='Document Template'
  • font Selection
    default='Lato' args: [('Lato', 'Lato'), ('Roboto', 'Roboto'), ('Open_Sans', 'Open Sans'), ('Montserrat', 'Montserrat'), ('Oswald', 'Oswald'), ('Raleway', 'Raleway'), ('Tajawal', 'Tajawal'), ('Fira_Mono', 'Fira Mono')]
  • is_company_details_empty Boolean
    compute='_compute_empty_company_details'
  • layout_background Selection
    default='Blank' required=True args: [('Blank', 'Blank'), ('Custom', 'Custom')]
  • layout_background_image Binary
    args: 'Background Image'
  • logo Binary
    default=_get_default_brand_logo readonly=False related='partner_id.image_1920' string='Brand Logo'
  • paperformat_id Many2one → report.paperformat
    default=<expr> args: 'report.paperformat', 'Paper format'
  • primary_color Char
  • report_footer Html
    help='Footer text displayed at the bottom of all reports.' translate=True
  • report_header Html
    help='Appears by default on the top right corner of your printed documents (report header).'
  • secondary_color Char
Public methods (3)
  • change_report_template(self)
  • create(self, vals_list)
    @api.model_create_multi
  • write(self, values)

Loading…

Loading…

Loading…

Loading…

Loading…

Status
Open migration PR — not merged yet for this version
CI status
green — ready to merge
Open since
64 days ago
Last activity
49 days ago
Repository
OCA/brand
Pull request
[19.0] [MIG] brand_external_report_layout: Migration to 19.0 (#311)