This commit is contained in:
michel 2018-02-20 11:44:48 +01:00
parent 1a71c21e5b
commit 0228a3535b
2 changed files with 40 additions and 32 deletions

View File

@ -34,14 +34,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
'display_currency': o.currency_id}"/>
</td>
</xpath>
<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_sum']" position="inside">
<t t-set="price_sum" t-value="price_sum + t.activity_price"/>
</xpath>
<xpath expr="//tfoot[@id='activity_inherit_total']" position="inside">
<tr>
@ -53,6 +50,17 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</tr>
</xpath>
<xpath expr="//table[@id='table_activity_ref']" position="after">
<table class="table table-striped">
<t t-foreach="docs" t-as="o">
<tr t-foreach="o.activity_registration_ids" t-as="l">
<td>
<spam t-field="l.invoice_id.number" />
</td>
</tr>
</t>
</table>
</xpath>
</template>
</odoo>

View File

@ -79,7 +79,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</tr>
</t>
</table>
<table class="table table-striped">
<table id="table_activity_ref" class="table table-striped">
<tr>
<th>Activity</th>
<th>Animator</th>
@ -114,7 +114,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</td>
<tr id="activity_inherit_sum"></tr>
</tr>
<tfoot style="text-align:right" id="activity_inherit_total"></tfoot>
<tfoot id="activity_inherit_total"></tfoot>
</t>
</table>