Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
4861 Lượt xem

Good afternoon,

We are running Odoo 8 on our server.

Our company collects a 50% deposit from all customers with the remainder due once the product is delivered.

On an invoice we would like there to be 2 additional lines.

One showing a total of all payments against that invoice And a final line showing the balance owing.

Any help would be of great assistance.

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

We added the following to the QWeb invoice report and have it working:

<tr>
                            <td>Payments</td>
                            <td class="text-right">
                                <span t-esc="o.amount_total - o.residual" t-esc-options="{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: &quot;o.currency_id&quot;}"/>
                            </td>
                        </tr>
                        
                        <tr class="border-black">
                            <td><Strong>Balance Owing After Installation</Strong></td>
                            <td class="text-right">
                                <span t-field="o.residual" t-field-options="{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: &quot;o.currency_id&quot;}"/>
                            </td>
                        </tr>
Ảnh đại diện
Huỷ bỏ

On which file? and how we do it on v14?

Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 6 25
2150
4
thg 5 24
6156
1
thg 5 23
3954
0
thg 7 17
3122
0
thg 3 16
3076