This commit is contained in:
michel 2018-02-19 17:03:29 +01:00
parent 0b6b8e0cfb
commit e90da41656
2 changed files with 4 additions and 5 deletions

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">
<t t-set="price_sum" t-value="0"/>
</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" />
</xpath>
<xpath expr="//tr[@id='activity_inherit_total']" position="inside">
<td>
<strong>Total</strong>
<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>
</xpath>

View File

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