Technical mailing list archives

Re: count new object one2many on changed

Numa Extreme Systems, Gustavo Marino
- 10/20/2014 11:34:32
Try ti assign sequences on base model's create and write methods. On write you have to be careful not reassigning sequences of already existing record.

On change methods are not suitable for database permanent changes. What hapen if the user discard the edition? You have to deal with record not existing in database. It is clearly not the way to go


Gustavo Adrian Marino


Mobile:  +54 911 5498 2515


Skype: gustavo.adrian.marino


<img border="0" width="213" height="94" src="cid:image001.jpg@01CC37F5.99B4CD20" alt="Descripción: Numa Logo V 1-0">

2014-10-20 12:28 GMT-03:00 abhishek jaiswal <>:
can any body comment on this ho to do it ?

On Fri, Oct 17, 2014 at 7:16 PM, abhishek jaiswal <> wrote:
i have  a situation where in one 2 many while adding i have to number it
but in default function when i cam counting len(one2manyids) its not coming 
i cant't use sequence i have to number it on parent record

so can any body help me to achieve this

With Warm Regards
Abhishek Jaiswal,
Website, Blog

With Warm Regards
Abhishek Jaiswal,
Website, Blog

Post to: