Hi,
I have a boolean field and a button. I want this boolean field to be true only if the button pressed and mail sends.
my boolean field, mail_send = fields.Boolean('mail send)
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi,
I have a boolean field and a button. I want this boolean field to be true only if the button pressed and mail sends.
my boolean field, mail_send = fields.Boolean('mail send)
Hi Shaffaf,
You simply make a button in the XML with a function defined in it like this:
<button name="your_button" string="Send e-mail" type="object" class="btn-primary"/>
Then define a Python function where you set the boolean to true:
@api.multi
def your_button(self):
self.your_boolean_field = TrueRegards,
Yenthe
Thanks Yenthe
How would the syntax be if my checkbox is in the model of sale.order and my button in account.move?
สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!
ลงชื่อ| Related Posts | ตอบกลับ | มุมมอง | กิจกรรม | |
|---|---|---|---|---|
|
2
ส.ค. 25
|
3408 | |||
|
3
ก.พ. 25
|
4822 | |||
|
0
พ.ค. 24
|
46 | |||
|
1
เม.ย. 24
|
4195 | |||
|
4
ก.ย. 23
|
6139 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.