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
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
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
is not clear enough.
Jean CAVALLO
--
tryton@googlegroups.com mailing list
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
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
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
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?
would be delighted if you found another solution !
Jean Cavallo
*Coopengo*
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
[],[],{"limit":20,"domain":[["rec_name","like","P"]],"offset":0,"order":[],"fields":[]}]}*
>
Be careful !
[["rec_name", "like", "P"]] means [["rec_name", "=", "
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
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
"...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
!
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
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
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
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
/tests_wizard.py,
+ group_a_id = self.group.create({ + 'name': 'Group A', + })Which one is
right ?
Jean CAVALLO
--
tryton-dev@googlegroups.com mailing list
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
that can
already be done through some out-of-the-box thinking...
Thank you.
Jean CAVALLO
--
tryton-dev@googlegroups.com mailing list
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
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
that, but how can I access the wizard's session from here ?
Jean CAVALLO
--
tryton-dev@googlegroups.com mailing list
.
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
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
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:
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:
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
===
---
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
===
---
.
Agreed
Jean Cavallo
*Coopengo*
invalid: Field must follow: domain parsed
(only if we can parse it otherwise: Field is not valid for domain)
Love this !
Jean Cavallo
*Coopengo*
still anticipate required fields.
I agree it is a very good improvement.
Indeed it looks rather good, and is very informative !
Jean Cavallo
*Coopengo*
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*
plus simple est de faire un on_change_point, qui met à jour le champs
typeinv.
Jean Cavallo
*Coopengo*
= self.point.exite.typeinv.id if self.point else None
Jean Cavallo
*Coopengo*
? Un champs One2Many / Many2Many ? L'état
est-il global ou bien ligne par ligne ?
Jean Cavallo
*Coopengo*
retourne pas de nouvel état.
La méthode transition_add doit retourner le nom de l'état suivant.
Jean Cavallo
*Coopengo*
?
Jean Cavallo
*Coopengo*
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*
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*
alors classe in ('Reptilia',
'Amphibia')
Dans ce cas, essaie :
domain=If(Eval('listesessioncompartiment_typinv', 0) == 88,
[('classe', 'in', ('Reptilia', 'Amphibia')],
[])
Jean Cavallo
*Coopengo*
False)
Jean Cavallo
*Coopengo*
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*
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*
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*
;> 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
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
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
>
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
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
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
52 matches
Mail list logo