[TMP] Report Golem_member #9

Manually merged
fabien merged 15 commits from michel/GOLEM:michel_qweb_adherents into master 2018-03-08 16:19:22 +01:00
2 changed files with 4 additions and 5 deletions
Showing only changes of commit e90da41656 - Show all commits

View File

@ -37,14 +37,13 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<xpath expr="//t[@id='activity_inherit_price_sum']" position="before"> <xpath expr="//t[@id='activity_inherit_price_sum']" position="before">
<t t-set="price_sum" t-value="0"/> <t t-set="price_sum" t-value="0"/>
</xpath> </xpath>
<xpath expr="//tr[@id='activity_inherit_price_sum2']" position="after"> <xpath expr="//tr[@id='activity_inherit_price_sum']" position="after">
<t t-set="activity_price" t-value="t.activity_price" /> <t t-set="activity_price" t-value="t.activity_price" />
</xpath> </xpath>
<xpath expr="//tr[@id='activity_inherit_total']" position="inside"> <xpath expr="//tr[@id='activity_inherit_total']" position="inside">
<td> <td>
<strong>Total</strong>
<t t-set="price_sum" t-value="price_sum + t.activity_price"/> <t t-set="price_sum" t-value="price_sum + t.activity_price"/>
<h1>RESULT=<t t-esc="price_sum" /></h1> <h1>TOTAL=<t t-esc="price_sum" /></h1>
</td> </td>
</xpath> </xpath>

View File

@ -89,8 +89,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<th>Date start</th> <th>Date start</th>
<th id="activity_inherit_th">Date stop</th> <th id="activity_inherit_th">Date stop</th>
</tr> </tr>
<t id="activity_inherit_price_sum" t-foreach="docs" t-as="o"> <t t-foreach="docs" t-as="o">
<tr id="activity_inherit_price_sum2" t-foreach="o.activity_registration_ids" t-as="t"> <tr id="activity_inherit_price_sum" t-foreach="o.activity_registration_ids" t-as="t">
<td class="col-xs-6"> <td class="col-xs-6">
<span t-esc="t.activity_id.name" /><br></br> <span t-esc="t.activity_id.name" /><br></br>
</td> </td>