[TMP] Report golem_activity_registration_state

This commit is contained in:
michel 2018-02-20 10:58:16 +01:00
parent e90da41656
commit 1a71c21e5b
2 changed files with 18 additions and 10 deletions

View File

@ -30,21 +30,27 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<span t-field="t.state" />
</td>
<td>
<span t-field="t.activity_price" />
<span t-field="t.activity_price" t-field-options="{'widget': 'monetary',
'display_currency': o.currency_id}"/>
</td>
</xpath>
<xpath expr="//t[@id='activity_inherit_price_sum']" position="before">
<xpath expr="//tr[@id='activity_inherit_price_sum']" position="before">
<t t-set="price_sum" t-value="0"/>
</xpath>
<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>
<xpath expr="//tr[@id='activity_inherit_sum']" position="inside">
<t t-set="price_sum" t-value="price_sum + t.activity_price"/>
<h1>TOTAL=<t t-esc="price_sum" /></h1>
</xpath>
<xpath expr="//tfoot[@id='activity_inherit_total']" position="inside">
<tr>
<td>
<strong>TOTAL=<t t-esc="price_sum"
t-esc-options="{'widget': 'monetary',
'display_currency': o.currency_id}" /></strong>
</td>
</tr>
</xpath>
</template>

View File

@ -112,8 +112,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<td id="activity_inherit_td" class="col-xs-6">
<span t-field="t.activity_id.date_stop" /><br></br>
</td>
<tr id="activity_inherit_total"></tr>
<tr id="activity_inherit_sum"></tr>
</tr>
<tfoot style="text-align:right" id="activity_inherit_total"></tfoot>
</t>
</table>
</div>