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

I have some form views similar to `account.voucher.receipt.dialog.form` (`odoo/addons/account_voucher/voucher_payment_receipt_view.xml`).

- Some `field` tags get their default values which were defined in the Model,

- Some `field` tags get their default values from on change methods (defined by `on_change` attributes).

I want to bypass these form views and automate the process, so I need to know beforehand these default field values.

In that way, I only need to add additional field values if needed, then call the `create` method on the model. (I'm using Odoo v8).

How can I achieve that without manual tracing the fields and their corresponding default values/onchange functions?

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
4
ม.ค. 25
1158
1
พ.ค. 22
3984
0
พ.ค. 20
6450
Default value editable on field แก้ไขแล้ว
1
ส.ค. 19
3914
2
มิ.ย. 19
2946