Hi,
I have to add a field in the change document template view.I tried xpath the existing template and adding the field. But it doesn’t work.
Can anyone help?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- ลูกค้าสัมพันธ์
- e-Commerce
- ระบบบัญชี
- สินค้าคงคลัง
- PoS
- Project
- MRP
คำถามนี้ถูกตั้งค่าสถานะ
2
ตอบกลับ
3562
มุมมอง
Hi,
Along with xpath the new field to the template try the below code also
class ResConfigSettings(models.TransientModel):
_inherit = 'res.config.settings'
def change_report_template(self):
res = super(ResConfigSettings, self).change_report_template()
template = self.env.ref(module_name.custom_template_id') #This replace original template by the custom template which you created.
return res
In the above function you can pass your template which the new field added.
Hope it helps
You must give a little code so that one can give exact answer. But this is one way of xpathing templates
<xpath expr="//div[hasclass('row', 'mt32')]" position="inside">
สนุกกับการพูดคุยนี้ใช่ไหม? เข้าร่วมเลย!
สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!
ลงชื่อRelated Posts | ตอบกลับ | มุมมอง | กิจกรรม | |
---|---|---|---|---|
Odoo Mail Sending Limit
แก้ไขแล้ว
|
|
2
ธ.ค. 23
|
15300 | |
|
0
ต.ค. 23
|
33 | ||
|
3
ต.ค. 23
|
790 | ||
|
1
ต.ค. 23
|
569 | ||
|
1
ส.ค. 23
|
2768 |