Community mailing list archives

community@mail.odoo.com

RE: Odoo Development Essentials book - some issues not found in code or ui

by
Daniel Reis
- 12/19/2015 09:45:02
Hi Ogi, I'm glad you found the book useful.


> On the page 47 is an example with the class User, but unfortunately I could not find this code,  especially with partner_id = fields.Many2one... in my odoo installations both version 8 and 9.
> This is important to me since I'm trying to make similar model using delegation inheritance, so when its new instance is created must also a partner be created.
> Is there some other good example?

https://github.com/odoo/odoo/blob/8.0/openerp/addons/base/res/res_users.py#L148

Another example is Projects -> Analytic Account:
https://github.com/odoo/odoo/blob/8.0/addons/project/project.py#L66


> On the page 74 is the text explaining how to find the model's External Identifier, but I couldn't find View Metadata option. Instead there is Sequences & Identifiers > External Identifiers, but that help me not so much. Please how can be find model's External Identifier on an easy way?

That is explained in Chapter 4. See page 55, "Finding External IDs".

Regards
Daniel



Subject: Odoo Development Essentials book - some issues not found in code or ui
From: ogi@redcor.ch
Date: Sat, 19 Dec 2015 13:47:35 +0000
To: community@mail.odoo.com

Hi

First I want to thank Daniel Reis for the nice and useful book Odoo Development Essentials.

Now my questions:

On the page 47 is an example with the class User, but unfortunately I could not find this code, especially with partner_id = fields.Many2one... in my odoo installations both version 8 and 9.
This is important to me since I'm trying to make similar model using delegation inheritance, so when its new instance is created must also a partner be created.
Is there some other good example?

On the page 74 is the text explaining how to find the model's External Identifier, but I couldn't find View Metadata option. Instead there is Sequences & Identifiers > External Identifiers, but that help me not so much. Please how can be find model's External Identifier on an easy way?

Thanks very much in advance for an answer and many greetings
Ogi
_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe