Branding Company

by
Odoo
v 8.0 v 9.0 Third Party 453
Download for v 9.0
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Sales Management (sale)
Invoicing (account)
Discuss (mail)
Inventory Management (stock)
Technical Name branding_company
LicenseLGPL-3
Websitehttp://www.therp.nl
Versions 8.0 9.0
You bought this module and need support? Click here!

Branding company

Provide branding on sales orders, stock pickings and sales invoices.

Branding companies provide the same information as companies. However, they are not linked to accounting in any way. Branding companies are there to provide a different "face" to different groups of customers or other partners.

The following attributes are already supported: - logo - name - email - website - rml_footer

The following attributes might make sense to support as well: - rml_header - address (link to res_partner) And maybe others.

Further, it would be nice if the replacement of the normal company logo (and other information) on reports could be completely automatic for objects linked to a shop. As it is, we need to customize the reports.

Both users and partners might be linked to a certain branding. If a user is linked to a branding, sales orders and invoices created by that user will default to that branding. If a partner (customer) is linked to a branding, it will also be the default for invoices and sales order for that customer. The customer default overrides (is more important) then the user default.

Actually for invoices the default branding will be taken from the sales order, if a sales order is present. This can be no branding. Only when a customer invoice is NOT linked to a sales order, the default branding applies.

You can use the branding logo in the header of your reports that use the standard header by adding the following definition to the rml header of the main company:

[[ (company.logo if not 'branding_company_id' in objects[0] else objects[0].branding_company_id.logo) or removeParentNode('image') ]]

In the future we will use the separate rml information of the branding companies themselves.

Or you can use this in your custom reports: <image x="5.25cm" y="3.75cm" width="150.0" height="100.0"

>[[ o.branding_company_id and o.branding_company_id.logo or company.logo]]</image>

You could try to change all your qweb based reports by changing the external_layout view (Settings==>User Interface==>Views): (NOT TESTED YET)

<?xml version="1.0"?> <t t-name="report.external_layout">

<!-- Multicompany --> <t t-if="o and 'company_id' in o">

<t t-set="company" t-value="o.company_id"/>

</t> <t t-if="not o or not 'company_id' in o">

<t t-set="company" t-value="res_company"/>
</t>
<t t-if="o and 'branding_company_id' in o">
<t t-set="company" t-value="o.branding_company_id"/>

</t>

<t t-call="report.external_layout_header"/> <t t-raw="0"/> <t t-call="report.external_layout_footer"/>

</t>

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author, please use the developer contact information. They can usually be found in the description.
Please choose a rating from 1 to 5 for this module.
There are no ratings yet!
by
Hilar AK
on 2/5/17, 11:43 PM

raise ValueError('External ID not found in the system: %s' % (xmlid))
by
Hilar AK
on 2/5/17, 11:37 PM

ParseError: "External ID not found in the system: base.menu_base_config" while parsing /home/cybrosys/hilar/odoo-9.0/openerp/Magento/branding_company/view/branding_company.xml:75, near