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

Hello, I have a situation where I need a character field displayed on a xml view, but I dont want the value stored in the DB for security reasons

I am making a module that uses authorize.net so I need the user to enter the credit card info so that it can be processed, but I do not want to save the credit card info on the table.

Is there a way to not store character fields in the db?

I cant use a function field because its not editable, so I need a character field so that the user can enter the credit card info on the form and submit it.

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

Hello.

Yes you can use this:

fields.dummy(string='Credit Card', type='char')
อวตาร
ละทิ้ง
ผู้เขียน

Thank you for your reply. When I changed them to the dummy fields, it passes False as the values of those fields. I need it to pass in the value entered by the user. Can the value on the dummy field be passed into a method when the form is submitted?

Well, it depends when do you want to process the credit card. Maybe you can just delete them after using that value.

ผู้เขียน

Ya, I think that's what Im going to do. Thank you

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ม.ค. 17
5008
2
มิ.ย. 18
16572
How does Odoo store One2Many fields? แก้ไขแล้ว
4
ก.ย. 24
21282
3
ต.ค. 20
4779
14
พ.ย. 17
8470