跳至內容
選單
此問題已被標幟
1 回覆
4126 瀏覽次數

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

相關帖文 回覆 瀏覽次數 活動
1
1月 17
4907
2
6月 18
16450
4
9月 24
21140
3
10月 20
4663
14
11月 17
8318