On 2018-03-25 07:37, Francisco Maria Moyano Casco wrote:
> Hi, 
>    I'm working on Tryton 4-2. I'm trying to delete some class attributes, due 
> to a migration, but I had no success.
> 
>    The code I use is the next one:
>     ......
>     if table.column_exist('water'):
>         table.drop_column('water')           
>         if hasattr(cls,'water'):
>             del cls.water
>     .......
> 
>     Any clue why this doesn't work?

Why are you deleting it? Just remove the definition from the class.

-- 
Cédric Krier - B2CK SPRL
Email/Jabber: cedric.kr...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

-- 
You received this message because you are subscribed to the Google Groups 
"tryton" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/20180325145129.GE5880%40kei.

Reply via email to