Re: [tryton] Search

2016-05-13 Thread Jean Cavallo
2016-05-13 15:26 GMT+02:00 piyush agrawal :

> JSON String :
> *{"method":"model.party.party.search_read","params":[5,"c3eb5b0501c3430d97387f25a4d0ff24",[["rec_name","like","P"]],0,20,[],[],{"limit":20,"domain":[["rec_name","like","P"]],"offset":0,"order":[],"fields":[]}]}*
>

Be careful !

[["rec_name", "like", "P"]] means [["rec_name", "=", "P"]]

try [["rec_name", "like", "P%"]] for instance

Jean Cavallo
*Coopengo*

-- 
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/CAAc4%2BPaqEF09UozjPHUEmC3zq9W--gR0FGwhbhwRV4TeoUdqQA%40mail.gmail.com.


Re: [tryton] Search

2016-05-13 Thread piyush agrawal
Please check my requested son String:

*{"method":"model.party.party.search_read","params":[5,"3d9f26574f7646aea0f3a3c0fe787668",["rec_name","like","%%pp%%"],0,0,[],[],{"limit":0,"domain":["rec_name","like","%%pp%%"],"offset":0,"order":[],"fields":[]}]}*

*is it something wrong with that?*

On Friday, 13 May 2016 17:45:03 UTC+5:30, Cédric Krier wrote:
>
> On 2016-05-13 04:22, piyush agrawal wrote: 
> > 3) GetSingleRecord 
> > I am make request with domains like ["re_name","=","%%%s%%"], but it 
> > returns me blank Array 
>
> That means nothing match this clause. 
>
> -- 
> Cédric Krier - B2CK SPRL 
> Email/Jabber: cedric...@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/2d2e83b6-e070-4f35-934b-56a15fc35494%40googlegroups.com.


Re: [tryton] Search by multiple categories

2015-05-21 Thread Cédric Krier
On 21 May 12:10, Илья Мельников wrote:
 21.05.2015 11:54, Cédric Krier wrote:
  To express the AND you will have to write the domain yourself.
 
 Where I can write domain? In custom view? Do I have to make different
 views for all combination of search categories, or search criteria can
 be entered somehow?

The current domain is:

[('categories', 'child_of', [Eval('active_id')], 'parent')]

it could be changed into:

[('categories', 'child_of', Eval('active_ids'), 'parent')]

but it will not be an 'AND' as you want but an 'OR'. Any way, it will
probably be a good improvement (in combination with the one at the
bottom).

In your case, it should be something like:

[('categories', 'child_of', id1, 'parent'),
('categories', 'child_of', id2, 'parent'),
...]

but this can not be written in a static way in an act_window.

So you have to use a wizard to construct the right domain.

  The client doesn't support child_of operator and the default relate is
  only on the active category (the one clicked).
 
 Is it possible to make client use all selected categories?
 * user selects many categories in Category tree
 * user hits Enter
 * Tryton opens Parties by category with parties matching all selected

I don't think it is possible and it is probably linked to
https://bugs.tryton.org/issue2198

Any way, in addition to tree_open, I think we should also add a relate.
And I think this could be done automatically just like we add buttons as
wizard action in the client.

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


pgpo_m3cyP4bv.pgp
Description: PGP signature


[tryton] Search by multiple categories

2015-05-21 Thread Илья Мельников
Hello.

How I can search by multiple categories?

Categories:
* Cat-A
*   Cat-A1
*   Cat-A2
* Cat-B
*   Cat-B1
*   Cat-B2

Parties:
* Party1: Cat-A1
* Party2: Cat-A1, Cat-B1
* Party3: Cat-B1

Opening Categories tree and clicking on Cat-A1 will show Parties: 1, 2
Opening Categories tree and clicking on Cat-B1 will show Parties: 2, 3

But the task is: find parties with both Cat-A1 and Cat-B1. (Only Party2)


--
Ilya Melnikov
2015-05-21, 10:14:30 +0500



signature.asc
Description: OpenPGP digital signature


Re: [tryton] Search by multiple categories

2015-05-21 Thread Cédric Krier
On 21 May 10:26, Илья Мельников wrote:
 Hello.
 
 How I can search by multiple categories?
 
 Categories:
 * Cat-A
 *   Cat-A1
 *   Cat-A2
 * Cat-B
 *   Cat-B1
 *   Cat-B2
 
 Parties:
 * Party1: Cat-A1
 * Party2: Cat-A1, Cat-B1
 * Party3: Cat-B1
 
 Opening Categories tree and clicking on Cat-A1 will show Parties: 1, 2
 Opening Categories tree and clicking on Cat-B1 will show Parties: 2, 3
 
 But the task is: find parties with both Cat-A1 and Cat-B1. (Only Party2)

To express the AND you will have to write the domain yourself.

The client doesn't support child_of operator and the default relate is
only on the active category (the one clicked).

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


pgpgMYw5odRUn.pgp
Description: PGP signature


Re: [tryton] Search by multiple categories

2015-05-21 Thread Илья Мельников
21.05.2015 11:54, Cédric Krier wrote:
 To express the AND you will have to write the domain yourself.

Where I can write domain? In custom view? Do I have to make different
views for all combination of search categories, or search criteria can
be entered somehow?


 The client doesn't support child_of operator and the default relate is
 only on the active category (the one clicked).

Is it possible to make client use all selected categories?
* user selects many categories in Category tree
* user hits Enter
* Tryton opens Parties by category with parties matching all selected

 

--
Ilya Melnikov
2015-05-21, 12:02:02 +0500



signature.asc
Description: OpenPGP digital signature


Re: [tryton] Search method and order by property field

2015-03-13 Thread Raimon Esteve
2015-03-12 19:06 GMT+01:00 Mark Hayden mark.shane.hay...@gmail.com:


 On 12 Mar 2015 11:33, Raimon Esteve raimonest...@gmail.com wrote:
 
  Hello,
 
  I try to search with order by a property field and return SQL error
 because column not exist.
 
  Example to search: product.template and list_price field.
 

 Is list_price an actual table field or is it a function field?

It's a property field:

http://hg.tryton.org/modules/product/file/dfee5ace73f7/product.py#l41
http://doc.tryton.org/3.4/trytond/doc/ref/models/fields.html#property


  What am I missing?


I think is not implemented because I try in GTK client and I can't order
products by list_price in toolbar (not ordered).

Thanks


[tryton] Search method and order by property field

2015-03-12 Thread Raimon Esteve
Hello,

I try to search with order by a property field and return SQL error because
column not exist.

Example to search: product.template and list_price field.

What am I missing?

Example ORDER parameter: [('list_price', 'ASC')]

The traceback:

: Traceback (most recent call last):
  File /trytond/protocols/jsonrpc.py, line 150, in _marshaled_dispatch
response['result'] = dispatch_method(method, params)
  File /trytond/protocols/jsonrpc.py, line 179, in _dispatch
res = dispatch(*args)
  File /trytond/protocols/dispatcher.py, line 161, in dispatch
result = rpc.result(meth(*c_args, **c_kwargs))
  File /trytond/model/modelstorage.py, line 355, in search_read
records = cls.search(domain, offset=offset, limit=limit, order=order)
  File /trytond/model/modelsql.py, line 1040, in search
cursor.execute(*select)
  File /trytond/backend/postgresql/database.py, line 312, in execute
return self.cursor.execute(sql, params)
ProgrammingError: column a.list_price does not exist
LINE 1: ... WHERE (true AND (a.active = true)) ORDER BY a.list_...

Raimon


Re: [tryton] Search method and order by property field

2015-03-12 Thread Mark Hayden
On 12 Mar 2015 11:33, Raimon Esteve raimonest...@gmail.com wrote:

 Hello,

 I try to search with order by a property field and return SQL error
because column not exist.

 Example to search: product.template and list_price field.


Is list_price an actual table field or is it a function field?

 What am I missing?

 Example ORDER parameter: [('list_price', 'ASC')]

 The traceback:

 : Traceback (most recent call last):
   File /trytond/protocols/jsonrpc.py, line 150, in _marshaled_dispatch
 response['result'] = dispatch_method(method, params)
   File /trytond/protocols/jsonrpc.py, line 179, in _dispatch
 res = dispatch(*args)
   File /trytond/protocols/dispatcher.py, line 161, in dispatch
 result = rpc.result(meth(*c_args, **c_kwargs))
   File /trytond/model/modelstorage.py, line 355, in search_read
 records = cls.search(domain, offset=offset, limit=limit, order=order)
   File /trytond/model/modelsql.py, line 1040, in search
 cursor.execute(*select)
   File /trytond/backend/postgresql/database.py, line 312, in execute
 return self.cursor.execute(sql, params)
 ProgrammingError: column a.list_price does not exist
 LINE 1: ... WHERE (true AND (a.active = true)) ORDER BY a.list_...


I encountered such an error when i was trying to sort a field that was not
just a simple data type..turned out to be function. ORDER parameter i think
only helps build a sql order clause it doesn't seem to work on fields that
are not directly in a table. I ended up building more complex functions for
searching and sorting.

In this case is list_price maybe a function that looks at price lists in
another table, and the actual default price stored in a differently named
field?

 Raimon



Re: [tryton] Search method and order by property field

2015-03-12 Thread Jordi Esteve

On 12/03/15 19:06, Mark Hayden wrote:



On 12 Mar 2015 11:33, Raimon Esteve raimonest...@gmail.com 
mailto:raimonest...@gmail.com wrote:


 Hello,

 I try to search with order by a property field and return SQL error 
because column not exist.


 Example to search: product.template and list_price field.


Is list_price an actual table field or is it a function field?

 What am I missing?

 Example ORDER parameter: [('list_price', 'ASC')]

 The traceback:

 : Traceback (most recent call last):
   File /trytond/protocols/jsonrpc.py, line 150, in _marshaled_dispatch
 response['result'] = dispatch_method(method, params)
   File /trytond/protocols/jsonrpc.py, line 179, in _dispatch
 res = dispatch(*args)
   File /trytond/protocols/dispatcher.py, line 161, in dispatch
 result = rpc.result(meth(*c_args, **c_kwargs))
   File /trytond/model/modelstorage.py, line 355, in search_read
 records = cls.search(domain, offset=offset, limit=limit, 
order=order)

   File /trytond/model/modelsql.py, line 1040, in search
 cursor.execute(*select)
   File /trytond/backend/postgresql/database.py, line 312, in execute
 return self.cursor.execute(sql, params)
 ProgrammingError: column a.list_price does not exist
 LINE 1: ... WHERE (true AND (a.active = true)) ORDER BY 
a.list_...



I encountered such an error when i was trying to sort a field that was 
not just a simple data type..turned out to be function. ORDER 
parameter i think only helps build a sql order clause it doesn't seem 
to work on fields that are not directly in a table. I ended up 
building more complex functions for searching and sorting.


In this case is list_price maybe a function that looks at price lists 
in another table, and the actual default price stored in a differently 
named field?




list_price and cost_price in product_template are property fields, so 
their values are stored in ir.property model. I guess, as you say, ORDER 
parameter in tryton search doesn't work for property fields.


--
Jordi Esteve
Consultor Zikzakmedia SL
jest...@zikzakmedia.com
Mòbil 679 170 693

Zikzakmedia SL
St. Jaume, 9, baixos, 2a
08720 Vilafranca del Penedès
Tel 93 890 2108



[tryton-dev] tryton: Search for sequence on all view of one2many

2014-02-05 Thread Code Review - New issues: ced
issue3642

URL: http://codereview.tryton.org/3201004/


[tryton-dev] tryton: search limit float to int

2013-11-12 Thread Code Review - New issues: resteve
(No description)

URL: http://codereview.tryton.org/1661002/


[tryton-dev] Re: Instant search using tryton search filter

2013-07-05 Thread Demoy Blake


On Wednesday, July 3, 2013 11:53:00 AM UTC-5, Demoy Blake wrote:

 I would like to be able to *query** records each time search filter text 
 is altered*.
 i.e I type c into search filter (from the Modules tree view) *without 
 pressing enter* and  calendar,country,currency are show in tree view.

 where shall I go to implement this functionality if not already present.


I have the instant search going by adding gobject.idle_add(self.activate) 
to the key_press method in screen_container... however the search bar 
lose focus after each input how may I prevent this.

Thanks in advance. 


Re: [tryton-dev] Re: Instant search using tryton search filter

2013-07-05 Thread Cédric Krier
On 05/07/13 10:06 -0700, Demoy Blake wrote:
 
 
 On Wednesday, July 3, 2013 11:53:00 AM UTC-5, Demoy Blake wrote:
 
  I would like to be able to *query** records each time search filter text 
  is altered*.
  i.e I type c into search filter (from the Modules tree view) *without 
  pressing enter* and  calendar,country,currency are show in tree view.
 
  where shall I go to implement this functionality if not already present.
 
 
 I have the instant search going by adding gobject.idle_add(self.activate) 
 to the key_press method in screen_container... however the search bar 
 lose focus after each input how may I prevent this.

It is because activate calls do_search which calls Screen.search_filter
which calls Screen.load and there is a call to set_cursor which change
the position of the cursor.

-- 
Cédric Krier

B2CK SPRL
Rue de Rotterdam, 4
4000 Liège
Belgium
Tel: +32 472 54 46 59
Email/Jabber: cedric.kr...@b2ck.com
Website: http://www.b2ck.com/


pgpoOXaaoS10c.pgp
Description: PGP signature


Re: [tryton-dev] Instant search using tryton search filter

2013-07-04 Thread Guillem Barba Domingo
El 03/07/2013 19:31, Cédric Krier cedric.kr...@b2ck.com va escriure:

 On 03/07/13 09:53 -0700, Demoy Blake wrote:
  I would like to be able to *query** records each time search filter
text is
  altered*.
  i.e I type c into search filter (from the Modules tree view) *without
  pressing enter* and  calendar,country,currency are show in tree view.
 
  where shall I go to implement this functionality if not already present.

 It is not implemented by fear of being to slow.
 Anyway, if you want to give a try, you must modify the ScreenContainer
 in tryton/gui/window/view_form/view/screen_container.py

I think it should be an option (checkbox) in user's preference to disable
this feature.
Furthermore, it could be an option in ¿action window? to disable the option
for an specific model/list (it will disable the begaviour for all users).
I'd allow to the administrator avoid performance problems in specific lists.


Re: [tryton-dev] Instant search using tryton search filter

2013-07-04 Thread Cédric Krier
On 04/07/13 08:30 +0200, Guillem Barba Domingo wrote:
 El 03/07/2013 19:31, Cédric Krier cedric.kr...@b2ck.com va escriure:
 
  On 03/07/13 09:53 -0700, Demoy Blake wrote:
   I would like to be able to *query** records each time search filter
 text is
   altered*.
   i.e I type c into search filter (from the Modules tree view) *without
   pressing enter* and  calendar,country,currency are show in tree view.
  
   where shall I go to implement this functionality if not already present.
 
  It is not implemented by fear of being to slow.
  Anyway, if you want to give a try, you must modify the ScreenContainer
  in tryton/gui/window/view_form/view/screen_container.py
 
 I think it should be an option (checkbox) in user's preference to disable
 this feature.
 Furthermore, it could be an option in ¿action window? to disable the option
 for an specific model/list (it will disable the begaviour for all users).
 I'd allow to the administrator avoid performance problems in specific lists.

It sounds like the But we can just make it optional in
http://insideintercom.io/product-strategy-means-saying-no/

I would say, if it can be done without harm let's do it otherwise don't.

-- 
Cédric Krier

B2CK SPRL
Rue de Rotterdam, 4
4000 Liège
Belgium
Tel: +32 472 54 46 59
Email/Jabber: cedric.kr...@b2ck.com
Website: http://www.b2ck.com/


pgpLGfKg3f1KN.pgp
Description: PGP signature


[tryton-dev] Instant search using tryton search filter

2013-07-03 Thread Demoy Blake
I would like to be able to *query** records each time search filter text is 
altered*.
i.e I type c into search filter (from the Modules tree view) *without 
pressing enter* and  calendar,country,currency are show in tree view.

where shall I go to implement this functionality if not already present.


Re: [tryton-dev] Instant search using tryton search filter

2013-07-03 Thread Cédric Krier
On 03/07/13 09:53 -0700, Demoy Blake wrote:
 I would like to be able to *query** records each time search filter text is 
 altered*.
 i.e I type c into search filter (from the Modules tree view) *without 
 pressing enter* and  calendar,country,currency are show in tree view.
 
 where shall I go to implement this functionality if not already present.

It is not implemented by fear of being to slow.
Anyway, if you want to give a try, you must modify the ScreenContainer
in tryton/gui/window/view_form/view/screen_container.py

-- 
Cédric Krier

B2CK SPRL
Rue de Rotterdam, 4
4000 Liège
Belgium
Tel: +32 472 54 46 59
Email/Jabber: cedric.kr...@b2ck.com
Website: http://www.b2ck.com/


pgpnSyrAcX6v6.pgp
Description: PGP signature


[tryton-dev] tryton: Search on all children for ids to reload (issue 671002)

2013-02-11 Thread cedric . krier

Reviewers: ,



Please review this at http://codereview.tryton.org/671002/

Affected files:
  M tryton/gui/window/view_form/model/group.py


Index: tryton/gui/window/view_form/model/group.py
===
--- a/tryton/gui/window/view_form/model/group.py
+++ b/tryton/gui/window/view_form/model/group.py
@@ -25,6 +25,7 @@
 self.lock_signal = False
 self.parent = parent
 self.parent_name = parent_name or ''
+self.children = []
 self.child_name = child_name
 self.parent_datetime_field = parent_datetime_field
 self._context = context or {}
@@ -42,6 +43,9 @@
 self.pool = WeakSet()
 self.skip_model_access = False

+if self.parent and self.parent.model_name == model_name:
+self.parent.group.children.append(self)
+
 @property
 def readonly(self):
 # Must skip res.user for Preference windows
@@ -188,8 +192,11 @@
 return ids

 def reload(self, ids):
-for record in self:
-if record.id in ids and not record.modified:
+for child in self.children:
+child.reload(ids)
+for id_ in ids:
+record = self.get(id_)
+if record and not record.modified:
 record._loaded.clear()

 def on_write_ids(self, ids):
@@ -411,6 +418,11 @@
 del self.__id2record[old_id]

 def destroy(self):
+if self.parent:
+try:
+self.parent.group.children.remove(self)
+except ValueError:
+pass
 self.clear()
 super(Group, self).destroy()
 self.parent = None


--
--
tryton-dev@googlegroups.com mailing list

--- 
You received this message because you are subscribed to the Google Groups tryton-dev group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to tryton-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [tryton] Search and filter function in tree view issue

2012-11-06 Thread Cédric Krier
On 05/11/12 07:12 -0800, Sami23 wrote:
 Hi,
 Am using gnu health (medical module) with tryton 2.4 after switching
 from medical openerp. Am wondering how to use new filter box to sort
 out appointements in one day, between two dates etc (range of dates,
 from - to) like we did in old version of tryton. This is crutial for
 health professionals and could affect the the successeful conversion
 from Openerp to tryton.

Just type:

Date: 1/1/2012 Date: 6/11/2012

-- 
Cédric Krier

B2CK SPRL
Rue de Rotterdam, 4
4000 Liège
Belgium
Tel: +32 472 54 46 59
Email/Jabber: cedric.kr...@b2ck.com
Website: http://www.b2ck.com/


pgpTDs1pSlXL7.pgp
Description: PGP signature


[tryton] Search and filter function in tree view issue

2012-11-05 Thread Sami23
Hi,
Am using gnu health (medical module) with tryton 2.4 after switching
from medical openerp. Am wondering how to use new filter box to sort
out appointements in one day, between two dates etc (range of dates,
from - to) like we did in old version of tryton. This is crutial for
health professionals and could affect the the successeful conversion
from Openerp to tryton.
Best regards

-- 
-- 
tryton@googlegroups.com mailing list





Re: [tryton] search in function field

2012-07-02 Thread Eric Jouve
This is because email on party.party is a Function field so you need to
write a searcher function first for this field before you can search on
it...


2012/7/2 jmartin jmar...@zikzakmedia.com

 Hi,

 I'm trying to override the search_rec_name function of party.party to
 allow searching parties with its emails, but when I try to execute it,
 tryton returns me this message: search_function_missing. The function is:

 def search_rec_name(self, name, clause):
 ids = self.search([('email',) + clause[1:]], order=[])
 if ids:
 ids += self.search([('name',) + clause[1:]], order=[])
 return [('id', 'in', ids)]
 return super(Party, self).search_rec_name(name, clause)

 I tried to look at this link

 Look at
 http://www.tryton.org/doc/**branches/1.0/trytond/doc/**
 models.html#search-on-**function-fieldshttp://www.tryton.org/doc/branches/1.0/trytond/doc/models.html#search-on-function-fields

 but it doesn't work. Could anyone say me what I'm doing wrong?



 --
 tryton@googlegroups.com mailing list


-- 
tryton@googlegroups.com mailing list


Re: [tryton] search in function field

2012-07-02 Thread jmartin


El dilluns 2 de juliol de 2012 12:39:55 UTC+2, guly200 va escriure:

 This is because email on party.party is a Function field so you need to 
 write a searcher function first for this field before you can search on 
 it...


Thx, I'll do it. 

-- 
tryton@googlegroups.com mailing list


[tryton-dev] tryton: Search only on fields in XML view (issue370003)

2012-05-15 Thread cedric . krier

Reviewers: ,



Please review this at http://codereview.tryton.org/370003/

Affected files:
  M tryton/gui/window/view_form/screen/screen.py


Index: tryton/gui/window/view_form/screen/screen.py
===

--- a/tryton/gui/window/view_form/screen/screen.py
+++ b/tryton/gui/window/view_form/screen/screen.py
@@ -17,7 +17,7 @@
 from tryton.exceptions import TrytonServerError, TrytonServerUnavailable
 from tryton.jsonrpc import JSONEncoder
 from tryton.common.domain_parser import DomainParser
-from tryton.common import RPCExecute, RPCException
+from tryton.common import RPCExecute, RPCException, node_attributes


 class Screen(SignalEvent):
@@ -104,8 +104,16 @@
 continue
 props['selection'] = self.get_selection(props)

-self.domain_parser = DomainParser(
-self.fields_view_tree['fields'])
+# Filter only fields in XML view
+xml_dom = xml.dom.minidom.parseString(
+self.fields_view_tree['arch'])
+root_node, = xml_dom.childNodes
+xml_fields = set(node_attributes(node).get('name')
+for node in root_node.childNodes)
+fields = dict((name, props) for name, props in  
fields.iteritems()

+if name in xml_fields)
+
+self.domain_parser = DomainParser(fields)

 self.screen_container.set_screen(self)
 self.screen_container.show_filter()



--
tryton-dev@googlegroups.com mailing list


Re: [tryton] search widget complexity

2011-10-17 Thread Nicolas Évrard
* Udo Spallek  [2011-10-14 19:54 +0200]: 

Fri, 14 Oct 2011 17:36:23 +0200 Nicolas Évrard
nicolas.evr...@b2ck.com:

I already discussed about this with Okko.
We are thinking about something like this:
 - Removing the text 'Search' and adding a search icon in the
   gtk.Entry
 - Moving the clear icon into the gtk.Entry
 - Putting on the right an editable dropdown box with the stored
   searches. When selecting one the searched then the focus would
   be at the end of the search entry and obviously the entry is
   populated by the search
 - I will also put a little plus icon so that people can add
   themselves custom searches.

This all sounds very interesting to me.

Some more questions to discuss:
   * Are the search queries stored in the database or limited to a
 single client installation (stored in .config/tryton/x.y/)?
   * Are all search queries global for all users or separate for each
 user or both possibilities?
   * Is it possible to include search queries with a module code or
 XML?


I think we should store those information in the database. Probably
per user (but I can see a use case for global searches). So yes some
XML file will definitively be able to set up queries (that's probably
nice for integrators).

--
Nicolas Évrard

B2CK SPRL
rue de Rotterdam, 4
4000 Liège
Belgium
Tel: +32 472 54 46 59
E-mail/Jabber: nicolas.evr...@b2ck.com
Website: http://www.b2ck.com/

--
tryton@googlegroups.com mailing list


Re: [tryton] search widget complexity

2011-10-14 Thread Fares Hantous

Le 14/10/2011 10:58, Jan Grasnick | grasbauer ug a écrit :

Am 14.10.2011 07:52, schrieb Albert Cervera i Areny:


 Once again, I think it is a bad usage of Tryton. If you are looking for

 purchases of a supplier, you start from the Party form of this 
supplier and


 use the relate buttons.

Thats not a real world example. I know for sure that nobody uses the 
relate button.  They are clicking simply the menue entry for purchase 
and searching with the widget: opening parties  supliers. Relate is 
a use that is very advanced for normal users.
I understood from Cedric that a menu can be added for that. This menu 
would be under the purchase menu.

This is not complicated for users.
But for advanced search, it is really complicated with the new search 
widget. Maybe, it can be improved.


--
tryton@googlegroups.com mailing list


Re: [tryton] search widget complexity

2011-10-14 Thread Fares Hantous

Le 14/10/2011 11:12, Udo Spallek a écrit :

2011-10-13 10:34:42 -0700 (PDT)
faresfareshant...@googlemail.com:

I find the new search widget too complicated for basic users.
(I know one user who is unable to memorize the ctrl+c, ctrl+v
shortcuts.)
I think it would be better if the user can choose between the new and
the old interface.

For me the new interface is missing just two features:

  * Save a search query with name or description
  * Use a named search query from a selection.

With this the implementor could pre-define sophisticated search
queries. And the user can select them from a list.

This can be a good idea.

--
tryton@googlegroups.com mailing list


Re: [tryton] search widget complexity

2011-10-14 Thread Bertrand Chenal
Le Fri, 14 Oct 2011 12:12:38 +0200,
Udo Spallek udo.spal...@googlemail.com a écrit :

 For me the new interface is missing just two features:
 
  * Save a search query with name or description
  * Use a named search query from a selection.
 
 With this the implementor could pre-define sophisticated search 
 queries. And the user can select them from a list.

I agree with Udo that some kind of bookmarks for search queries would
solve most of the current difficulties.


-- 
Bertrand Chenal

B2CK SPRL
Rue de Rotterdam, 4
4000 Liège
Belgium
Email: bertrand.che...@b2ck.com
Website: http://www.b2ck.com/

-- 
tryton@googlegroups.com mailing list


Re: [tryton] search widget complexity

2011-10-14 Thread Nicolas Évrard
* Bertrand Chenal  [2011-10-14 17:01 +0200]: 

Le Fri, 14 Oct 2011 12:12:38 +0200,
Udo Spallek udo.spal...@googlemail.com a écrit :


For me the new interface is missing just two features:

 * Save a search query with name or description
 * Use a named search query from a selection.

With this the implementor could pre-define sophisticated search
queries. And the user can select them from a list.


I agree with Udo that some kind of bookmarks for search queries would
solve most of the current difficulties.


I already discussed about this with Okko.

We are thinking about something like this:

- Removing the text 'Search' and adding a search icon in the

  gtk.Entry
- Moving the clear icon into the gtk.Entry
- Putting on the right an editable dropdown box with the stored
  searches. When selecting one the searched then the focus would
  be at the end of the search entry and obviously the entry is
  populated by the search
- I will also put a little plus icon so that people can add
  themselves custom searches.

One issue is that we must have keyboard shortcuts for the search and
the clean icons.

--
Nicolas Évrard

B2CK SPRL
rue de Rotterdam, 4
4000 Liège
Belgium
Tel: +32 472 54 46 59
E-mail/Jabber: nicolas.evr...@b2ck.com
Website: http://www.b2ck.com/

--
tryton@googlegroups.com mailing list


Re: [tryton] search widget complexity

2011-10-14 Thread Korbinian Preisler
Am Freitag, den 14.10.2011, 17:36 +0200 schrieb Nicolas Évrard:
 I already discussed about this with Okko.
 
 We are thinking about something like this:
  
  - Removing the text 'Search' and adding a search icon in the
gtk.Entry
  - Moving the clear icon into the gtk.Entry
  - Putting on the right an editable dropdown box with the stored
searches. When selecting one the searched then the focus would
be at the end of the search entry and obviously the entry is
populated by the search
  - I will also put a little plus icon so that people can add
themselves custom searches.

sounds really good for me.

-- 
Korbinian Preisler

virtual things
Preisler  Spallek GbR
Munich - Aix-la-Chapelle

Windeckstr. 77
81375 Munich - Germany
Tel: +49 (89) 710 481 55
Fax: +49 (89) 710 481 56

i...@virtual-things.biz
http://www.virtual-things.biz

-- 
tryton@googlegroups.com mailing list


Re: [tryton] search widget complexity

2011-10-14 Thread Udo Spallek
Fri, 14 Oct 2011 17:36:23 +0200 Nicolas Évrard
nicolas.evr...@b2ck.com:
 I already discussed about this with Okko.
 We are thinking about something like this:
  - Removing the text 'Search' and adding a search icon in the
gtk.Entry
  - Moving the clear icon into the gtk.Entry
  - Putting on the right an editable dropdown box with the stored
searches. When selecting one the searched then the focus would
be at the end of the search entry and obviously the entry is
populated by the search
  - I will also put a little plus icon so that people can add
themselves custom searches.
This all sounds very interesting to me. 

Some more questions to discuss:
* Are the search queries stored in the database or limited to a
  single client installation (stored in .config/tryton/x.y/)?
* Are all search queries global for all users or separate for each
  user or both possibilities?
* Is it possible to include search queries with a module code or
  XML?

Cheers 
Udo
-- 
_
virtual things
Preisler  Spallek GbR
München - Aachen

Windeckstr. 77
81375 München
Tel: +49 (89) 710 481 55
Fax: +49 (89) 710 481 56

i...@virtual-things.biz
http://www.virtual-things.biz

-- 
tryton@googlegroups.com mailing list


[tryton] search widget complexity

2011-10-13 Thread fares
Hi,
I find the new search widget too complicated for basic users.
(I know one user who is unable to memorize the ctrl+c, ctrl+v
shortcuts.)
I think it would be better if the user can choose between the new and
the old interface.

Fares

-- 
tryton@googlegroups.com mailing list


Re: [tryton] search widget complexity

2011-10-13 Thread Cédric Krier
On 13/10/11 23:12 +0100, Fares Hantous wrote:
 Now, I am not against the new search widget as I was yesterday.
 But I think it should be improved to make it easier for basic users.

What we need is feedback to improve the global usage of Tryton.
Like for example, missing relate or some common menu/search entries etc.

So fill the bugtracker…

-- 
Cédric Krier

B2CK SPRL
Rue de Rotterdam, 4
4000 Liège
Belgium
Tel: +32 472 54 46 59
Email/Jabber: cedric.kr...@b2ck.com
Website: http://www.b2ck.com/


pgpgbM8pooC7F.pgp
Description: PGP signature