http://codereview.appspot.com/3894041/diff/4001/tryton/common/domain_inversion.py File tryton/common/domain_inversion.py (right): http://codereview.appspot.com/3894041/diff/4001/tryton/common/domain_inversion.py#newcode19 tryton/common/domain_inversion.py:19: IGNORED_OPERATORS = { Not used. Could be merge in ...
15 years, 1 month ago
(2011-01-07 17:20:35 UTC)
#6
http://codereview.appspot.com/3894041/diff/4001/tryton/gui/window/view_form/model/record.py File tryton/gui/window/view_form/model/record.py (right): http://codereview.appspot.com/3894041/diff/4001/tryton/gui/window/view_form/model/record.py#newcode303 tryton/gui/window/view_form/model/record.py:303: widfield.set_default(self, inverted_domain[0][2], The field should also become readonly
15 years, 1 month ago
(2011-01-08 15:10:19 UTC)
#7
15 years, 1 month ago
(2011-01-10 17:00:32 UTC)
#9
http://codereview.appspot.com/3894041/diff/4001/tryton/gui/window/view_form/v...
File tryton/gui/window/view_form/view/form_gtk/many2one.py (left):
http://codereview.appspot.com/3894041/diff/4001/tryton/gui/window/view_form/v...
tryton/gui/window/view_form/view/form_gtk/many2one.py:30:
self.widget.connect('focus-out-event', lambda x, y: self._focus_out())
On 2011/01/10 16:57:16, nicoe wrote:
> On 2011/01/07 17:20:35, ced wrote:
> > Should it be better to keep _focus_out call even if it does nothing.
>
> Is it really usefull to have focus events on the widget containing the m2o
entry
> ? I can not see any usecase.
To get the same behavior for all widgets.
http://codereview.appspot.com/3894041/diff/4001/tryton/gui/window/view_form/model/record.py File tryton/gui/window/view_form/model/record.py (right): http://codereview.appspot.com/3894041/diff/4001/tryton/gui/window/view_form/model/record.py#newcode302 tryton/gui/window/view_form/model/record.py:302: and '.' not in inverted_domain[0][0]): On 2011/01/07 17:20:35, ced ...
15 years, 1 month ago
(2011-01-10 17:08:30 UTC)
#10
http://codereview.appspot.com/3894041/diff/4001/tryton/gui/window/view_form/model/record.py File tryton/gui/window/view_form/model/record.py (right): http://codereview.appspot.com/3894041/diff/4001/tryton/gui/window/view_form/model/record.py#newcode302 tryton/gui/window/view_form/model/record.py:302: and '.' not in inverted_domain[0][0]): On 2011/01/10 17:08:30, nicoe ...
15 years, 1 month ago
(2011-01-10 17:12:25 UTC)
#11
http://codereview.appspot.com/3894041/diff/15002/tryton/common/domain_inversion.py File tryton/common/domain_inversion.py (right): http://codereview.appspot.com/3894041/diff/15002/tryton/common/domain_inversion.py#newcode32 tryton/common/domain_inversion.py:32: and len(expression) in (3, 4) In the current design ...
15 years, 1 month ago
(2011-01-10 17:32:20 UTC)
#14
I check to create a project with module project, on save the following error raise: ...
15 years, 1 month ago
(2011-01-13 14:45:55 UTC)
#19
I check to create a project with module project, on save the following error
raise:
Traceback (most recent call last):
File "/trytond/protocols/netrpc.py", line 48, in run
res = dispatch(host, port, 'NetRPC', *msg)
File "/trytond/protocols/dispatcher.py", line 137, in dispatch
res = getattr(obj, method)(*args, **kargs)
File "/trytond/model/modelsql.py", line 397, in create
self._columns[field].set([id_new], self, field, values[field])
File "/trytond/model/fields/function.py", line 108, in set
getattr(model, self.setter)(ids, name, value)
File "/trytond/modules/project/work.py", line 139, in set_parent
child_timesheet_work_ids = [x.work.id for x in child_project_works]
File "/trytond/model/browse.py", line 171, in __getattr__
return self[name]
File "/trytond/model/browse.py", line 123, in __getitem__
datas = self._model.read(ids, ffields.keys())
File "/trytond/model/modelsql.py", line 620, in read
res2 = self._columns[field].get(ids, self, field_list, values=res)
File "/trytond/model/fields/function.py", line 89, in get
res[name] = getattr(model, self.getter)(ids, name)
File "/trytond/modules/project/work.py", line 113, in get_parent
if project_work.work.parent.id in ptw2pw:
File "/trytond/model/browse.py", line 171, in __getattr__
return self[name]
File "/trytond/model/browse.py", line 123, in __getitem__
datas = self._model.read(ids, ffields.keys())
File "/trytond/model/modelsql.py", line 620, in read
res2 = self._columns[field].get(ids, self, field_list, values=res)
File "/trytond/model/fields/function.py", line 89, in get
res[name] = getattr(model, self.getter)(ids, name)
File "/trytond/modules/project/work.py", line 113, in
get_parent
...
project_works = self.browse(ids)
File "/trytond/model/modelstorage.py", line 507, in browse
for x in ids))
File "/trytond/model/browse.py", line 15, in __init__
super(BrowseRecordList, self).__init__(lst)
File "/trytond/model/modelstorage.py", line 507, in <genexpr>
for x in ids))
RuntimeError: maximum recursion depth exceeded while calling a Python object
On 2011/01/13 14:42:53, udono wrote: > The patch applies. But I can not see any ...
15 years, 1 month ago
(2011-01-13 15:38:47 UTC)
#21
On 2011/01/13 14:42:53, udono wrote:
> The patch applies. But I can not see any difference in the client. Do you have
> an example how to test? Or is it too early for application testing?
Not too early. In the product category tree when you double click on a category
you see all the product linked to that category. Then when creating a new
product from this view the search will be constraint to the child_of that
category.
Its purpose is much broader and I will probably explain it in a mailing list
post.
On 2011/01/13 15:38:47, nicoe wrote: > On 2011/01/13 14:42:53, udono wrote: > > The patch ...
15 years, 1 month ago
(2011-01-13 19:07:34 UTC)
#22
On 2011/01/13 15:38:47, nicoe wrote:
> On 2011/01/13 14:42:53, udono wrote:
> > The patch applies. But I can not see any difference in the client. Do you
have
> > an example how to test? Or is it too early for application testing?
> Not too early. In the product category tree when you double click on a
category
> you see all the product linked to that category. Then when creating a new
> product from this view the search will be constraint to the child_of that
> category.
> Its purpose is much broader and I will probably explain it in a mailing list
> post.
Yes, it works. Great! BTW my reported bug is fixed now.
http://codereview.appspot.com/3894041/diff/51001/tryton/common/domain_inversion.py File tryton/common/domain_inversion.py (right): http://codereview.appspot.com/3894041/diff/51001/tryton/common/domain_inversion.py#newcode16 tryton/common/domain_inversion.py:16: 'like': lambda a, b: True, A comment here to ...
15 years, 1 month ago
(2011-01-14 11:27:29 UTC)
#23
Issue 3894041: Domain inversion patch
(Closed)
Created 15 years, 1 month ago by nicoe
Modified 15 years ago
Reviewers: ced, yangoon, udono
Base URL:
Comments: 24