c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #20008
[Bug 735936] Re: default not working together with group by in context
Hello Azazahmed,
This is very easy to reproduce,
Go to product/product_view.xml change line 153 into
<field colspan="4" name="seller_ids" nolabel="1" context="{'default_delay':1,'group_by':'name'}"/>
Then go to the gtk client, sales/products
choose a product of the list go to tab suppliers
you will see no grouping by, just a list.
Then for the second mentioned bug
Go to product/product_view.xml change line 153 into
<field colspan="4" name="seller_ids" nolabel="1" context="{'group_by':'name'}"/>
(this will set a group by clause on the one2many to suppliers info on the field name)
Then go to the gtk client, sales/products
choose a product of the list go to tab suppliers
You will see a list where you have a group by on suppliers.
Add more then 100 rows
and then you will see there is a problem, he only loads the 100 first rows and nothing more!
I hope i could help you with this?
Thanks
Jean-Paul
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/735936
Title:
default not working together with group by in context
Status in OpenERP Server:
Incomplete
Bug description:
Hello,
When i set a group_by in de context on a one2many field in XML and there are also default_ values set. The group by clause is not working.
Also when i set a group_by clause and there are more then 100 rows in the one2many. He only shows the 100 rows. He shows there are 453 rows in the list, but there is no possibility to retrieve and group by the other 353 rows.
Thanks
References