Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
7603 Zobrazení

Hello,

I am trying to create an automated action upon creation of a Partner. The problem is that the create_date field is not accessible , the filed exists in the database but not in the model.

Can anyone helps?

regards,

Avatar
Zrušit
Nejlepší odpověď

Hi,

First of all inherit the 'res.partner' and add the fields

'create_date': fields.datetime('Creation Date' , readonly=True),

Then put this field in view...so that you can see or access the partner created date.

Avatar
Zrušit
Nejlepší odpověď

You have to add the database field to the model as a read-only field.

For an example that adds the create_uid to the sale.order model so users can see who entered sales orders, see:

https://www.openerp.com/apps/6.1/add_user_sales_order/

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
kvě 17
5597
3
úno 16
6297
1
pro 23
9004
0
dub 24
1868
1
dub 24
2108