Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IMP] Add settlements report for l10n_br with legal_name #3

Open
wants to merge 2 commits into
base: 8.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion l10n_br_sale_commission/__openerp__.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
'sale_commission'
],
'data': [
'view/account_invoice_view.xml'
'view/account_invoice_view.xml',
'report/settlements_report.xml',
],
'demo': [
'demo/commission_demo.xml'
Expand Down
33 changes: 33 additions & 0 deletions l10n_br_sale_commission/i18n/pt_BR.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * l10n_br_sale_commission
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-06-09 19:09+0000\n"
"PO-Revision-Date: 2016-06-09 19:09+0000\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: l10n_br_sale_commission
#: view:account.invoice.line:l10n_br_sale_commission.view_l10n_br_account_invoice_line_commission_form
msgid "Comissão"
msgstr "Comissão"

#. module: l10n_br_sale_commission
#: model:ir.model,name:l10n_br_sale_commission.model_sale_commission
msgid "Commission in sales"
msgstr "Comissão nas vendas"

#. module: l10n_br_sale_commission
#: view:website:sale_commission.settlements_report_condensed
#: view:website:sale_commission.settlements_report_detailed
msgid "RAZÃO SOCIAL"
msgstr "RAZÃO SOCIAL"

24 changes: 24 additions & 0 deletions l10n_br_sale_commission/report/settlements_report.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>

<template id="settlements_report_condensed_custom" inherit_id="sale_commission.report_settlement_condensed">
<xpath expr="//th[.='Customer']" position="replace">
<th>Razao Social</th>
</xpath>
<xpath expr="//span[@t-field='line.invoice.partner_id.name']" position="replace">
<span class="oe_editable" name="customer" t-field="line.invoice.partner_id.legal_name"/>
</xpath>
</template>

<template id="settlements_report_detailed_custom" inherit_id="sale_commission.report_settlement">
<xpath expr="//th[.='Customer']" position="replace">
<th>Razao Social</th>
</xpath>
<xpath expr="//span[@t-field='l.invoice.partner_id.name']" position="replace">
<span t-field="l.invoice.partner_id.legal_name"/>
</xpath>
</template>

</data>
</openerp>