[TMP] Report Golem_member #9
@ -27,28 +27,26 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
</xpath>
|
</xpath>
|
||||||
<xpath expr="//td[@id='activity_inherit_td']" position="after">
|
<xpath expr="//td[@id='activity_inherit_td']" position="after">
|
||||||
<td>
|
<td>
|
||||||
<span t-field="t.state" />
|
<span t-field="t.state" />
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<span t-field="t.activity_price" />
|
<span t-field="t.activity_price" />
|
||||||
</td>
|
</td>
|
||||||
</xpath>
|
</xpath>
|
||||||
|
|
||||||
|
<xpath expr="//t[@id='activity_inherit_price_sum']" position="before">
|
||||||
|
<t t-set="price_sum" t-value="0"/>
|
||||||
|
</xpath>
|
||||||
|
<xpath expr="//tr[@id='activity_inherit_price_sum2']" position="after">
|
||||||
|
<t t-set="activity_price" t-value="t.activity_price" />
|
||||||
|
</xpath>
|
||||||
<xpath expr="//tr[@id='activity_inherit_total']" position="inside">
|
<xpath expr="//tr[@id='activity_inherit_total']" position="inside">
|
||||||
<td>
|
<td>
|
||||||
<strong>Total</strong>
|
<strong>Total</strong>
|
||||||
<!-- <t t-set="test_variable" t-value="100"/>
|
<t t-set="price_sum" t-value="price_sum + t.activity_price"/>
|
||||||
<p t-foreach="t.activity_price" t-as="i">
|
<h1>RESULT=<t t-esc="price_sum" /></h1>
|
||||||
<t t-set="test_variable" t-value="test_variable+i"/>
|
|
||||||
</p>
|
|
||||||
<h1>RESULT=<t t-esc="test_variable"/></h1> -->
|
|
||||||
|
|
||||||
<p t-foreach="t.activity_price" t-as="i">
|
|
||||||
<t t-set="i" t-value="0"/>
|
|
||||||
<t t-set="price_count" t-value="price_base + i"/>
|
|
||||||
</p>
|
|
||||||
<h1>RESULT=<t t-esc="price_count" /></h1>
|
|
||||||
</td>
|
</td>
|
||||||
</xpath>
|
</xpath>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -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 t-foreach="docs" t-as="o">
|
<t id="activity_inherit_price_sum" t-foreach="docs" t-as="o">
|
||||||
<tr t-foreach="o.activity_registration_ids" t-as="t">
|
<tr id="activity_inherit_price_sum2" 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>
|
||||||
|
Loading…
Reference in New Issue
Block a user