Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
2764 มุมมอง

I want to set the default tax in action record, I can set other values through context field, but I have no idea what to fill for the taxes_id since it is a many2many field. I want to set the default value to 0 or empty the tax field. My module is inherited from product base module.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Dear Fransisco Wijaya,

You can over-ride the customer tax field and set default value on the inherited module

my_taxes = fields.Many2many(default=get_taxes, ...)


อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
เม.ย. 17
5182
3
พ.ค. 16
7941
Why XML in odoo ? แก้ไขแล้ว
3
มี.ค. 25
1145
Odoo action error แก้ไขแล้ว
1
ต.ค. 24
5661
0
ธ.ค. 22
2017