Ir.Model

Topics: OpenErpNet Connector
Dec 10, 2013 at 7:19 AM
Hi,

I like your project. The only downside of this system is that you need to handcraft the entities by yourself. So I was looking for a way to generate this. After looking to the ir.model class in openerp. I think it should be possible to generate the entities with T4 templates.

What do you think?
Coordinator
Dec 10, 2013 at 9:05 PM
Sure, i will take a look. Can be a great feature.
Coordinator
Apr 14, 2014 at 8:51 PM
I've added a t4 template generator in latest realease, please take a look.
Apr 22, 2014 at 11:52 AM
Hi,

It looks really good. I did a small test and even my custom OpenERP classes are generated, I think this is really awesome.

One part of improvement would be a way to handle properties that have the same name as .net operators. For example public String class {get; set;} will not compile.

I will certainly use this to do the datainitialization in my next project.

Kind regards,
Thijs