address fields in the crm.lead.

Asked by Vivek poddar on 2012-10-19

Hi,

I scanned the whole code in the crm module but wasn't able to figure out how they have used fields like country_id, state_id, street etc. without defining them in the model. Please give me some directions.

Thanks and Regards!

Question information

Language:
English Edit question
Status:
Answered
For:
Odoo Addons (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Last query:
2012-10-19
Last reply:
2012-10-19
Niels Huylebroeck (red15) said : #1

The model 'crm.lead' is inherited from both 'mail.thread' (to provide mail hooks and functionality) and the 'res.partner.address' model (this is why every field on the res.partner.address model is also present on the crm.lead)

See the code here : http://bazaar.launchpad.net/~openerp/openobject-addons/6.1/view/head:/crm/crm_lead.py#L43

Can you help with this problem?

Provide an answer of your own, or ask Vivek poddar for more information if necessary.

To post a message you must log in.