Community: Framework mailing list archives

expert-framework@mail.odoo.com

Re: Enhancment proposal, new domain operator "parent_of"

by
Shawn Varghese
- 12/17/2015 08:23:11
Hi Mohammad,

Just wanted to ask if this proposed enhancement is now included in the main Odoo v8 branch?

On Wed, May 13, 2015 at 6:08 PM, Mohammad Alhashash <alhashash@alhashash.net> wrote:

Thank a lot.

That is what I needed. I think I'll use same concept and add the test to the base module.


On 13/05/15 13:17, Holger Brunn wrote:
<blockquote cite="mid:42104826.iy8C4bJJTv@rivendell" type="cite">
> I've a problem with the test. I need to create/extend models to
> cover all code paths. For example, I need to create one2many,
> many2one, many2many fields other than (parent_id/child_ids). Is it
> possible to create a module just for testing?

You don't need that, you can simply add your model in the test code: 
https://github.com/OCA/server-tools/blob/8.0/base_field_serialized/tests/test_serialized.py

The crucial part is that you call _build_model on the model(s) you declare 
there.

-- 
Therp - Maatwerk in open ontwikkeling

Holger Brunn - Ontwerp en implementatie

mail: holger@therp.nl
web: http://therp.nl

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