forked from OCA/commission
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #302 from OCA/16.0
Syncing from upstream OCA/commission (16.0)
- Loading branch information
Showing
15 changed files
with
537 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,36 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<odoo> | ||
<template id="report_settlement" inherit_id="commission.report_settlement"> | ||
<xpath expr="//th" position="before"> | ||
<th>Invoice date</th> | ||
<th>Invoice</th> | ||
<th>Invoice line</th> | ||
<template | ||
id="report_settlement_document" | ||
inherit_id="commission.report_settlement_document" | ||
> | ||
<xpath expr="//div[@id='informations']" position="inside"> | ||
<div class="col-auto col-3 mw-100 mb-2" t-if="o.invoice_id"> | ||
<strong>Settlement invoice:</strong> | ||
<p t-field="o.invoice_id" /> | ||
</div> | ||
</xpath> | ||
<xpath expr="//table/tbody/tr/td" position="before"> | ||
<td> | ||
<span t-field="l.date" /> | ||
</td> | ||
<td> | ||
<span t-field="l.settlement_id.invoice_id" /> | ||
</td> | ||
<td> | ||
<span t-field="l.invoice_line_id" /> | ||
</td> | ||
<xpath expr="//th" position="after"> | ||
<t t-if="o.settlement_type == 'sale_invoice'"> | ||
<th class="text-start">Invoice line</th> | ||
<th class="text-start">Quantity</th> | ||
</t> | ||
</xpath> | ||
<xpath expr="//table/tbody/tr/td" position="after"> | ||
<t t-if="o.settlement_type == 'sale_invoice'"> | ||
<td> | ||
<span t-field="l.invoice_line_id" /> | ||
</td> | ||
<td> | ||
<span t-field="l.invoice_line_id.quantity" /> | ||
</td> | ||
</t> | ||
</xpath> | ||
<xpath expr="//table/tfoot/tr/td" position="before"> | ||
<t t-if="o.settlement_type == 'sale_invoice'"> | ||
<td /> | ||
<td /> | ||
</t> | ||
</xpath> | ||
</template> | ||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.