Odoo Help


How to not store character field in db

on 3/26/14, 4:06 PM 1,146 views

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.


Grover Hernando Menacho Quisbert

--Grover Hernando Menacho Quisbert--
WebVision Enterprise Systems
| 6 8 8
La Paz, Bolivia
--Grover Hernando Menacho Quisbert--

Odoo Developer

Grover Hernando Menacho Quisbert
On 3/26/14, 5:11 PM


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?

on 3/26/14, 5:32 PM

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

GH Mediacloud, Grover Hernando Menacho Quisbert
on 3/26/14, 7:21 PM

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

on 3/26/14, 8:57 PM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)


Asked: 3/26/14, 4:06 PM
Seen: 1146 times
Last updated: 3/16/15, 8:10 AM