On 14 Apr 11:23, Fabyc wrote:
> Hi.
> 
> I'm testing the drag and drop function (tree view) in the company module.
> 
> I have for example 2 parent companies: "Company A" and "Company B", each of 
> one has children companies. The structure I have is the next one:
> 
> Company A
> --Company A1
> --Company A2
> --Company A3
> --Company A4
> --Company A5
> 
> Company B
> --Company B1
> --Company B2
> --Company B3
> 
> When I drag any child company, for example Company A5 into the root company 
> "Company B", 
> it is not problem. I can save the new tree structure.
> 
> When I drag any child company, for example Company A3 out of its parent and 
> I drop it to set it 
> like a parent company and then I clic on button "Save", I get the next 
> error [1]:
> 
> 
> Traceback (most recent call last):
>   File "/trytond/protocols/jsonrpc.py", line 123, in _marshaled_dispatch
>     response['result'] = dispatch_method(method, params)
>   File "/trytond/protocols/jsonrpc.py", line 156, in _dispatch
>     res = dispatch(*args)
>   File "/trytond/protocols/dispatcher.py", line 169, in dispatch
>     result = rpc.result(meth(*c_args, **c_kwargs))
>   File "/trytond/modules/company/company.py", line 44, in write
>     super(Company, cls).write(companies, vals)
>   File "/trytond/model/modelsql.py", line 672, in write
>     update_values.append(field.sql_format(value))
>   File "/trytond/model/fields/many2one.py", line 85, in sql_format
>     assert value is not False
> AssertionError
> 
> 
> I got something very strange [2] when I moved Company A3 from its parent 
> Company A into 
> Company B (I save first) and then I moved it again into Company A, the 
> company was renamed 
> (in the tree view) as Company A5. So I have two Company A5 into Company A.
> In the party module I have created only the 10 companies [3]
> 
> 
> I don't know if this is a bug or I'm doing something wrong.

You should tell us which exact version you are running.

-- 
Cédric Krier - B2CK SPRL
Email/Jabber: [email protected]
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

Attachment: pgpAd7260jRNZ.pgp
Description: PGP signature

Reply via email to