Community mailing list archives

community@mail.odoo.com

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

by
Ogi Vranesic
- 12/21/2015 07:23:38
Hi Daniel

Thank You very much for the quick and detailed reply.

I'll take a closer look at your posted code examples trying to implement them for my case.

And now, thank to Your help, I find View Metadata option. It is under Debug mode (Developer mode) in odoo version 9.0
But in my form view of my custom model is XML ID only a slash /

Best Regards
Ogi


Am 19.12.2015 um 15:49 schrieb Daniel Reis:
<blockquote cite="mid:DUB125-W76942FE52695BD4BBD361B8CE20@phx.gbl" type="cite">
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

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe