Re: [tryton] Add field to product

2012-04-24 Thread Jean Cavallo
Hello, Is there a way to add a custom field to the product template using a new module? Did you try creating a class inheriting from Template which _name would be product.template ? I think it should make your model replace the default one. Jean -- tryton@googlegroups.com mailing list

Re: [tryton] Re: Form validation in a wizard (v2.2)

2012-05-24 Thread Jean Cavallo
Thanks Jean for your help. I can't test this because I'm still using version 2.2, do you have a similar solution for 2.2 ? I am sorry, I started tryton on version 2.3-2.4 so I do not know how wizards work in 2.2... Good luck then ! Jean CAVALLO -- tryton@googlegroups.com mailing list

Re: [tryton] Re: Auto Id

2012-05-25 Thread Jean Cavallo
Why do you want another auto increment field when you already have the id column ? He may be talking of something more like a sequence generator (Administration = Sequence) ? Jean CAVALLO -- tryton@googlegroups.com mailing list

Re: [tryton] Re: Form validation in a wizard (v2.2)

2012-05-29 Thread Jean Cavallo
is not clear enough. Jean CAVALLO -- tryton@googlegroups.com mailing list

Re: [tryton] Install Tryton 2.4 Running from sources

2012-09-27 Thread Jean Cavallo
1) on step Take a look at /etc/mercurial/hgrc.d/hgnested.rc, how to activate the extension., I'm seeing no indication in that file on how to activate the extension, other than, uncomment the following lines: # [extensions] No need for that, you really just need to uncomment in order to

Re: [tryton] Creating this search doman

2012-09-28 Thread Jean Cavallo
Here's the current domain that I have: What is the problem with this domain ? (error, does not work as intended...) Jean -- -- tryton@googlegroups.com mailing list

Re: [tryton] Use tryton as a framework

2012-10-01 Thread Jean Cavallo
BTW, in my original message that has been lost, I also asked if there was a way to create a database from command line ? The -d option on the server (trytond) command should allow you to do so. You also can use proteus, which is a tool that directly connects to the tryton server and allows

Re: [tryton] dont show stack trace on exceptions

2015-07-06 Thread Jean Cavallo
I think you are looking for this : https://github.com/openlabs/trytond-sentry Le lun. 6 juil. 2015 23:05, Mariano Ramon marianog.ra...@gmail.com a écrit : is there anyway to customize runtime errors that show the python exception and use a catch all with a more user friendly message?

Re: [tryton] Disabling creation/deletion on One2Many fields

2015-07-30 Thread Jean Cavallo
would be delighted if you found another solution ! Jean Cavallo *Coopengo*

Re: [tryton] Empty Party Address created with Proteus and Bypass Error.

2016-05-30 Thread Jean Cavallo
hts on sequence types that do not appear in group management screens. 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/ms

Re: [tryton] Search

2016-05-13 Thread Jean Cavallo
[],[],{"limit":20,"domain":[["rec_name","like","P"]],"offset":0,"order":[],"fields":[]}]}* > Be careful ! [["rec_name", "like", "P"]] means [["rec_name", "=", "

Re: [tryton] Tryton client hung up when trying to send PDF to email and open automatically the same report

2016-09-19 Thread Jean Cavallo
may help you find the root cause. See : https://github.com/coopengo/trytond/blob/master/trytond/report/report.py#L258 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://grou

Re: [tryton] Tryton client hung up when trying to send PDF to email and open automatically the same report

2016-09-19 Thread Jean Cavallo
is handled. Our deployment stack automatically handles restarting the unoconv process when it crashes (it still happens randomly), but I do not see how we could integrate it directly in the trytond server. Jean Cavallo *Coopengo* -- You received this message because you are subscribed to the Google

Re: [tryton] Netiquette: (was: Daily Cash Closing/hand over by Cash Clerk at Cash counter)

2016-09-23 Thread Jean Cavallo
"...first be reached a broader > agreement" and "consensus". The decision was made some time ago, so we should stick with it. https://groups.google.com/forum/?hl=en#!topic/tryton/-IA9TLq5qag Jean Cavallo *Coopengo* -- You received this message because you are sub

Re: [tryton] Re: Multiple Tryton server with one back-end DB

2017-08-02 Thread Jean Cavallo
! You *will* have cache problems, because default cache is in memory, so resets may not be triggered in all server instances. Consider using https://bitbucket.org/pokoli/redis-tryton to solve this. We are using multiple tryton instances with an nginx server, so I can confirm it works. Jean Cavallo *Co

Re: [tryton] Sorting the searched records

2017-07-03 Thread Jean Cavallo
Hi, 2017-07-03 7:43 GMT+02:00 Khurram Shahzad <min2gr...@gmail.com>: > roundings = PatientRounding.search([ > ('name', '=', self.name), > ], order=[('evaluation_start', 'DESC')]) > What's the printed output of calling the search with the query=True

Re: [tryton] User is able to select values from read only Selection List

2017-05-26 Thread Jean Cavallo
was not supposed to be readonly at the time, so this could be a display bug that would make the field look like it is readonly when it is not. Saw it on Tryton 4.2 Ubuntu 16.10, no consistent reproductibility so far Jean Cavallo *Coopengo* -- You received this message because you are subscribe

Re: [tryton-dev] Active Record the next step

2012-04-28 Thread Jean Cavallo
Well, the patch is huuuge :) +1, I'm on it but I will need a few days to go through everything. Jean -- tryton-dev@googlegroups.com mailing list

Re: [tryton-dev] Active Record the next step

2012-04-30 Thread Jean Cavallo
/tests_wizard.py, + group_a_id = self.group.create({ + 'name': 'Group A', + })Which one is right ? Jean CAVALLO -- tryton-dev@googlegroups.com mailing list

Re: [tryton-dev] Active Record the next step

2012-04-30 Thread Jean Cavallo
Maybe you should upgrade a simple (or dummy) module and make a before-after comparison ? I saw bits of it in a few (mostly) test classes, but it often is renaming _name, removing _description and adding @staticmethod / @classmethod everywhere. There are modules: ir, res and webdav. I

Re: [tryton-dev] New Reference widget

2012-05-25 Thread Jean Cavallo
that can already be done through some out-of-the-box thinking... Thank you. Jean CAVALLO -- tryton-dev@googlegroups.com mailing list

[tryton-dev] Wizard session forwarding

2012-05-25 Thread Jean Cavallo
Hi all, I am looking for a way to access a wizard's session from within a One2Many field defined on one of the wizard's StateView. I want to initialize some data on the list's elements and need to look for data in the previous states of the wizard. Any idea ? Jean CAVALLO -- tryton-dev

Re: [tryton-dev] Wizard session forwarding

2012-05-25 Thread Jean Cavallo
this when I wanted to init basic type fields or Many2Ones. I would like a way to init new records of a One2Many, so I need code that will be called everytime I click on the New icon of the State's One2Many field. Jean CAVALLO -- tryton-dev@googlegroups.com mailing list

Re: [tryton-dev] Wizard session forwarding

2012-05-25 Thread Jean Cavallo
that, but how can I access the wizard's session from here ? Jean CAVALLO -- tryton-dev@googlegroups.com mailing list

Re: [tryton-dev] Wizard session forwarding

2012-05-28 Thread Jean Cavallo
. Wouldn't it be possible to add the session to the Transaction context or something like that ? Jean CAVALLO -- tryton-dev@googlegroups.com mailing list

Re: [tryton-dev] Wizard session forwarding

2012-05-29 Thread Jean Cavallo
to serialize the session and transmit it over the network or use just the id and create an extra db access ? Btw, I still think it would be more consistent to have some kind of embedded way to access the session in this particular case. Jean CAVALLO -- tryton-dev@googlegroups.com mailing list

[tryton-dev] Enable Ctrl + Space on selection-like Dict entries (issue 809002)

2013-04-18 Thread jean . cavallo
Reviewers: , Description: Enable Ctrl + Space on selection-like Dict entries Safer get_values and lambdas. issue3163 Please review this at http://codereview.tryton.org/809002/ Affected files: M tryton/gui/window/view_form/view/form_gtk/dictionary.py Index:

[tryton-dev] Selection widget of Dict fields should test if the value is in the list (issue 810002)

2013-04-18 Thread jean . cavallo
Reviewers: , Description: Selection widget of Dict fields should test if the value is in the list Please review this at http://codereview.tryton.org/810002/ Affected files: M tryton/gui/window/view_form/view/form_gtk/dictionary.py Index:

[tryton-dev] Safer lambda declaration (issue 827004)

2013-04-24 Thread jean . cavallo
Reviewers: , Please review this at http://codereview.tryton.org/827004/ Affected files: M tryton/gui/window/view_form/view/form_gtk/dictionary.py Index: tryton/gui/window/view_form/view/form_gtk/dictionary.py === ---

[tryton-dev] tryton: Do not filter ids if group is None (issue3183) (issue 832002)

2013-04-26 Thread jean . cavallo
Reviewers: , Please review this at http://codereview.tryton.org/832002/ Affected files: M tryton/gui/window/view_form/screen/screen.py Index: tryton/gui/window/view_form/screen/screen.py === ---

Re: [tryton-dev] Colors of fields

2015-07-06 Thread Jean Cavallo
. Agreed Jean Cavallo *Coopengo*

Re: [tryton-dev] Colors of fields and feedback for current interface

2015-07-06 Thread Jean Cavallo
invalid: Field must follow: domain parsed (only if we can parse it otherwise: Field is not valid for domain) Love this ! Jean Cavallo *Coopengo*

Re: [tryton-dev] Colors of fields

2015-07-07 Thread Jean Cavallo
still anticipate required fields. I agree it is a very good improvement. Indeed it looks rather good, and is very informative ! Jean Cavallo *Coopengo*

Re: [tryton-fr] Listes fields.selection imbriquées

2015-07-29 Thread Jean Cavallo
solution serait que le modèle Code ait un M2O vers un autre modèle Code Category qui contiendrait le champ name. Cette solution permet de garantir l'intégrité de façon plus sûre qu'avec des champs Char Jean Cavallo *Coopengo*

Re: [tryton-fr] Affichage du code tiers à la création du tiers

2015-08-11 Thread Jean Cavallo
plus simple est de faire un on_change_point, qui met à jour le champs typeinv. Jean Cavallo *Coopengo*

Re: [tryton-fr] Affichage du code tiers à la création du tiers

2015-08-11 Thread Jean Cavallo
= self.point.exite.typeinv.id if self.point else None Jean Cavallo *Coopengo*

Re: [tryton-fr] Aide développement module

2015-07-16 Thread Jean Cavallo
? Un champs One2Many / Many2Many ? L'état est-il global ou bien ligne par ligne ? Jean Cavallo *Coopengo*

Re: [tryton-fr] Bouton Add non actif dans un wizard

2015-07-16 Thread Jean Cavallo
retourne pas de nouvel état. La méthode transition_add doit retourner le nom de l'état suivant. Jean Cavallo *Coopengo*

Re: [tryton-fr] Renvoyer la ligne active dans un champ one2many

2015-07-13 Thread Jean Cavallo
? Jean Cavallo *Coopengo*

Re: [tryton-fr] Renvoyer la ligne active dans un champ one2many

2015-07-13 Thread Jean Cavallo
Le 13 juillet 2015 09:14, Pascal Obstetar pascal.obste...@gmail.com a écrit : Je dois mettre à jour les données emplacement en sélection ceux contenu dans la station ! Quel est le déclencheur ? Jean Cavallo *Coopengo*

Re: [tryton-fr] Syntaxe inapproprié pour un domain ?

2015-08-25 Thread Jean Cavallo
Le 25 août 2015 18:13, Pascal Obstetar pascal.obste...@gmail.com a écrit : Mais le domain ne prend en compte que Reptilia pas Amphibia. Où se trouve l'erreur de syntaxe ? Il faut utilise In Jean Cavallo *Coopengo*

Re: [tryton-fr] Syntaxe inapproprié pour un domain ?

2015-08-26 Thread Jean Cavallo
alors classe in ('Reptilia', 'Amphibia') Dans ce cas, essaie : domain=If(Eval('listesessioncompartiment_typinv', 0) == 88, [('classe', 'in', ('Reptilia', 'Amphibia')], []) Jean Cavallo *Coopengo*

Re: [tryton-fr] Syntaxe inapproprié pour un domain ?

2015-08-26 Thread Jean Cavallo
False) Jean Cavallo *Coopengo*

Re: [tryton-dev] Multiple level view inheritance

2015-09-29 Thread Jean Cavallo
about this : http://hg.tryton.org/trytond/file/42c13797c1de/trytond/model/modelview.py#l277 The "pool.get" part cannot handle an empty model. I may take a look at this later. Thanks for your answer. Jean Cavallo *Coopengo*

[tryton-dev] Multiple level view inheritance

2015-09-29 Thread Jean Cavallo
not used. I found a way to achieve the desired behaviour by modifying fields_view_get on ModelView, but I would like to be sure that it is not already possible before submitting a feature / review. Jean Cavallo *Coopengo*

Re: [tryton-fr] Valeur par défaut d'un champ one2many

2015-09-23 Thread Jean Cavallo
Le 23 septembre 2015 15:57, Pascal Obstetar <pascal.obste...@gmail.com> a écrit : > @staticmethod > def default_sale_terms(): > if Transaction().user == 0: > return [] > return [('id', 'in', [45,46])] > return [45, 46] Jean Cavallo *Coopengo*

Re: [tryton-dev] New __init__ style

2016-08-24 Thread Jean Cavallo
;> What do you think? >> > > It thing is a very good improvement, especially third point as knowing the > python file from which the class becomes very usefull for modules with a > lot of python files. +1 Jean Cavallo *Coopengo* -- You received this message bec

Re: [tryton-dev] Stateless Trytond

2016-11-15 Thread Jean Cavallo
load balancer to match db_name / server. Jean Cavallo *Coopengo* -- You received this message because you are subscribed to the Google Groups "tryton-dev" group. To view this discussion on the web visit https://groups.google.com/d/msgid/tryton-dev/CAAc4%2BPaG5s71Zzi14BDA

Re: [tryton-dev] Stateless Trytond

2016-11-15 Thread Jean Cavallo
ir / res models), and load the others on demand. But I agree with Cedric that I am not sure the gain would be that interesting even in the best case scenario (i.e. only one or two models to build). Jean Cavallo *Coopengo* -- You received this message because you are subscribed to the Google Groups &qu

Re: [tryton-fr] Nouveau sur Tryton

2017-03-07 Thread Jean Cavallo
> Il est possible également possible que l'utilisateur avec lequel vous vous êtes connecté ne soit pas rattaché à la même compagnie que la première fois. Jean Cavallo *Coopengo* -- Vous recevez ce message, car vous êtes abonné au groupe Google Groupes  tryton-fr. Cette discussion peut être lue s

Re: [tryton-fr] Surcharge d'un champ

2017-09-21 Thread Jean Cavallo
Bonjour, Les modifications de champs doivent être faites dans le "__setup__" de la classe. (ex: http://hg.tryton.org/modules/account_payment_sepa/file/tip/payment.py#l101) En revanche, essayer d'enlever ce domaine me semble dangereux. Jean Cavallo *Coopengo* -- Vous recevez ce me

Re: [tryton-dev] Sync pool between process

2017-08-28 Thread Jean Cavallo
o/trytond/blob/master/trytond/pool.py#L109 Jean Cavallo *Coopengo* -- You received this message because you are subscribed to the Google Groups "tryton-dev" group. To view this discussion on the web visit https://groups.google.com/d/msgid/tryton-dev/CAAc4%2BPbdijjC7_76sPm