My code does not seem to work
<tr t-if="o.requested_date">
<td>
<strong>Delivery date:</strong>
</td>
<td>
<span t-field="o.requested_date"/>
</td>
</tr>
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
My code does not seem to work
<tr t-if="o.requested_date">
<td>
<strong>Delivery date:</strong>
</td>
<td>
<span t-field="o.requested_date"/>
</td>
</tr>
I have tried the following, unfortunately without success
<span t-esc="line.move_id.picking_id.date_done.split(' ')[0].split('-')[2] + '.' + line.move_id.picking_id.date_done.split(' ')[0].split('-')[1] + '.' + line.move_id.picking_id.date_done.split(' ')[0].split('-')[0]" />
Source: https://github.com/equitania/v10-addons/commit/0288c39d7c16278270c663a6a5309834e76c8522#diff-4218a0c0a0710c43343d2d9b2c414cd9R348
Any Idea someone?
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng ký| Bài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
|---|---|---|---|---|
|
|
1
thg 8 22
|
2763 | ||
|
|
0
thg 3 15
|
5735 | ||
|
|
3
thg 3 25
|
7433 | ||
|
|
1
thg 11 24
|
1752 | ||
|
|
0
thg 9 24
|
1663 |
Are you looking to add a new field to the invoice view or to the report? Also, are you trying to do it as a custom module or editing the default code?
Yes, I have modifyed this module https://apps.odoo.com/apps/modules/11.0/professional_reports_itmcs/
So I have added the code from my last post above. But I get an error and I know it's because of requested_date