[tryton-dev] account_invoice_history: Active Record (issue 495003)

2012-09-04 Thread cedric . krier
Reviewers: , Please review this at http://codereview.tryton.org/495003/ Affected files: M __init__.py M invoice.py M party.py M payment_term.py -- tryton-dev@googlegroups.com mailing list

[tryton-dev] project_plan: Active Record (issue 504003)

2012-09-04 Thread cedric . krier
Reviewers: , Please review this at http://codereview.tryton.org/504003/ Affected files: M __init__.py M allocation.py M work.py -- tryton-dev@googlegroups.com mailing list

[tryton-dev] purchase: Active Record (issue 506002)

2012-09-04 Thread cedric . krier
Reviewers: , Please review this at http://codereview.tryton.org/506002/ Affected files: M __init__.py M configuration.py M invoice.py M purchase.py M stock.py -- tryton-dev@googlegroups.com mailing list

[tryton-dev] trytond: Adding fields.Dict (issue 501007)

2012-09-04 Thread nicolas . evrard
Reviewers: , Please review this at http://codereview.tryton.org/501007/ Affected files: M trytond/backend/fields.py M trytond/backend/postgresql/fields.py M trytond/backend/sqlite/fields.py M trytond/ir/model.py M trytond/model/fields/__init__.py A trytond/model/fields/dict.py M

Re: [tryton-dev] Using a fields.Reference in a domain clause of a fields.Many2One

2012-09-04 Thread Udo Spallek
Tue, 4 Sep 2012 17:08:36 +0200 Cédric Krier : >On 04/09/12 16:56 +0200, Udo Spallek wrote: >> is there a way to use a fields.Reference in a domain clause of a >> fields.Many2One? >Since [1], you can use tuple. >And since [2], you can use «active_model» from the evaluation context. >[1] http://hg.tr

Re: [tryton-dev] Cron users (active = false) and access rules

2012-09-04 Thread Cédric Krier
On 04/09/12 16:10 +0200, Raimon Esteve wrote: > 2012/9/4 Cédric Krier : > >> 2- In cron, execution user run is inactive (for example, > >> user_cron_trigger), and the result is: this user don't have acces > >> rule: "You try to bypass an access rule" (you get this message in > >> request user). > >

Re: [tryton-dev] Using a fields.Reference in a domain clause of a fields.Many2One

2012-09-04 Thread Cédric Krier
On 04/09/12 16:56 +0200, Udo Spallek wrote: > Hi, > > is there a way to use a fields.Reference in a domain clause of a > fields.Many2One? E.g. > > class Product(ModelSQL, ModelView): > _name = "product.product" > > picture_attachment = fields.Many2One('ir.attachment', > 'Picture

[tryton-dev] Using a fields.Reference in a domain clause of a fields.Many2One

2012-09-04 Thread Udo Spallek
Hi, is there a way to use a fields.Reference in a domain clause of a fields.Many2One? E.g. class Product(ModelSQL, ModelView): _name = "product.product" picture_attachment = fields.Many2One('ir.attachment', 'Picture Attachment', domain=[ ('type', '=', 'data'),

Re: [tryton-dev] Cron users (active = false) and access rules

2012-09-04 Thread Raimon Esteve
2012/9/4 Cédric Krier : >> > Which access rule? for example: 'UserError', (u'You try to bypass an access rule!\n(Document type: E-mail) "Run On Time Triggers"

Re: [tryton-dev] Cron users (active = false) and access rules

2012-09-04 Thread Cédric Krier
On 04/09/12 16:10 +0200, Raimon Esteve wrote: > 2012/9/4 Cédric Krier : > >> 2- In cron, execution user run is inactive (for example, > >> user_cron_trigger), and the result is: this user don't have acces > >> rule: "You try to bypass an access rule" (you get this message in > >> request user). > >

Re: [tryton-dev] Cron users (active = false) and access rules

2012-09-04 Thread Raimon Esteve
2012/9/4 Cédric Krier : >> 2- In cron, execution user run is inactive (for example, >> user_cron_trigger), and the result is: this user don't have acces >> rule: "You try to bypass an access rule" (you get this message in >> request user). > > Which access rule? https://bitbucket.org/zikzakmedia/t

Re: [tryton-dev] Cron users (active = false) and access rules

2012-09-04 Thread Cédric Krier
On 04/09/12 15:27 +0200, Raimon Esteve wrote: > Hello, > > I don't understand two questions about Tryton cron: > > 1- Only we can select users cron if active = False (domain). Why this > restriction? > (default users active false: "root" and "user_cron_trigger") Because we don't want to use acti

[tryton-dev] Cron users (active = false) and access rules

2012-09-04 Thread Raimon Esteve
Hello, I don't understand two questions about Tryton cron: 1- Only we can select users cron if active = False (domain). Why this restriction? (default users active false: "root" and "user_cron_trigger") 2- In cron, execution user run is inactive (for example, user_cron_trigger), and the result i

[tryton-dev] hgreview and hgnested - Mercurial 2.3

2012-09-04 Thread Raimon Esteve
Hello, I upload hg 2.3 in my workstation (upgrade system) and hgreview and hgnested don't work because class name from this mercurial version was rename. ==hgnested== we talk about this section: http://code.google.com/p/hgnested/issues/detail?id=19 You have a review code at: https://bitbucket.or

[tryton-dev] trytond: modelstorage. Trigger write add eligibles when return True (issue 501006)

2012-09-04 Thread resteve
Reviewers: , Please review this at http://codereview.tryton.org/501006/ Affected files: M trytond/model/modelstorage.py Index: trytond/model/modelstorage.py === --- a/trytond/model/modelstorage.py +++ b/trytond/model/modelsto