Re: [tryton-dev] Colors of fields

2015-07-07 Thread Raimon Esteve
2015-07-06 23:36 GMT+02:00 Cédric Krier :
> On 2015-07-04 08:58, Cédric Krier wrote:
>> Hi,
>>
>> For now, we put a blue color on entries when they are required (and
>> switch to red when validated as empty).
>> I think it is a bad practice for 2 reasons:
>>
>> - the colors are not custumizable and so they could not work on some
>>   thèmes.
>>
>> - it is doesn't help the accessibility [1] as this information is
>>   only based on color.
>>
>> So I was thinking instead about adding a "*" on the labels of the
>> required fields. This still stay quite visual (but not too much) and
>> readable for accessibility.
>
> Indeed the '*' solution is not so beautiful.
>
> So I worked on an other proposal:
>
> - make label bold for required field
> - have a better 'invalid form' message that describe the problem
>
> So here is a screenshot of such invalid form with missing required field
> and wrong value because of domain.
> I think it is really an improvement because now we explain to the user
> what is wrong and experienced user can still anticipate required fields.

+1 about screenshot

1- About a lot of messages and working a small screen, it's possible
message box is bigger than small screen. Scroll all window tab?
Message box have a maximun pixels to show messages and only scroll
message box?
2- Close button at the botton or at the top of message box?


Re: [tryton-dev] Wrong domains in sale/purchase searches in invoices?

2015-07-29 Thread Raimon Esteve


El dimecres, 8 juliol de 2015 12:47:13 UTC+2, Cédric Krier va escriure:
>
> On 2015-07-08 12:08, Jordi Esteve wrote: 
> > On 07/07/15 23:59, Cédric Krier wrote: 
> > >On 2015-07-07 23:38, Cédric Krier wrote: 
> > >>On 2015-07-07 20:04, Jordi Esteve wrote: 
> > >>>In sale and purchase modules the functional sales and purchases 
> fields are 
> > >>>defined on invoice model with a searcher method. 
> > >>> 
> > >>>If these fields are added in the invoice tree view and we search the 
> > >>>invoices related to the SO001 sale, for example, I get this error SQL 
> error 
> > >>>because the sales id is compared with a string: 
> > >>> 
> > >>>ProgrammingError: operator does not exist: integer ~~* unknown 
> > >>>LINE 1: ..."e" ON ("e"."id" = "d"."sale") WHERE "e"."id" ILIKE 
> '%SO001 
> > >>>... 
> > >>>  ^ 
> > >>>HINT:  No operator matches the given name and argument type(s). You 
> might 
> > >>>need to add explicit type casts. 
> > >>> 
> > >>> 
> > >>>The problem is the last .id in the domain of the searcher method. 
> Removing 
> > >>>'.id' the search works well: 
> > >>> 
> > >>> def search_sales(cls, name, clause): 
> > >>> return [('lines.origin.sale*.id*',) + tuple(clause[1:]) + 
> > >>>('sale.line',)] 
> > >>> 
> > >>>Tested in v3.4 but I think v3.6 and trunk have the same behaviour. 
> > >>Won't fix. You should consider it as the behaviour of this function 
> > >>field. 
> > >Indeed now, the implementation of the searcher of many2one behaves the 
> > >same as the searcher on one2many. So yes, removing the '.id' should 
> > >allow to also use string as search value. 
> > 
> > Then, do I open an issue to remove the '.id' in searcher methods of sale 
> and 
> > purchase modules? 
>
> Yes please. 
>

https://bugs.tryton.org/issue4897


Re: [tryton-dev] Tryton support for Python 3 and Django 1.8

2015-09-03 Thread Raimon Esteve
2015-09-02 18:56 GMT+02:00 Stephen Nyaga :
> Hi everyone,
>
> Does Tryton run on Python 3 or is it just limited to Python 2.7 ? If yes,
> what version of Tryton is it?

http://hg.tryton.org/trytond/file/4ff4668e7f2c/doc/topics/install.rst#l10


Re: [tryton-dev] Trouble Flask-Tryton

2015-09-10 Thread Raimon Esteve
El dia 10/09/2015 1.43, "Alejandro Brunacci"  va
escriure:
>
> Hi everyone, I'm trying to use Flask as frontend from Tryton, but because
the lack of documentation is making me crazy to solve some troubles...
>
> When I try to connect to the database, flask is looking for a sqlite's
database and I'm using postgres as db. Is there any way to change it? or
flask_tryton only works with sqlite?

When init app flask, you could define:

TRYTON_DATABASE = 'tryton_database'
TRYTON_USER = '1'
TRYTON_CONFIG = '/etc/trytond.conf'

http://hg.b2ck.com/flask-tryton/file/9565cf10a7b9/flask_tryton.py#l35


Re: [tryton-dev] Translations for sao in next 3.8 release

2015-10-24 Thread Raimon Esteve
2015-10-23 14:50 GMT+02:00 Roberto Novaes :
> We have thus installed: npm install po2json

SAO locales it's fixed last commits.

Before you install:

npm install grunt-po2json

And run

$ grunt po2json

Thanks

Raimon


Re: [tryton-dev] Upload a review on rietveld

2015-11-12 Thread Raimon Esteve
2015-11-11 9:52 GMT+01:00 Sergi Almacellas Abellana :
> I was tryting to upload a code review using hgreview as usual but each time
> i try to login i get a 404 error.

There are other people get same error 404:

https://bugs.tryton.org/msg23107

I think is a good moment to talk in TUBA an easy tool to upload
reviews.  I know other people have problems to publish reviews at
https://tryton-rietveld.appspot.com and hgreview.

-- 
Raimon


Re: [tryton-dev] Copy done shipments

2015-11-23 Thread Raimon Esteve
2015-11-23 14:14 GMT+01:00 Jesús Martín Jiménez :
> Hi,
>
> I've realized that when you copy a done shipment, the original sale where
> shipment came from is modified (no matter what is its state) in the sense of
> adding the new shipment and its moves. I mean, this new shipment is already
> linked with the same sale than the previous one. Is it the expected
> behavior? Or maybe this new shipment should not be linked with that old
> sale?


https://bugs.tryton.org/issue5054

-- 
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/CAN2HbXW1E0Ef%3DexP3OQFxzE1pcBQparzWrn%3DiCJ-wXTbwePQAw%40mail.gmail.com.


Re: [tryton-dev] Upload a review on rietveld

2015-12-04 Thread Raimon Esteve
2015-11-12 16:32 GMT+01:00 Cédric Krier :
> [review]
> oauth2 = true

Added

> OK, I checked and added:
> https://tryton-rietveld.appspot.com/oauth2callback

Sorry, an error occurred...
Unhandled exception.
Details: No code was supplied in the query parameters. [FlowExchangeError]

Maybe I forget a step to try upload reviews? Is there how to
configuration guide for dummies? (I know other people can't upload
codereviews)

IMHO codereview tool is difficut to configure/use more people like to
contribute at Tryton project. It's not easy tool unless Google policy
change it.

Raimon

-- 
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/CALO_w6r3-g71NbxAftdaxMEQ3cv_H%3DpzAORRzkuRQOozjEkU2w%40mail.gmail.com.


Re: [tryton-dev] Upload a review on rietveld

2015-12-08 Thread Raimon Esteve
2015-12-04 15:35 GMT+01:00 Cédric Krier :
> On 2015-12-04 15:29, Raimon Esteve wrote:
>> 2015-11-12 16:32 GMT+01:00 Cédric Krier :
>> > [review]
>> > oauth2 = true
>>
>> Added
>>
>> > OK, I checked and added:
>> > https://tryton-rietveld.appspot.com/oauth2callback
>>
>> Sorry, an error occurred...
>> Unhandled exception.
>> Details: No code was supplied in the query parameters. [FlowExchangeError]
>
> Probably your browser is not logged.

 and how to do it? (in command?)

Thanks

Rai

-- 
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/CALO_w6p8QjyQNa_O3GrMXmgiy%3DFkqVwJO2ntYc7itOtabjxttg%40mail.gmail.com.


Re: [tryton-dev] Upload a review on rietveld

2015-12-09 Thread Raimon Esteve
2015-12-09 1:09 GMT+01:00 Karla Stenger :
> El mar 08/12/2015, 20:58, Raimon Esteve  escribió:
>
> 2015-12-04 15:35 GMT+01:00 Cédric Krier :
>> On 2015-12-04 15:29, Raimon Esteve wrote:
>>> 2015-11-12 16:32 GMT+01:00 Cédric Krier :
>>> > [review]
>>> > oauth2 = true
>>>
>>> Added
>>>
>>> > OK, I checked and added:
>>> > https://tryton-rietveld.appspot.com/oauth2callback
>>>
>>> Sorry, an error occurred...
>>> Unhandled exception.
>>> Details: No code was supplied in the query parameters.
>>> [FlowExchangeError]
>>
>> Probably your browser is not logged.
>
>  and how to do it? (in command?)
>
>
>
>
> Login in your browser with the Google account you're using in rietveld,
> leave the browser open and retry the command.

Doesn't work

1- My ~/.hgrc file:

[review]
oauth2 = true
username = rest...@zikzakmedia.com
server = https://tryton-rietveld.appspot.com
send_email = True

2. Open Firrfox and Chrome (both!) and login in:

https://tryton-rietveld.appspot.com/

3- Run command to publish a codereview

resteve@canigo:~/virtualenv/codereview/sale$ hg review -m "sale:
browse product when party lang is different than user lang"
Server used https://tryton-rietveld.appspot.com
Password for rest...@zikzakmedia.com:
abort: HTTP Error 404: Not Found

Thanks

-- 
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/CALO_w6oJhrK52ns39E7Ybh02buzaTqLRjGHyjLmSu67bDUayPA%40mail.gmail.com.


Re: [tryton-dev] Upload a review on rietveld

2015-12-09 Thread Raimon Esteve
2015-12-09 20:19 GMT+01:00 Sergi Almacellas Abellana :
>
>
> On 9 desembre de 2015 19:10:58 CET, Raimon Esteve  
> wrote:
>>2015-12-09 1:09 GMT+01:00 Karla Stenger :
>>> El mar 08/12/2015, 20:58, Raimon Esteve 
>>escribió:
>>>
>>> 2015-12-04 15:35 GMT+01:00 Cédric Krier :
>>>> On 2015-12-04 15:29, Raimon Esteve wrote:
>>>>> 2015-11-12 16:32 GMT+01:00 Cédric Krier :
>>>>> > [review]
>>>>> > oauth2 = true
>>>>>
>>>>> Added
>>>>>
>>>>> > OK, I checked and added:
>>>>> > https://tryton-rietveld.appspot.com/oauth2callback
>>>>>
>>>>> Sorry, an error occurred...
>>>>> Unhandled exception.
>>>>> Details: No code was supplied in the query parameters.
>>>>> [FlowExchangeError]
>>>>
>>>> Probably your browser is not logged.
>>>
>>>  and how to do it? (in command?)
>>>
>>>
>>>
>>>
>>> Login in your browser with the Google account you're using in
>>rietveld,
>>> leave the browser open and retry the command.
>>
>>Doesn't work
>>
>>1- My ~/.hgrc file:
>>
>>[review]
>>oauth2 = true
>>username = rest...@zikzakmedia.com
>>server = https://tryton-rietveld.appspot.com
>>send_email = True
>>
>>2. Open Firrfox and Chrome (both!) and login in:
>>
>>https://tryton-rietveld.appspot.com/
>>
>>3- Run command to publish a codereview
>>
>>resteve@canigo:~/virtualenv/codereview/sale$ hg review -m "sale:
>>browse product when party lang is different than user lang"
>>Server used https://tryton-rietveld.appspot.com
>>Password for rest...@zikzakmedia.com:
>>abort: HTTP Error 404: Not Found
>>
>>Thanks
>  It seeems you're not using the latest version from source code. As oauth 
> suport is not yet realeased in any version.
>
> When using the correct version, the browser should open (and ask login if 
> needed) we running the upload command.

Eureka!!! It is! Upgraded hgreview to version 0.4.

After hg review command, open a new window browser to loggin.

Thanks

Rai

-- 
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/CALO_w6rGK_F_qTNUTUfiD8oUiVUeO%3D6HXCEvpjhgm5rs0shJ1g%40mail.gmail.com.


Re: [tryton-dev] Syntax in views

2015-12-10 Thread Raimon Esteve
2015-12-10 12:47 GMT+01:00 Christophe (net) :
> Hi,
>
> It seems that the following syntax for the 'states' attribute doesn't work
> in 3.8 :
>
> 
>
> I would have missed something ?

1- Remove safe_eval
2- States defined in view_attributes

Example in sale module:

http://hg.tryton.org/modules/sale/rev/4dca378b9142

Regards

Raimon

-- 
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/CALO_w6reZyk9DMc7Pzz72%2BE0jRn7EaoyWFAHFdZidt8icY4tSA%40mail.gmail.com.


[tryton-dev] Issue5167 Check all fields when writing a sequence of records, values

2015-12-16 Thread Raimon Esteve
the 06230c381593 from trytond (1) is related to issue5167. But when I
read more details in issue:

You are not allowed to view this page.

Could you do public this issue? Also review22631002

Thanks

(1) http://hg.tryton.org/trytond?cmd=changeset;node=06230c381593

-- 
Raimon Esteve - @raimonesteve
// Cloud Tryton - OpenERP www.zzsaas.com
// DOC: http://doc.zzsaas.com
www.zikzakmedia.com

-- 
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/CALO_w6rH2cfaqPYTPQU09_xc5VBZpSjc%2Bh8Sj-TOQRMn8O8isw%40mail.gmail.com.


Re: [tryton-dev] Create a new item under an existing menu

2015-12-23 Thread Raimon Esteve
El dia 24/12/2015 6.28, "Vincent Bastos"  va
escriure:
>
> Hey,
>
> I am trying to create a new item under the Party menu.
>
> I thought that this would work but it does not seem to work as no item
appears in the menu:
>
>  id="menu_badge_window" sequence="20" />
>
> Having said that after I run the command to update Tryton ( -u
 ) I don't see a menu entry in the menu table of Postgres, so
perhaps my issue is not with the programming/syntax but more about updating
the module for some reason.

In tryton.cfg file, do you added your filename in xml section?

-- 
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/CALO_w6o7%3DfET_dvk14zL0F6pSJ6%3DCvJ1prtNFRRdBVQ6tAKQVQ%40mail.gmail.com.


Re: [tryton-dev] sao - problems with konqueror

2016-02-01 Thread Raimon Esteve
2016-02-02 8:26 GMT+01:00 Axel Braun :

> Hi,
>
> running sao on a konqueror browser (KDE)
>
https://github.com/twbs/bootstrap/issues/118 (see last message)


> displays only half of he screen, while firefox works correctly.
> Problem of the engine (...I think they use webkit in between)?
>
>
>
> <https://lh3.googleusercontent.com/-SnwZGf9FGuA/VrBZy_w192I/Bfo/NQFx3p9rcRU/s1600/SAO_konqueror.png>
>
>
> --
> 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/00023a3f-ce24-43e1-ac76-eb86d8659f9c%40googlegroups.com
> <https://groups.google.com/d/msgid/tryton-dev/00023a3f-ce24-43e1-ac76-eb86d8659f9c%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>



-- 
Raimon Esteve - @raimonesteve
// Cloud Tryton - OpenERP www.zzsaas.com
// DOC: http://doc.zzsaas.com
www.zikzakmedia.com

-- 
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/CALO_w6rdVYrey8yf7VDOrAKQH55PS70syYU8X_jcoHa81eK1Jw%40mail.gmail.com.


Re: [tryton-dev] Error: Incompatible version of the server

2016-03-09 Thread Raimon Esteve
El dia 09/03/2016 19.05, "Ashish Kumar"  va
escriure:
>
> Hi,
>
> I was trying to setup tryton on my machine (ubuntu) but I am getting
Incompatible version of the server error. I have followed below steps:
>
> 1.   hg clone https://hg.tryton.org/trytond

Default branch is v3.9. Change to 3.8 branch

> 2. Run bin/trytond
> 3. I have installed tryton from pip

Last version is 3.8

> 4. Run tryton
> 5. Filled the database details (Image1)
>
> 6. Error (Image2)

-- 
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/CALO_w6pdPHdg%3DsO6E44pYhacD0OT7XcjpxZvJM8UwYLJixa%3DWg%40mail.gmail.com.


Re: [tryton-dev] Compile client on mac os "el capitan"

2016-03-31 Thread Raimon Esteve
El dia 31/03/2016 1.05, "Elmer Steven Salazar Arias" 
va escriure:
>
>
> I need compile client on mac os "el capitan"
>
> The link
https://code.google.com/archive/p/tryton/wikis/BuildingMacOSXInstall.wiki
not found. Please
> helpme!

Here the deprecated wiki:

http://hg.tryton.org/deprecated/tryton.wiki/file/e5cff9482830/BuildingMacOSXInstall.wiki

Please, update "how to" build macos client step by step ;)

Raimon

-- 
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/CALO_w6o4E2MUW3-nOnCASqjjzxwLh-P%2BSd1zr9oMb5or_X9Lbg%40mail.gmail.com.


Re: [tryton-dev] Unable to browse source code from the mercurial web interface

2016-04-06 Thread Raimon Esteve
2016-04-06 13:37 GMT+02:00 Sergi Almacellas Abellana :
> El 06/04/16 a les 13:34, Cédric Krier ha escrit:
>>
>> On 2016-04-06 12:50, Sergi Almacellas Abellana wrote:
>>>
>>> >Hi,
>>> >
>>> >When browsing any file in the tryton mercurial source repositories it
>>> > shows
>>> >and empty blank page (i.e [1])
>>> >
>>> >Anyone knows how to solve it?
>>
>> It must be fixed.
>
>
> It's working now. Thanks!
>
> This is due to incompatibility between hgnested and
>>
>> this changeset:https://selenic.com/repo/hg/rev/06320fb11699
>> I applied a quick fix on hg.tryton.org and I'm working on a hgnested
>> patch.
>
>
> Thanks for your work.

Me to. Thanks.

Raimon

-- 
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/CAN2HbXXbpZdECv4eDvTGXvgLGp1OihRd_iTU%3DNhESPn9goQf3Q%40mail.gmail.com.


Re: [tryton-dev] Unable to browse source code from the mercurial web interface

2016-04-10 Thread Raimon Esteve
2016-04-06 13:37 GMT+02:00 Sergi Almacellas Abellana :

> El 06/04/16 a les 13:34, Cédric Krier ha escrit:
>
>> On 2016-04-06 12:50, Sergi Almacellas Abellana wrote:
>>
>>> >Hi,
>>> >
>>> >When browsing any file in the tryton mercurial source repositories it
>>> shows
>>> >and empty blank page (i.e [1])
>>> >
>>> >Anyone knows how to solve it?
>>>
>> It must be fixed.
>>
>
> It's working now. Thanks!
>

I detected same eror in B2ck tryton repos; not open source code.

http://hg.b2ck.com/flask-tryton/file//flask_tryton.py

Regards

Raimon

-- 
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/CALO_w6qqv-zA5DoRgmycE4p%3DOW18GC1TiAbkdbFvg48%2BX_Nbdw%40mail.gmail.com.


Re: [tryton-dev] Unable to browse source code from the mercurial web interface

2016-04-11 Thread Raimon Esteve
2016-04-11 9:29 GMT+02:00 Cédric Krier :

> On 2016-04-11 08:14, Raimon Esteve wrote:
> > 2016-04-06 13:37 GMT+02:00 Sergi Almacellas Abellana :
> >
> > > El 06/04/16 a les 13:34, Cédric Krier ha escrit:
> > >
> > >> On 2016-04-06 12:50, Sergi Almacellas Abellana wrote:
> > >>
> > >>> >Hi,
> > >>> >
> > >>> >When browsing any file in the tryton mercurial source repositories
> it
> > >>> shows
> > >>> >and empty blank page (i.e [1])
> > >>> >
> > >>> >Anyone knows how to solve it?
> > >>>
> > >> It must be fixed.
> > >>
> > >
> > > It's working now. Thanks!
> > >
> >
> > I detected same eror in B2ck tryton repos; not open source code.
>
> Fixed also.


Done. thanks.


> But please don't spread wrong information, the code of B2CK
> is open source, it is released under GPL-3.
>

I don't tolk about the licence. I tolk about mercurial webpage not open
source code option ;)

Thanks


>
> --
> Cédric Krier - B2CK SPRL
> Email/Jabber: cedric.kr...@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-dev" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tryton-dev/20160411072900.GR29119%40tetsuo
> .
>



-- 
Raimon Esteve - @raimonesteve
// Cloud Tryton - OpenERP www.zzsaas.com
// DOC: http://doc.zzsaas.com
www.zikzakmedia.com

-- 
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/CALO_w6qPYfRHRK7GxNmGatprfjkAVmE6U9bC8MasO2k0uuPKMw%40mail.gmail.com.


Re: [tryton-dev] how to change the field states

2016-04-12 Thread Raimon Esteve
2016-04-12 9:09 GMT+02:00 Markus Bala :
>
>
> On Tue, Apr 12, 2016 at 1:58 PM, Ralf Peschke 
> wrote:
>>
>> Hi Markus,
>>
>> Am 12.04.2016 um 05:55 schrieb Markus Bala:
>> > Hi,
>> >
>> > I had an inherit model ShipmentIn. Adding new field "order_confirm". The
>> > purpose when the order confirmed, other fields will be readonly.
>> >
>> > How I am going to modify other fields base on the "order_confirm"?
>> >
>> > Example:
>> > Original :
>> > company = fields.Many2One(.., states ={'readonly': Eval('state') !=
>> > 'draft'})
>> >
>> > Expected:
>> > company = fields.Many2One(..., states = {'readonly': Eval('state') !=
>> > 'draft' | Eval('order_confirm') }
>> >
>> The "states" of each field are a dictionary with the keys "readonly",
>> "required" and "invisible". You can change it in the setup-classmethod:
>>
>> @classmethod
>> def __setup__(cls):
>> super(YOURCLASSNAME, cls).__setup__()
>> cls.company.states['readonly'] = (Eval('state') != 'draft' |
>> Eval('order_confirm'))
>>
>>
>> I hope it helps in time
>
>
> Hi Ralf,
>
> Thank you.
>
> If let say I do not want to change the original state but only add the new
> condition. Is it possible?
>
> original_condition = cls.company.states['readonly']
> cls.company.states['readonly'] = (original_condition  |
> Eval('order_confirm'))

And example inherit in  __setup__(cls):

cls.shipment.states['readonly'] |= Eval('moves', False)

In your code (without tested):

cls.company.states['readonly'] |= Eval('order_confirm')

Raimon

-- 
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/CALO_w6r_ykBnBQiq9dpPsQbUrfgVwij_SMac01CKnhxk8xiNMw%40mail.gmail.com.


Re: [tryton-dev] Re: Need some Windows/Excel test for issue5361

2016-04-15 Thread Raimon Esteve
>
> > About UTC, export date in UTC's SERVER not use UTC's local PC.
>
> There is only one UTC. Any way, I already explain why we use UTC above.
>
> > About decimal point may be can get it before to export CSV in same
> wizard.
>
> I think this is the same topic as for UTC. We use universal
> representation to be unambiguous.
>

I agree not use default values  and replace to use company language or user
language.

After export CSV file, usually user open csv file with a speesheet. And
conversion language, is very important to open this file.

About custom developments, we force export CSV data according user
language. For example, about point or comma in decimal fields:

from babel.numbers import format_decimal

.
 format_decimal(f['list_price_min_rival'] or 0.0, locale=locale),
..

Regards,

Raimon

-- 
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/CALO_w6p720s5T-jm9pbdp-p%3D4riPFVnaq5LdSHik%3DRLUyOVspA%40mail.gmail.com.


Re: [tryton-dev] Translations for 4.0

2016-05-07 Thread Raimon Esteve
El dia 07/05/2016 15.35, "Cédric Krier"  va escriure:
>
> On 2016-05-07 14:47, Cédric Krier wrote:
> > Hi,
> >
> > I just discovered that the translations synchronisation before the
> > release did not work correctly. Many translated strings are still marked
> > as fuzzy in the repositories.
> > I used the command line: pootle sync_stores
> > but it seems that it doesn't correctly synchronize everything, maybe it
> > is due to the recurring failing jobs.
> > I re-run the command but with options: pootle sync_stores --force
--overwrite
> > The result is: http://hg.tryton.org/pootle/rev/a6256196c78b
> > As you can see many translations are missing.
> > I propose to push those new translations in 4.0 for a new release round
> > because it is too bad to not have all the translations for this release
> > even if this infringes the release rules. We could make a post about
> > this to ensure everyone who has already upgrade to 4.0 will update the
> > database after this translation fix release.
>
> I have already pushed the new translation in the default branch.

Ok. Is it possible graft to 4.0 branch?

Thanks.

-- 
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/CALO_w6pt3mzgrRKz_W75p8TZ%2BUr3%3D_O%3DuCNHgpVQ8NZsnwj3zA%40mail.gmail.com.


Re: [tryton-dev] Renaming rec_name label?

2016-06-07 Thread Raimon Esteve
2016-06-07 9:51 GMT+02:00 'Udo Spallek' via tryton-dev
:
> Hi,
>
> Mon, 6 Jun 2016 18:58:10 +0200
> "Jordi Esteve (Zikzakmedia)" :
>>> I propose to change the label for "rec_name" though I don't have a
>>> strong opinion on what should it be.
>>> Here are some ideas that came to my mind:
>>> - Summary
>>> - Record Summary
>>> - Record Name
>>> - Record Title
>>> - Record Alias
>>> Opinions?
>>I agree to change the label for "rec_name".
>>I like "Record Name" because it is similar to the current label and in
>>many models the "rec_name" field shows the same as the "name" field.
>
> +1

+1

Raimon

-- 
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/CALO_w6rXz%2BoQ%3DOWRLxQ5jkXJC%2Bg%2BMMXET27kK6pSoh-SuJU-vg%40mail.gmail.com.


Re: [tryton-dev] Restore colors attribute on tree view

2017-04-12 Thread Raimon Esteve
hi Carlos,

I'm agree about colors. I share our patchs about 3.8 release to apply
colors.
(tryton and trytond).

https://bitbucket.org/zikzakmedia/tryton-patchs/src/9ae7fb406211ad246811d21e235820fec44bb29b/trytond-8d300968654d.patch?at=3.8&fileviewer=file-view-default

https://bitbucket.org/zikzakmedia/tryton-patchs/src/9ae7fb406211ad246811d21e235820fec44bb29b/tryton-26c3d416b23b.patch?at=3.8&fileviewer=file-view-default


El dia 10/04/2017 20.55, "Carlos Ibrahim Arias"  va
escriure:

I understand that this function has been deprecated and removed from the
code but the point is that there are final users for whom this is a
requirement. We should give them the possibility to chose what they want
for their usability and accessibility if they consider is good for them.

In this case the final user is demanding this option. Please help me to
fullfill his requirement.

I restored all the removed code indicated at the changeset
http://hg.tryton.org/trytond/rev/f21ba9c81eb6, but when adding the
following @classmethod for testing to the class Appointment the elements in
the tree view are in black color, and they should be in red color.

@classmethod
def view_attributes(cls):
return [('/tree', 'colors', 'red')]


This code show all lines in red color.

See other example: list modules and installed.

https://bitbucket.org/zikzakmedia/tryton-patchs/src/9ae7fb406211ad246811d21e235820fec44bb29b/trytond-5ac78f0a49c7.patch?at=3.8&fileviewer=file-view-default

Are you patched the client (tryton) and trytond?

Regards.

-- 
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/CAN2HbXXORfEFxhpPGKhOVunXobYsF_zzx3euMKdOkOOahR6mrw%40mail.gmail.com.


Re: [tryton-dev] Tryton 4.2 is slow compared to previous versions

2017-05-26 Thread Raimon Esteve
Hello,

2017-05-25 21:42 GMT+02:00 appu rongala :
> Hi Devs,
>
> I have installed tryton4.2  and i feel it is slower than previous versions.
> I have tryton3.4 installed and that is faster than 4.2.
> Am i doing anything wrong?

Yes, since 4.0 is more slower than 3.8, 3.6... when have big data or
complex forms. We tested with bin/trytond and WSGI app.

At the moment we think it is the werkzeug [1] and requests.

Finally we tested with a WSGI comiled with C and timeit reduce 50-60%.
At the moment, we are still investigating

Regards.

[1] http://werkzeug.pocoo.org/

-- 
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/CAN2HbXW%3DLw5JTBov5pd71XwjxA-nY0%2BQZphGyynYVCxE8j9Yfg%40mail.gmail.com.


Re: [tryton-dev] Tryton 4.2 is slow compared to previous versions

2017-05-26 Thread Raimon Esteve
Hie Cédric

2017-05-26 14:57 GMT+02:00 Cédric Krier :
> On 2017-05-26 14:09, Raimon Esteve wrote:
>> Hello,
>>
>> 2017-05-25 21:42 GMT+02:00 appu rongala :
>> > Hi Devs,
>> >
>> > I have installed tryton4.2  and i feel it is slower than previous versions.
>> > I have tryton3.4 installed and that is faster than 4.2.
>> > Am i doing anything wrong?
>>
>> Yes, since 4.0 is more slower than 3.8, 3.6... when have big data or
>> complex forms. We tested with bin/trytond and WSGI app.
>
> Without any standard measurements, we can not say anything.
> If you have such data, please share it. And also the tools to make the
> measures.
> We also need to know what is measured? Tryton is a complex software with
> many usages. It does not make sense to just say "it is slow".

start a client action -> trytond -> finally the response client.

I'm agree with Appu about when compare 4.x is slow that a minor version.

Regards

-- 
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/CAN2HbXU7h7grs2SVmvcMyyWcLVs6dPDGNfpvWthN-S0vSn3Q1w%40mail.gmail.com.


Re: [tryton-dev] Dinamic views

2017-05-28 Thread Raimon Esteve
Hie Oscar,


2017-05-23 23:37 GMT+02:00 Oscar Alvarez :
>
>
> On 23/05/17 15:36, Albert Cervera i Areny wrote:
>>
>> 2017-05-23 0:44 GMT+02:00 Oscar Alvarez :
>>>
>>> On 20/05/17 03:34, Nicolas Évrard wrote:
>>>
>>> * Oscar Alvarez  [2017-05-20 00:04 +0200]:
>>>
>>> Hi Dev,
>>>
>>>
>>> Hello Oscar,
>>>
>>> I am curious is  it possible set tree view with numbers of Columns
>>> dinamic,
>>> so the columns number must to change when Context change or to exist any
>>> way
>>> for reach this?
>>>
>>>
>>> What problems are you trying to solve?
>>>
>>>
>>> Hi Nicolas,
>>>
>>> Dinamic views is important in several cases, the main use is for views
>>> used
>>> in reports, for example:
>>>
>>>   For balance sheet we need have one view where according to the context
>>> model we can to see just one fiscalyear (1 column), two fiscalyear (2
>>> columns) or three fiscalyear (3 columns) for comparatives in this case a
>>> new
>>> column is add/removed when the user click in reload.
>>>
>>>   For stock products quantity report could be used for view one, two,
>>> three
>>> columns where the columns represent differents warehouses, according to
>>> warehouses selected in context maybe using "active_ids"
>>>
>>>  QtyQty
>>>  ProductWarehouse 1Warehouse  2
>>>  A52
>>>  B73
>>>  C125
>>>
>>>
>>> For sales is useful for comparative reports, where the user could be view
>>> sales for one month or several months (the same fiscal year)
>>>
>>> When we want to see just one period:
>>>
>>> 
>>>
>>> Report Sales / Purchase / Invoice Comparative
>>>
>>> 
>>>
>>>  Start Period:  2017-02End Period: 2017-02   <-
>>> Many2One
>>> of account.period
>>>
>>> 
>>>
>>> Filter:
>>>
>>> -
>>> Party (Customer / Supplier)  |  2017-02   |
>>>
>>> -
>>> Abc Company INC|$100.00  |
>>> Xyz LLC| $359.00
>>> |
>>> .
>>> .
>>> .
>>>
>>> When we want to see a range of periods:
>>>
>>>
>>> 
>>>
>>> Report Sales / Purchase / Invoice Comparative
>>>
>>> 
>>>
>>>  Start Period:  2017-02End Period: 2017-04   <-
>>> Many2One
>>> of account.period  (Just change "End period" field and click in "Reload",
>>> so
>>> then more columns are added to treeview)
>>>
>>> 
>>>
>>> Filter:
>>>
>>> -
>>> Party (Customer / Supplier)  |  2017-02  |
>>> 2017-03
>>> |2017-04 |
>>>
>>> -
>>> Abc Company INC|$100.00 |
>>> $500.0
>>> |$0  |
>>> Xyz LLC| $359.00|
>>> $ 0|  $733|
>>> .
>>> .
>>> .
>>>
>>>
>>> This feature make more powerful and flexible reports in views, so the
>>> only
>>> way to reach
>>>
>>> I don't know maybe there is more people/developers interested in see and
>>> works around  this feature.
>>
>> That is not possible yet you can find (at least) a couple of workarounds:
>>
>> - You may take a look at babi module at bitbucket were the user can
>> configure a report and recalculate it when needed.
>
> Ok thanks for Babi mention, but I can not install babi because is not
> compatible with python3, I fixed setup.py, but I get still on install:
>
> Traceback (most recent call last):
>   File "/home/psk/.virtualenvs/tryton40/bin/trytond-admin", line 21, in
> 
> admin.run(options)
>   File
> "/home/psk/.virtualenvs/tryton40/lib/python3.5/site-packages/trytond/admin.py",
> line 48, in run
> Pool(db_name).init(update=options.update, lang=lang)
>   File
> "/home/psk/.virtualenvs/tryton40/lib/python3.5/site-packages/trytond/pool.py",
> line 142, in init
> self.start()
>   File
> "/

Re: [tryton-dev] Dinamic views

2017-05-30 Thread Raimon Esteve
Hie Sergi

2017-05-30 12:42 GMT+02:00 Sergi Almacellas Abellana :
> El 24/05/17 a les 08:13, Raimon Esteve ha escrit:
>>
>> Other module that use DynamicModel is survey. The PoolMeta was moved
>> into the class.
>>
>> https://bitbucket.org/zikzakmedia/trytond-survey/
>
> I'm wondering why you use dynamic model here, instead of using a Dict field
> to store the survey values.

I'm not sure with Dict fields you could:

- tree/form views and menus to acces to news models
-  Navigation into fields: m2o, m2m,...
- Searchable (without function fields)
- Integrate with third tools (BI) and without transform/extract data
- 

In other modules,you could see we use dict fields to storage some data.

Regards,

-- 
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/CAN2HbXXZpj-%3D05%3DUqcz29ZQiDg5gf8aEhESMbJRxeCAiGtXasg%40mail.gmail.com.


Re: [tryton-dev] Problem connecting 4.2.5 server

2017-07-26 Thread Raimon Esteve
Hie Oscar,

2017-07-26 18:48 GMT+02:00 Oscar Alvarez :
> Hello
>
>
> When I try connect to server 4.2.5 with client 4.2.5, setting config
> file with "list" attribute to "False" or "0", We see on manage profiles
> this message, "It could not connect to server", to in 4.0 we dont have
> this problem, the only way for solved is set list attribue to "True" or
> "1", but I think that is security risk when we have several databases
> running of the different customers in the same server. Is it a bug? or
> missing something in my config file?

https://bugs.tryton.org/issue6150


>
> [database]
> uri = postgresql://xxx:@127.0.0.1:5432/
> path = /var/lib/trytond/
> language = es
> retry = 5
> list=False
>
>
> [session]
> timeout = 500
> super_pwd = tX
>
>
> [web]
> listen = *:8000
> hostname = 127.0.0.1
>
> --
> Best regards / Atentamente,
>
> Oscar Andrés Alvarez M.
> CEO, Presik SAS
> Cel. 301 245 7967
> www.presik.com
> < Empresas Inteligentes >
>
> --
> 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/be02e0ee-af69-0093-ea19-a2c5ad784460%40gmail.com.



-- 
Raimon Esteve - @raimonesteve
// Cloud Tryton - OpenERP www.zzsaas.com
// DOC: http://doc.zzsaas.com
www.zikzakmedia.com

-- 
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/CALO_w6qpzX%3DmEZFfjXpqo6SoOcWXyAwN37k5TiaLRSYHc-7duQ%40mail.gmail.com.


Re: [tryton-dev] 80 cols on XML file

2017-12-21 Thread Raimon Esteve
+1

Regards

-- 
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/CAN2HbXUfwDuPuFQ61DR46dz9qHH5QK9aQ%2BhZNw2bXHBQEvmEPA%40mail.gmail.com.


[tryton-dev] How to update to null a table column with python-sql

2018-01-31 Thread Raimon Esteve
hie,

I try with python-sql to update a column to "null".

Somebody know how to update to null a column?

Example:

query = user.update(
columns=[user.main_company],
values=[None], <- I like here to update with null
where=user.main_company != Null)

Thanks

-- 
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/CAN2HbXVn8ZJFyW_Oemjj14O%2BxDGw4CWjW24S%3D-tdP76jm1FBZA%40mail.gmail.com.


Re: [tryton-dev] Adding a sequence on an existing field

2018-01-31 Thread Raimon Esteve
Hie,

2018-01-31 14:51 GMT+01:00 Maxime Richez :
>
> Hi,
>
> Some questions and explanations of something i thought easy to realize...
> I decide to create a custom module to add a sequence on an existing
field. In my case, it concerns stock_lot module. There's a field "number"
(type char, required=true) that i need to be "sequenced".
>
> So in my module, there are 2 classes: Configuration,
ConfigurationSequence to define my sequence and i update the original class
"Lot" to define "number" field "readonly", and set sequence on this number
field when creating a new lot.
>
> Here's the code: https://pastebin.com/74EXsjT7

I think the problem is:

cls.number.states['readonly'] = True

Try to remove required states that is not True (and/or invisible in case
that you like not show it)

> In the first time, forgot the __register__ method.
>
> When executing my new module and saving a new lot, this was not working,
i got error on "Number" that is required... it seems number field is not
updated by my new sequence...
>
> Checking my create method, there's a test "if values.get('number') is
None:"...
> I discovered this test is not working because value of the field is not
None but "" (checking database, related field is defined as "NOT NULL"
because of the "required = True" in the original model and then couldn't be
None).
>
> Checking many tryton scripts, i saw it was possible to remove the "NOT
NULL" through the register method with "table.not_null_action('number',
action='remove')"... but not allowed to do this with a custom module
because there is a check if the module_name attempting to update fields is
the original module.
>
> So, what's the best way to finish my custom module?
>
> - Changing my original test "if values.get('number') is None:" by "if
values.get('number') == "":" (and keeping the database unchanged) ?
> - Using some sql in the __register__ method to remove the "NOT NULL" on
the "number" column ?

Why not design your feature as the code in party module (from sequence or
not)?

https://bitbucket.org/tryton/party/src/7f54e6742e171187d0e84640f68fd88bc30a8e28/party.py?at=default&fileviewer=file-view-default#party.py-34
https://bitbucket.org/tryton/party/src/7f54e6742e171187d0e84640f68fd88bc30a8e28/party.py?at=default&fileviewer=file-view-default#party.py-188

Regards

-- 
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/CAN2HbXWC93NcxJnN1XA2mz_mshzr2KhO-mpS_6Tw2A3QhpNTbA%40mail.gmail.com.


Re: [tryton-dev] How to update to null a table column with python-sql

2018-01-31 Thread Raimon Esteve
2018-01-31 15:19 GMT+01:00 Cédric Krier :

> On 2018-01-31 13:50, Raimon Esteve wrote:
> > I try with python-sql to update a column to "null".
> >
> > Somebody know how to update to null a column?
> >
> > Example:
> >
> > query = user.update(
> > columns=[user.main_company],
> > values=[None], <- I like here to update with null
> > where=user.main_company != Null)
>
> As you do not explain what is not working, we can not help you.
>

Examples and errors with python-sql 0.9:

*1- values is [None]*

query = user.update(
columns=[user.main_company],
values=[None],
where=user.main_company != Null)

Query is:

('UPDATE "res_user" SET "main_company" = %s WHERE
("res_user"."main_company" IS NOT NULL)', (None,))

Get error:

  File
"/home/resteve/.virtualenvs/nan40/local/lib/python2.7/site-packages/sql/__init__.py",
line 193, in __iter__
yield str(self)
  File
"/home/resteve/.virtualenvs/nan40/local/lib/python2.7/site-packages/sql/__init__.py",
line 766, in __str__
where = ' WHERE ' + str(self.where)
  File
"/home/resteve/.virtualenvs/nan40/local/lib/python2.7/site-packages/sql/operators.py",
line 224, in __str__
return '(%s IS NOT NULL)' % self.left
  File
"/home/resteve/.virtualenvs/nan40/local/lib/python2.7/site-packages/sql/__init__.py",
line 1300, in __str__
alias = self._from.alias
  File
"/home/resteve/.virtualenvs/nan40/local/lib/python2.7/site-packages/sql/__init__.py",
line 250, in alias
return AliasManager.get(self)
  File
"/home/resteve/.virtualenvs/nan40/local/lib/python2.7/site-packages/sql/__init__.py",
line 155, in get
if getattr(cls.local, 'alias', None) is None:
RuntimeError: maximum recursion depth exceeded in cmp

*2- values is [Null]*

query = user.update(
columns=[user.main_company],
values=[Null],
where=user.main_company != Null)

Query is:

('UPDATE "res_user" SET "main_company" = %s WHERE
("res_user"."main_company" IS NOT NULL)', (None,))

Get error:

  File
"/home/resteve/.virtualenvs/nan40/local/lib/python2.7/site-packages/sql/__init__.py",
line 193, in __iter__
yield str(self)
  File
"/home/resteve/.virtualenvs/nan40/local/lib/python2.7/site-packages/sql/__init__.py",
line 766, in __str__
where = ' WHERE ' + str(self.where)
  File
"/home/resteve/.virtualenvs/nan40/local/lib/python2.7/site-packages/sql/operators.py",
line 224, in __str__
return '(%s IS NOT NULL)' % self.left
  File
"/home/resteve/.virtualenvs/nan40/local/lib/python2.7/site-packages/sql/__init__.py",
line 1300, in __str__
alias = self._from.alias
  File
"/home/resteve/.virtualenvs/nan40/local/lib/python2.7/site-packages/sql/__init__.py",
line 250, in alias
return AliasManager.get(self)
  File
"/home/resteve/.virtualenvs/nan40/local/lib/python2.7/site-packages/sql/__init__.py",
line 155, in get
if getattr(cls.local, 'alias', None) is None:
RuntimeError: maximum recursion depth exceeded in cmp

*3- values is an empty list: []*

query = user.update(
columns=[user.main_company],
values=[],
where=user.main_company != Null)

Query is:

('UPDATE "res_user" SET  WHERE ("res_user"."main_company" IS NOT NULL)', ())

Get error:

Traceback (most recent call last):
  File "./trytond/bin/trytond-admin", line 21, in 
admin.run(options)
  File "/home/resteve/virtualenv/nan40/trytond/trytond/admin.py", line 48,
in run
Pool(db_name).init(update=options.update, lang=lang)
  File "/home/resteve/virtualenv/nan40/trytond/trytond/pool.py", line 155,
in init
lang=lang)
  File
"/home/resteve/virtualenv/nan40/trytond/trytond/modules/__init__.py", line
429, in load_modules
_load_modules()
  File
"/home/resteve/virtualenv/nan40/trytond/trytond/modules/__init__.py", line
398, in _load_modules
load_module_graph(graph, pool, update, lang)
  File
"/home/resteve/virtualenv/nan40/trytond/trytond/modules/__init__.py", line
237, in load_module_graph
cls.__register__(module)
  File
"/home/resteve/virtualenv/nan40/trytond/trytond/modules/party_company/user.py",
line 51, in __register__
cursor.execute(*query)
psycopg2.ProgrammingError: syntax error at or near "WHERE"
LINE 1: UPDATE "res_user" SET  WHERE ("res_user"."main_company" IS N...

*Annex:*

- I don't found an example a tryton modules or at  tests in python-sql to
set null a column.

Thanks

-- 
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/CAN2HbXU2OFVCmp9OTh96aSaeBtU3Zo9HLGvhW0TQZgSf-522Pg%40mail.gmail.com.


Re: [tryton-dev] How to update to null a table column with python-sql

2018-02-01 Thread Raimon Esteve
Hie,

2018-01-31 15:40 GMT+01:00 Raimon Esteve :

>
>
> 2018-01-31 15:19 GMT+01:00 Cédric Krier :
>
>> On 2018-01-31 13:50, Raimon Esteve wrote:
>> > I try with python-sql to update a column to "null".
>> >
>> > Somebody know how to update to null a column?
>> >
>> > Example:
>> >
>> > query = user.update(
>> > columns=[user.main_company],
>> > values=[None], <- I like here to update with null
>> > where=user.main_company != Null)
>>
>> As you do not explain what is not working, we can not help you.
>>
>
> Examples and errors with python-sql 0.9:
>
> *1- values is [None]*
>
> query = user.update(
> columns=[user.main_company],
> values=[None],
> where=user.main_company != Null)
>
> Query is:
>
> ('UPDATE "res_user" SET "main_company" = %s WHERE
> ("res_user"."main_company" IS NOT NULL)', (None,))
>

I'ts correct and working me.

Get error:
>
>   File "/home/resteve/.virtualenvs/nan40/local/lib/python2.7/
> site-packages/sql/__init__.py", line 193, in __iter__
> yield str(self)
>   File "/home/resteve/.virtualenvs/nan40/local/lib/python2.7/
> site-packages/sql/__init__.py", line 766, in __str__
> where = ' WHERE ' + str(self.where)
>   File "/home/resteve/.virtualenvs/nan40/local/lib/python2.7/
> site-packages/sql/operators.py", line 224, in __str__
> return '(%s IS NOT NULL)' % self.left
>   File "/home/resteve/.virtualenvs/nan40/local/lib/python2.7/
> site-packages/sql/__init__.py", line 1300, in __str__
> alias = self._from.alias
>   File "/home/resteve/.virtualenvs/nan40/local/lib/python2.7/
> site-packages/sql/__init__.py", line 250, in alias
> return AliasManager.get(self)
>   File "/home/resteve/.virtualenvs/nan40/local/lib/python2.7/
> site-packages/sql/__init__.py", line 155, in get
> if getattr(cls.local, 'alias', None) is None:
> RuntimeError: maximum recursion depth exceeded in cmp
>

The problem was that I was __register__ in another class :/ Change
__register__() in other class work for me.

*2- values is [Null]*
>
> query = user.update(
> columns=[user.main_company],
> values=[Null],
> where=user.main_company != Null)
>
> Query is:
>
> ('UPDATE "res_user" SET "main_company" = %s WHERE
> ("res_user"."main_company" IS NOT NULL)', (None,))
>
> Get error:
>
>   File "/home/resteve/.virtualenvs/nan40/local/lib/python2.7/
> site-packages/sql/__init__.py", line 193, in __iter__
> yield str(self)
>   File "/home/resteve/.virtualenvs/nan40/local/lib/python2.7/
> site-packages/sql/__init__.py", line 766, in __str__
> where = ' WHERE ' + str(self.where)
>   File "/home/resteve/.virtualenvs/nan40/local/lib/python2.7/
> site-packages/sql/operators.py", line 224, in __str__
> return '(%s IS NOT NULL)' % self.left
>   File "/home/resteve/.virtualenvs/nan40/local/lib/python2.7/
> site-packages/sql/__init__.py", line 1300, in __str__
> alias = self._from.alias
>   File "/home/resteve/.virtualenvs/nan40/local/lib/python2.7/
> site-packages/sql/__init__.py", line 250, in alias
> return AliasManager.get(self)
>   File "/home/resteve/.virtualenvs/nan40/local/lib/python2.7/
> site-packages/sql/__init__.py", line 155, in get
> if getattr(cls.local, 'alias', None) is None:
> RuntimeError: maximum recursion depth exceeded in cmp
>
> *3- values is an empty list: []*
>
> query = user.update(
> columns=[user.main_company],
> values=[],
> where=user.main_company != Null)
>
> Query is:
>
> ('UPDATE "res_user" SET  WHERE ("res_user"."main_company" IS NOT NULL)',
> ())
>
> Get error:
>
> Traceback (most recent call last):
>   File "./trytond/bin/trytond-admin", line 21, in 
> admin.run(options)
>   File "/home/resteve/virtualenv/nan40/trytond/trytond/admin.py", line
> 48, in run
> Pool(db_name).init(update=options.update, lang=lang)
>   File "/home/resteve/virtualenv/nan40/trytond/trytond/pool.py", line
> 155, in init
> lang=lang)
>   File "/home/resteve/virtualenv/nan40/trytond/trytond/modules/__init__.py"

[tryton-dev] GTK client - PyGObjectParamFlags has not attribute READWRITE

2018-02-01 Thread Raimon Esteve
Hie,

Since "Replace deprecated usage of params and signals in GTK+3" [1], after
login popup I receive an error that has not attribute READWRITE

 13 "text": (gobject.TYPE_STRING, None, "Text",
 14 "Displayed text", gobject.ParamFlags.READWRITE),

Which version gobject is required?

Last version python-gobject-2 in Ubuntu is 2.28.6 [2]

Here the traceback:

Traceback (most recent call last):
  File "/home/resteve/virtualenv/trydev/tryton/tryton/common/common.py",
line 1260, in process
self.callback(return_)
  File "/home/resteve/virtualenv/trydev/tryton/tryton/gui/main.py", line
858, in _set_preferences
self.sig_win_menu(prefs=prefs)
  File "/home/resteve/virtualenv/trydev/tryton/tryton/gui/main.py", line
1041, in sig_win_menu
row_activate=self.menu_row_activate)
  File
"/home/resteve/virtualenv/trydev/tryton/tryton/gui/window/view_form/screen/screen.py",
line 142, in __init__
self.switch_view()
  File
"/home/resteve/virtualenv/trydev/tryton/tryton/gui/window/view_form/screen/screen.py",
line 486, in switch_view
self.load_view_to_load()
  File
"/home/resteve/virtualenv/trydev/tryton/tryton/gui/window/view_form/screen/screen.py",
line 507, in load_view_to_load
self.add_view_id(view_id, view_type)
  File
"/home/resteve/virtualenv/trydev/tryton/tryton/gui/window/view_form/screen/screen.py",
line 520, in add_view_id
return self.add_view(view)
  File
"/home/resteve/virtualenv/trydev/tryton/tryton/gui/window/view_form/screen/screen.py",
line 545, in add_view
view = View.parse(self, xml_dom, view.get('field_childs'))
  File
"/home/resteve/virtualenv/trydev/tryton/tryton/gui/window/view_form/view/__init__.py",
line 36, in parse
from .list import ViewTree
  File
"/home/resteve/virtualenv/trydev/tryton/tryton/gui/window/view_form/view/list.py",
line 13, in 
from tryton.common.cellrendererbutton import CellRendererButton
  File
"/home/resteve/virtualenv/trydev/tryton/tryton/common/cellrendererbutton.py",
line 10, in 
class CellRendererButton(gtk.GenericCellRenderer):
  File
"/home/resteve/virtualenv/trydev/tryton/tryton/common/cellrendererbutton.py",
line 14, in CellRendererButton
"Displayed text", gobject.ParamFlags.READWRITE),
AttributeError: type object 'PyGObjectParamFlags' has no attribute
'READWRITE'

Thanks

[1]
https://bitbucket.org/tryton/tryton/commits/4b07964676a33abf72efccf91bbcc22e36e86072
[2] https://packages.ubuntu.com/search?keywords=python-gobject-2

-- 
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/CAN2HbXVPdZKZwg30%2B%2B%3D-4C0_NXm%2BCOkC76vtEoe-s%2BXawnXXmQ%40mail.gmail.com.


Re: [tryton-dev] GTK client - PyGObjectParamFlags has not attribute READWRITE

2018-02-02 Thread Raimon Esteve
hie,

2018-02-01 17:03 GMT+01:00 Sergi Almacellas Abellana :
>
> El 01/02/18 a les 16:24, Raimon Esteve ha escrit:
> > Hie,
> >
> > Since "Replace deprecated usage of params and signals in GTK+3" [1],
> > after login popup I receive an error that has not attribute READWRITE
> >
> >  13 "text": (gobject.TYPE_STRING, None, "Text",
> >  14 "Displayed text", gobject.ParamFlags.READWRITE),
> >
> > Which version gobject is required?
> >
>
> Which gtk version do you have? Take in account that tryton requires at
> least gtk3.20 or later [1], which IIRC is not avaiable on ubuntu 16.04
> (should be installed via ppa)

Ok. I had seen in setup.py and I could not find about requeriments [2]
(py-gobject3 is comment)

> Indeed you should be using python-object 3.20.0. Which is the output the
> following command:
>
> apt list python-gobject
>
> You should see something like:
>
> Listing… Fet
> python-gobject/xenial,xenial,now 3.20.0-0ubuntu1 all [installed]

Ok. Thanks. Finally I have upgraded ubuntu 14.04.2 LTS (end support
Abril 2019) to 16.04 (end support Abril 2021)

$ apt list python-gobject
python-gobject/xenial,xenial,now 3.20.0-0ubuntu1 all [installed,automatic]

$ apt list libgtk-3-0
libgtk-3-0/xenial,now 3.20.8-1ubuntu0~ppa1 amd64 [installed]

At now, the error is about goocalendar and goocanvas, that "goocanvas"
has no attribute 'CanvasText' [See annex 1]

I have last release goocalendar (0.3). Is gooclaendar upgrade to GTK-3?

[ annex 1]

Traceback (most recent call last):
  File "/home/resteve/virtualenv/trydev/tryton/tryton/common/common.py",
line 1260, in process
self.callback(return_)
  File "/home/resteve/virtualenv/trydev/tryton/tryton/gui/main.py",
line 858, in _set_preferences
self.sig_win_menu(prefs=prefs)
  File "/home/resteve/virtualenv/trydev/tryton/tryton/gui/main.py",
line 1041, in sig_win_menu
row_activate=self.menu_row_activate)
  File 
"/home/resteve/virtualenv/trydev/tryton/tryton/gui/window/view_form/screen/screen.py",
line 142, in __init__
self.switch_view()
  File 
"/home/resteve/virtualenv/trydev/tryton/tryton/gui/window/view_form/screen/screen.py",
line 486, in switch_view
self.load_view_to_load()
  File 
"/home/resteve/virtualenv/trydev/tryton/tryton/gui/window/view_form/screen/screen.py",
line 507, in load_view_to_load
self.add_view_id(view_id, view_type)
  File 
"/home/resteve/virtualenv/trydev/tryton/tryton/gui/window/view_form/screen/screen.py",
line 520, in add_view_id
return self.add_view(view)
  File 
"/home/resteve/virtualenv/trydev/tryton/tryton/gui/window/view_form/screen/screen.py",
line 545, in add_view
view = View.parse(self, xml_dom, view.get('field_childs'))
  File 
"/home/resteve/virtualenv/trydev/tryton/tryton/gui/window/view_form/view/__init__.py",
line 39, in parse
from .calendar_ import ViewCalendar
  File 
"/home/resteve/virtualenv/trydev/tryton/tryton/gui/window/view_form/view/calendar_.py",
line 12, in 
from .calendar_gtk.calendar_ import Calendar_
  File 
"/home/resteve/virtualenv/trydev/tryton/tryton/gui/window/view_form/view/calendar_gtk/calendar_.py",
line 5, in 
import goocalendar
  File "/usr/local/lib/python2.7/dist-packages/goocalendar/__init__.py",
line 7, in 
goocanvas.Text = goocanvas.CanvasText
AttributeError: 'module' object has no attribute 'CanvasText'

Thanks

> [1] http://hg.tryton.org/tryton/file/292a067fe066/doc/installation.rst#l8

[2] 
https://bitbucket.org/tryton/tryton/src/292a067fe0668055802d4ba9a065ae97a9d90f3d/setup.py?at=default&fileviewer=file-view-default#setup.py-102

-- 
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/CAN2HbXWDP_-sCxvJoZu_JC8xW-4xqzWBtzZeOrk%2BZe-%3DXDE6xA%40mail.gmail.com.


Re: [tryton-dev] GTK client - PyGObjectParamFlags has not attribute READWRITE

2018-02-05 Thread Raimon Esteve
Hie,

2018-02-02 10:21 GMT+01:00 Raimon Esteve :
> hie,
>
> 2018-02-01 17:03 GMT+01:00 Sergi Almacellas Abellana :
>>
>> El 01/02/18 a les 16:24, Raimon Esteve ha escrit:
>> > Hie,
>> >
>> > Since "Replace deprecated usage of params and signals in GTK+3" [1],
>> > after login popup I receive an error that has not attribute READWRITE
>> >
>> >  13 "text": (gobject.TYPE_STRING, None, "Text",
>> >  14 "Displayed text", gobject.ParamFlags.READWRITE),
>> >
>> > Which version gobject is required?
>> >
>>
>> Which gtk version do you have? Take in account that tryton requires at
>> least gtk3.20 or later [1], which IIRC is not avaiable on ubuntu 16.04
>> (should be installed via ppa)
>
> Ok. I had seen in setup.py and I could not find about requeriments [2]
> (py-gobject3 is comment)
>
>> Indeed you should be using python-object 3.20.0. Which is the output the
>> following command:
>>
>> apt list python-gobject
>>
>> You should see something like:
>>
>> Listing… Fet
>> python-gobject/xenial,xenial,now 3.20.0-0ubuntu1 all [installed]
>
> Ok. Thanks. Finally I have upgraded ubuntu 14.04.2 LTS (end support
> Abril 2019) to 16.04 (end support Abril 2021)
>
> $ apt list python-gobject
> python-gobject/xenial,xenial,now 3.20.0-0ubuntu1 all [installed,automatic]
>
> $ apt list libgtk-3-0
> libgtk-3-0/xenial,now 3.20.8-1ubuntu0~ppa1 amd64 [installed]
>
> At now, the error is about goocalendar and goocanvas, that "goocanvas"
> has no attribute 'CanvasText' [See annex 1]
>
> I have last release goocalendar (0.3). Is gooclaendar upgrade to GTK-3?

Open in the bugtracker:

https://goocalendar.tryton.org/bug8

>
> [ annex 1]
>
> Traceback (most recent call last):
>   File "/home/resteve/virtualenv/trydev/tryton/tryton/common/common.py",
> line 1260, in process
> self.callback(return_)
>   File "/home/resteve/virtualenv/trydev/tryton/tryton/gui/main.py",
> line 858, in _set_preferences
> self.sig_win_menu(prefs=prefs)
>   File "/home/resteve/virtualenv/trydev/tryton/tryton/gui/main.py",
> line 1041, in sig_win_menu
> row_activate=self.menu_row_activate)
>   File 
> "/home/resteve/virtualenv/trydev/tryton/tryton/gui/window/view_form/screen/screen.py",
> line 142, in __init__
> self.switch_view()
>   File 
> "/home/resteve/virtualenv/trydev/tryton/tryton/gui/window/view_form/screen/screen.py",
> line 486, in switch_view
> self.load_view_to_load()
>   File 
> "/home/resteve/virtualenv/trydev/tryton/tryton/gui/window/view_form/screen/screen.py",
> line 507, in load_view_to_load
> self.add_view_id(view_id, view_type)
>   File 
> "/home/resteve/virtualenv/trydev/tryton/tryton/gui/window/view_form/screen/screen.py",
> line 520, in add_view_id
> return self.add_view(view)
>   File 
> "/home/resteve/virtualenv/trydev/tryton/tryton/gui/window/view_form/screen/screen.py",
> line 545, in add_view
> view = View.parse(self, xml_dom, view.get('field_childs'))
>   File 
> "/home/resteve/virtualenv/trydev/tryton/tryton/gui/window/view_form/view/__init__.py",
> line 39, in parse
> from .calendar_ import ViewCalendar
>   File 
> "/home/resteve/virtualenv/trydev/tryton/tryton/gui/window/view_form/view/calendar_.py",
> line 12, in 
> from .calendar_gtk.calendar_ import Calendar_
>   File 
> "/home/resteve/virtualenv/trydev/tryton/tryton/gui/window/view_form/view/calendar_gtk/calendar_.py",
> line 5, in 
> import goocalendar
>   File "/usr/local/lib/python2.7/dist-packages/goocalendar/__init__.py",
> line 7, in 
> goocanvas.Text = goocanvas.CanvasText
> AttributeError: 'module' object has no attribute 'CanvasText'
>
> Thanks
>
>> [1] http://hg.tryton.org/tryton/file/292a067fe066/doc/installation.rst#l8
>
> [2] 
> https://bitbucket.org/tryton/tryton/src/292a067fe0668055802d4ba9a065ae97a9d90f3d/setup.py?at=default&fileviewer=file-view-default#setup.py-102

-- 
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/CAN2HbXXkrOHou-TFjNiNQvw1FVGjqWVZ6_JS78Np3fC3dcuFaw%40mail.gmail.com.


Re: [tryton-dev] NSIS new string PreviousInstall

2018-05-11 Thread Raimon Esteve
2018-05-08 9:41 GMT+02:00 Sergi Almacellas Abellana :
> El 08/05/18 a les 00:15, Cédric Krier ha escrit:
>> Hi,
>>
>> @translators, I'm working on support automatic uninstallation of
>> previous version on Windows [1]. For that, the string PreviousInstall
>> has changed and must be retranslated:
>>
>> LangString PreviousInstall ${CURLANG} "Tryton is already 
>> installed.$\n$\nClick `OK` to remove the previous version or `Cancel` to 
>> cancel this upgrade."
>
> Catalan: "Tryton ja està instal·lat.$\n$\nPremeu `OK` per eliminar la
> versió anterior o `Cancel·la` per cancel·lar l'actualització."
>
> Spanish: "Tryton ja esta instalado.$\n$\nPulse `OK` para eliminar la
> versión anterior o `Cancelar` para cancelar la actualitzación."

Some mistakes:

Spanish: "Tryton ya está instalado.$\n$\nPulse `OK` para eliminar la
versión anterior o `Cancelar` para cancelar la actualización."

Regards

-- 
Raimon Esteve - @raimonesteve
// Cloud Tryton - OpenERP www.zzsaas.com
// DOC: http://doc.zzsaas.com
www.zikzakmedia.com

-- 
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/CALO_w6p2dJT%2BW5_6GD1QY16zvvY3S7uPz1Z%3DBhWpqAw6N%2BO8Uw%40mail.gmail.com.


Re: [tryton-dev] NSIS new string PreviousInstall

2018-05-11 Thread Raimon Esteve
2018-05-08 10:41 GMT+02:00 Xavier Codinas :
>
>
> On 08/05/18 09:41, Sergi Almacellas Abellana wrote:
>>
>> El 08/05/18 a les 00:15, Cédric Krier ha escrit:
>>>
>>> Hi,
>>>
>>> @translators, I'm working on support automatic uninstallation of
>>> previous version on Windows [1]. For that, the string PreviousInstall
>>> has changed and must be retranslated:
>>>
>>>  LangString PreviousInstall ${CURLANG} "Tryton is already
>>> installed.$\n$\nClick `OK` to remove the previous version or `Cancel` to
>>> cancel this upgrade."
>>
>> Catalan: "Tryton ja està instal·lat.$\n$\nPremeu `OK` per eliminar la
>> versió anterior o `Cancel·la` per cancel·lar l'actualització."
>>
>> Spanish: "Tryton ja esta instalado.$\n$\nPulse `OK` para eliminar la
>> versión anterior o `Cancelar` para cancelar la actualitzación."
>>
>
> Spanish: "Tryton ya esta instalado.$\n$\nPulse `OK` para eliminar la
> versión anterior o `Cancelar` para cancelar la actualización."

esta -> está

Spanish: "Tryton ya está instalado.$\n$\nPulse `OK` para eliminar la
versión anterior o `Cancelar` para cancelar la actualización."



-- 
Raimon Esteve - @raimonesteve
// Cloud Tryton - OpenERP www.zzsaas.com
// DOC: http://doc.zzsaas.com
www.zikzakmedia.com

-- 
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/CALO_w6qH0xAns3fMULwm_tH%3DE4999PpXrB%3DtNi%2B899k%2BmXSwCA%40mail.gmail.com.


Re: [tryton-dev] Tryton Magento Integration

2011-06-19 Thread Raimon Esteve
Hello,


Some little customers first start only e-commerce solution (installed
by friend, tic employee or could datacenter (next, next, install).
They are management products (500, 1000, aprox, not more) and orders
(10, 20, 30, not more every day). Some months latter (or a year
latter), they need a ERP because this e-commerce are not control:
orders -> stock, account (not only invoice), stock in -> product and
CRM.



Mgn is a popular e-commerce App because default it's available a lot
of functions and contributions. Also, Mgn architecture is MCV and it's
available inherit definitions. Mgn is cool, but if you develop by
python, you hate it! ;)



In Spain, other e-commerce popular is PrestaShop (OSC advanced). It's
more easy install, not need powerful server and more easy to use that
Mgn.



It's important Tryton available this modules because is a next steep
of ERP integration. But it's 100% available all process same ERP that
e-sale and you need custom ERP and custom e-sale: two tasks!



We searched solutions on Python e-commerce: Satchmo (1) and LFS (2)
it's good projects, but it's same that Mgn or others e-commerce: need
a connector.



Connector i'ts a good idea because integrated two app, but need
maintenance and it's available some errors (for example, total amount
sale order mgn and OpenERP not is exact some times).



We started a e-sale app integrated 100% to OpenERP because we need a
GPL app and source available for customizations (for example, in Spain
we are Servired, a service payment with credit card).

We started develop Zoook (3), a Django App use OOOP (4) (we create a
fork this library waiting creator merge our developments). If you want
more information that, you can see some videos (5) and comparison
Mgn-Zoook (6) (spanish available, sorry).



I hope a year, we started Zoook by Tryton, but this year, we will work
others modules we need spanish l10n before e-sale Tryton App.



(1) http://www.satchmoproject.com/

(2) http://www.getlfs.com/

(3) https://launchpad.net/zoook

(4) https://code.launchpad.net/~zikzak/zoook/ooop

(5) http://www.zikzakmedia.com/es/solucion-e-sale

(6) http://www.slideshare.net/raimonesteve/zoook

-- 
tryton-dev@googlegroups.com mailing list


Re: [tryton-dev] Coding Guidelines

2011-07-13 Thread Raimon Esteve
> Sometimes we indent with 4 spaces and other times with 4 spaces, I think this

Maybe is because GUI use Tab and not spaces.

I worked py files other people/projectes and I find this situation. I
get error python indexation. I recomended use 4 spaces, not tab.

-- 
tryton-dev@googlegroups.com mailing list


Re: [tryton-dev] Remove NetRPC

2011-08-16 Thread Raimon Esteve
2011/7/19 Borja LS :
> What about using Pyro instead of NetRPC? (http://packages.python.org/Pyro/)

+1 Pyro

We developed at OOOP project (1) this connection method. Need install
Pyro module in the server ERP and use a new ports.

I review code OpenObject Client GTK and it's very dificult to
implemented Pyro because there are a good design GTK Client ("spagethi
code"). In Koo, there are py connections and is easy to add/remove
types of connection. Good Nan work!.

Sorry, I can't get feedback tryton client GTK because we are reviewing
code in the server.

Why Pyro? a speed connections! XMLRPC is standard but slow. For
example, show accounts, etc

[1] https://github.com/zikzakmedia/ooop
-- 
Raimon Esteve
// OpenERP Partners
// Zoook. OpenERP e-sale
// AulaERP, formación online
www.zikzakmedia.com

-- 
tryton-dev@googlegroups.com mailing list


Re: [tryton-dev] Remove NetRPC

2011-08-17 Thread Raimon Esteve
2011/8/17 Albert Cervera i Areny :
> Thanks Raimon, but Pyro has security issues (its in the docs) while JSON is
> available in several languages so I think there's no need to go the Pyro way
> in Tryton given that JSON should be as fast as Pyro if not faster.

Ok. If Json is better than Pyro, +1 Json

-- 
Raimon Esteve
// OpenERP Partners
// Zoook. OpenERP e-sale
// AulaERP, formación online
www.zikzakmedia.com

-- 
tryton-dev@googlegroups.com mailing list


[tryton-dev] Search ID view

2011-09-22 Thread Raimon Esteve
Hello,

Search ID view is not available in search box. In inherit modules,
this field we use to detect if news views is update correct.

Blueprint: add this field in search => Administrator -> User Interface -> Views

+1

-- 
tryton-dev@googlegroups.com mailing list


Re: [tryton-dev] [trytond]: replace .csv file by .po file for translations (issue125002)

2011-09-28 Thread Raimon Esteve
+1 for soon as possible - before release

Exist cs2po and po2csv commands to working csv and po. It's easy to
use, but we need tryton csv:

* Csv files, delete columns: type, name. Only columns in csv source, target
* csv2po file.csv file.po

This feedback we take last week is because translator (human person)
is very hard working with csv. In po files, we can use poEdit, for
example, and mark sugestion strings, for example. More easy than use
csv files to translate. (IMHO)

(Another translator tool we use is Launchpad, because have sugestions
another softwares, mark a sugestion and a excelent feature: you can
translate X language and view how to is translate Y language. It's
exelent tool because we translate english->spanish and not english
speaker can translate spanish->catalan, for example) (IMHO I hate
launchad, but in this case, is good tool)

-- 
tryton-dev@googlegroups.com mailing list


Re: [tryton-dev] [trytond]: replace .csv file by .po file for translations (issue125002)

2011-09-29 Thread Raimon Esteve
> I propose to get one directory locale/ to store all the po files.

+1.

More clean structure module files.

-- 
tryton-dev@googlegroups.com mailing list


Re: [tryton-dev] GTK Client 2.1 - New Icon tools

2011-10-23 Thread Raimon Esteve
2011/10/23 Cédric Krier :
> Where is the regression?

Check feedback with users no technicals (finally users).

Our experiencie yesterday with technical users and finally users (for
example, our secretary) is this icon and place is very difficult
undersatnad is a selection menu optionc copy, import, etc

-- 
tryton-dev@googlegroups.com mailing list


Re: [tryton-dev] GTK Client 2.1 - New Icon tools

2011-10-23 Thread Raimon Esteve
2011/10/23 Cédric Krier :
> So what do you propose as alternative?

Same as 2.0 => selection options with arrow down.

The problem usuability users isn't place
It will be a selection tool, I think users understand there are more
options available.
If is icon only (2.1), they need read a documentation about it.

-- 
tryton-dev@googlegroups.com mailing list


Re: [tryton-dev] GTK Client 2.1 - New Icon tools

2011-10-23 Thread Raimon Esteve
2011/10/23 Cédric Krier :
> I think you don't understand

Only I said, this graphic solution, it isn't usuable/understand where
are this tools (we tested not technical users). I share you to test
with  "human users": friends, family, secretary, accounts .

Only change another icon? maybe.

-- 
tryton-dev@googlegroups.com mailing list


Re: [tryton-dev] GTK Client 2.1 - New Icon tools

2011-10-26 Thread Raimon Esteve
2011/10/26 Cédric Krier 

> So I think there is no absolute True but I think the current solution is
> better because it is closer to the common concept of Menubar and Toolbar.
>

Ok.

-- 
tryton-dev@googlegroups.com mailing list


[tryton-dev] Group/reorganization currency and country modules

2011-11-06 Thread Raimon Esteve
Hello,

there are some modules not depend party and add new features that we
don't need to management everyday. For example, currency and country.

This modules add news menus at diferent positions:

Module Currency:
Root/Currency

Module Country:
Root/Administration/Countries

This two modules are similars: add data values and depends others
modules, but there aren't guidelines of positions (one at root, and
other at administration menu)

IMHO is more better group all this menus (and others modules in
future) in one new group. For example:

Root/Administration/Configuration
Root/Administration/Configuration/Currency
Root/Administration/Configuration/Countries

--
Raimon

-- 
tryton-dev@googlegroups.com mailing list


Re: [tryton-dev] Group/reorganization currency and country modules

2011-11-06 Thread Raimon Esteve
2011/11/6 Cédric Krier :
>  to be updated to get the right rate

Ups! Yes, I don't think this feature


-- 
I enjoy watching Monty Python. I'm "pythonista"

-- 
tryton-dev@googlegroups.com mailing list


[tryton-dev] Howto Proteus config_file

2011-11-12 Thread Raimon Esteve
Hello,

where are a little doc/example about  config_file proteus file?

(readme file only talk about sqlite).

class TrytondConfig(Config):
'Configuration for trytond'

def __init__(self, database_name=None, user='admin', database_type=None,
language='en_US', password='', config_file=None):

-- 
tryton-dev@googlegroups.com mailing list


Re: [tryton-dev] XML-RPC, JSON-RPC

2011-11-30 Thread Raimon Esteve
2011/11/30 felipon :
> are XML-RPC, JSON-RPC supportted by tryton-client? how do i setup
> theses things ?

trytond.conf you can configure xml-rpc or Json if available and ports.

Check proteus if you like python commands.

-- 
tryton-dev@googlegroups.com mailing list


[tryton-dev] How to translate Tryton client

2012-04-15 Thread Raimon Esteve
http://code.google.com/p/tryton/wiki/HowtoTranslate#How_to_translate_Tryton_client

options extract_messages and  update_catalog NOT available in 2.3. Can
somebody check this documentation how to translate client?

thanks!

-- 
tryton-dev@googlegroups.com mailing list


Re: [tryton-dev] Freeze of repositories

2012-04-18 Thread Raimon Esteve
2012/4/18 Nicolas Évrard 

> I added a string into the sale module to fix a bug.
> So please check that you did not forget it.
>

Ok.

-- 
tryton-dev@googlegroups.com mailing list


Re: [tryton-dev] Howto Proteus config_file

2012-06-11 Thread Raimon Esteve
Hello,

How could I connect to an external trytond server with proteus?

server A -> python script using proteus
server B -> trytond / tryton server

set_trytond method in config.py (1) doesn't have port and server parameters.

http://hg.tryton.org/proteus/file/04dbba05d439/proteus/config.py#l228

-- 
tryton-dev@googlegroups.com mailing list


Re: [tryton-dev] Howto Proteus config_file

2012-06-11 Thread Raimon Esteve
2012/6/11 Cédric Krier 

> You must use set_xmlrpc
>

Thanks. It's ok

>>> conf = config.set_xmlrpc('http://admin:admin@localhost:8069/try_demo24')
>>> Party = Model.get('party.party')
>>> for party in Party.find(['name','=','zz']):
...  print party.name
...
zz


-- 
Si us plau, NO adjunti arxius a les seves respostes. Li preguem que integri
el text al cos del missatge. Pot respondre usant NetEtiquete que li ajudarà
a seguir la conversa. http://es.wikipedia.org/wiki/Netiquette

Por favor, NO adjunte archivos a sus respuestas. Le rogamos que integre el
texto en el cuerpo del mensaje. Puede responder usando NetEtiquete que le
ayudará a seguir la conversación.http://es.wikipedia.org/wiki/Netiquette

Please, DO NOT send attachment files with your answers, just copy and paste
only the text you need to send into the body of your mails. Repply using
NetEtiquete. http://en.wikipedia.org/wiki/Netiquette

-- 
tryton-dev@googlegroups.com mailing list


[tryton-dev] Howto view ID in GTK client?

2012-06-26 Thread Raimon Esteve
Hello,

For developing or suport I like know ID row. Now, I think, we need to go
tools ico and view logs.

How to add in the bottom screen what ID data we select o edit in GTK Client?

-- 
Si us plau, NO adjunti arxius a les seves respostes. Li preguem que integri
el text al cos del missatge. Pot respondre usant NetEtiquete que li ajudarà
a seguir la conversa. http://es.wikipedia.org/wiki/Netiquette

Por favor, NO adjunte archivos a sus respuestas. Le rogamos que integre el
texto en el cuerpo del mensaje. Puede responder usando NetEtiquete que le
ayudará a seguir la conversación.http://es.wikipedia.org/wiki/Netiquette

Please, DO NOT send attachment files with your answers, just copy and paste
only the text you need to send into the body of your mails. Repply using
NetEtiquete. http://en.wikipedia.org/wiki/Netiquette

-- 
tryton-dev@googlegroups.com mailing list


Re: [tryton-dev] Howto view ID in GTK client?

2012-06-26 Thread Raimon Esteve
2012/6/26 Cédric Krier 

> I find it useless, not user friendly and bad for user experience because
> it is a technical information that the user doesn't care.
>

It's for us (developers - internal functionality), not users.

I review source code GTK client but I don't find where we can add or user,
ip@domain:port/database are defined.


-- 
Si us plau, NO adjunti arxius a les seves respostes. Li preguem que integri
el text al cos del missatge. Pot respondre usant NetEtiquete que li ajudarà
a seguir la conversa. http://es.wikipedia.org/wiki/Netiquette

Por favor, NO adjunte archivos a sus respuestas. Le rogamos que integre el
texto en el cuerpo del mensaje. Puede responder usando NetEtiquete que le
ayudará a seguir la conversación.http://es.wikipedia.org/wiki/Netiquette

Please, DO NOT send attachment files with your answers, just copy and paste
only the text you need to send into the body of your mails. Repply using
NetEtiquete. http://en.wikipedia.org/wiki/Netiquette

-- 
tryton-dev@googlegroups.com mailing list


Re: [tryton-dev] Howto view ID in GTK client?

2012-06-26 Thread Raimon Esteve
2012/6/26 Cédric Krier 

> > It's for us (developers - internal functionality), not users.
> So it should not be exposed.
>

I don't tell you add this functionality in next versions tryton gtk client.

Can you  help me file add options in bottom GTK client? I don't know.

-- 
tryton-dev@googlegroups.com mailing list


[tryton-dev] company: The result in Company form view is duplicated VAT fields. (issue418001)

2012-07-04 Thread Raimon Esteve
Reviewers: ,

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

Affected files:
  M company.xml

Index: company.xml
===

--- a/company.xml
+++ b/company.xml
@@ -20,10 +20,6 @@
 position="after">
 
 
-
-
-
-
 
 

[tryton-dev] tests tools: AssertionError: Missing depends ['shops'] in "res.user"."shop"

2012-07-05 Thread Raimon Esteve
Hello

I'm not sure if the definition in model fields is wrong or tests tool
doesn't support this domain.

== model ==

shops = fields.Many2Many('sale.shop-res.user', 'user', 'shop', 'Shops')
shop = fields.Many2One('sale.shop', 'Shop',
domain=[('id', 'in', Eval('shops', []))]
)

== test file ==

I add depend def:

def test0006depends(self):
'''
Test depends.
'''
test_depends()

== Error ==

I get this error:

==
FAIL: test0006depends (__main__.SaleShopTestCase)
--
Traceback (most recent call last):
  File "test_sale_shop.py", line 36, in test0006depends
test_depends()
  File "/home/resteve/src/trytond/trytond/tests/test_tryton.py", line
209, in test_depends
list(encoder.fields - depends), mname, fname))
AssertionError: Missing depends ['shops'] in "res.user"."shop"
--

If I delete the domain in shop field, depends test return ok.

-- 
tryton-dev@googlegroups.com mailing list


Re: [tryton-dev] tests tools: AssertionError: Missing depends ['shops'] in "res.user"."shop"

2012-07-05 Thread Raimon Esteve
2012/7/5 Bertrand Chenal :
> You must add depends=['shops'] on the shop field definition. This will
> tell the server to automatically send shops values to the client even if
> it does not appear in the view. Like that the client is able to eval the
> domain correctly.

Ok. I'm agree.

test0006depends (__main__.SaleShopTestCase) ... ok

Thanks!

-- 
tryton-dev@googlegroups.com mailing list


[tryton-dev] Re: company: The result in Company form view is duplicated VAT fields. (issue418001)

2012-07-06 Thread Raimon Esteve
El 05/07/2012 23:41, 
> An alternative is to create a small module party_vat.

I like vat field position into account page, not in a top fields.
My opinion move new module, it's ok. This module, party_vat need to depends
party module.

I like more vat field into account module, but you can need this field and
not need account in your ERP.

> @resteve: Please remove the mailing list email from the reviewers, this
> pollute the list. Thanks.

?
If you see date codereview and when I send email, don't match, because
hgreview don't send email. I send manually,
In my hgrc I put email sender parameter in hgreview options. Maybe next
codereview send email

-- 
tryton-dev@googlegroups.com mailing list


[tryton-dev] Report available by group

2012-07-17 Thread Raimon Esteve
Hello,

Is it available in XML report definition about group option? I try
some reports only available group users.

For example:


Group Test
.
stock_test.group_stock_test <=
is available some option?


In this example, "Group Test" report only available "group_stock_test"
group users. How to do it?

Thanks,

Raimon

-- 
tryton-dev@googlegroups.com mailing list


[tryton-dev] Re: Report available by group

2012-07-18 Thread Raimon Esteve
2012/7/17 Raimon Esteve :
> Is it available in XML report definition about group option? I try
> some reports only available group users.

well, I try it and don't get good news.

In GTK you can edit this report and add group users report. Fantastic!

In XML, I get some documentation about it (1). I try how to add groups
and we get:

trytond.convert.Unhandled_field: Unhandled field groups

I review convert.py", line 512 and o2m and m2m raise error.

Are available add from XML data in m2m fileds?

I try this XML part code ir.action.report:




(1) http://doc.tryton.org/2.4/trytond/doc/topics/modules/index.html#xml-files

-- 
tryton-dev@googlegroups.com mailing list


Re: [tryton-dev] upgrade trytond 2.0 to tryton2.4

2012-07-24 Thread Raimon Esteve
2012/7/24 zodman 

>  it send me error on workflow module not found.
>

What error log? what module?

In 2.4 changed workflow API. If this module don't migrate workflow code to
2.4, you need to review this code.

Raimon

-- 
tryton-dev@googlegroups.com mailing list


Re: [tryton-dev] upgrade trytond 2.0 to tryton2.4

2012-07-24 Thread Raimon Esteve
2012/7/24 zodman 
> Exception: Module workflow not found
> Module workflow not found

Do you have a module installed at his dependences (__tryton__.py file)
is workflow? remove  it.

Workflow is in Tryton core. Not a module.

Maybe you have a module called workflow.

--
Si us plau, NO adjunti arxius a les seves respostes. Li preguem que
integri el text al cos del missatge. Pot respondre usant NetEtiquete
que li ajudarà a seguir la conversa.
http://es.wikipedia.org/wiki/Netiquette

Por favor, NO adjunte archivos a sus respuestas. Le rogamos que
integre el texto en el cuerpo del mensaje. Puede responder usando
NetEtiquete que le ayudará a seguir la
conversación.http://es.wikipedia.org/wiki/Netiquette

Please, DO NOT send attachment files with your answers, just copy and
paste only the text you need to send into the body of your mails.
Repply using NetEtiquete. http://en.wikipedia.org/wiki/Netiquette

Raimon Esteve
// Tryton - OpenERP :: Technical and consultor ERP
// OpenERP e-sale / Magento OpenERP
// AulaERP, formació online www.aulaerp.com
www.zikzakmedia.com

-- 
tryton-dev@googlegroups.com mailing list


Re: [tryton-dev] upgrade trytond 2.0 to tryton2.4

2012-07-24 Thread Raimon Esteve
there is the answer in your grep:

CHANGELOG:* Remove workflow module
trytond/modules/__init__.py:# Migration from 2.2: workflow
module removed

-- 
tryton-dev@googlegroups.com mailing list


[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.org/zikzakmedia/hgnested/changeset/f7761efde7624daf25f73afd37cabb759b91d6dd

I don't test it very hard, but warning message dissapered.

==hgreview==

In pypi last version is 0.2, but nicoe is working in 0.3 and some parts change.

About 0.2, copies is deprecated. Change line 134 from __init__.py file:

- copymove_info = copies.copies(repo, base_rev, current_rev, null_rev)[0]
+ copymove_info = copies.mergecopies(repo, base_rev, current_rev, null_rev)[0]

Today I spend 1 hour to commit a review I hope you are more fast ;)

bye
-- 
Si us plau, NO adjunti arxius a les seves respostes. Li preguem que
integri el text al cos del missatge. Pot respondre usant NetEtiquete
que li ajudarà a seguir la conversa.
http://es.wikipedia.org/wiki/Netiquette

Por favor, NO adjunte archivos a sus respuestas. Le rogamos que
integre el texto en el cuerpo del mensaje. Puede responder usando
NetEtiquete que le ayudará a seguir la
conversación.http://es.wikipedia.org/wiki/Netiquette

Please, DO NOT send attachment files with your answers, just copy and
paste only the text you need to send into the body of your mails.
Repply using NetEtiquete. http://en.wikipedia.org/wiki/Netiquette

-- 
tryton-dev@googlegroups.com mailing list


[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 is: this user don't have acces
rule: "You try to bypass an access rule" (you get this message in
request user).

By SQL (1) I changed this user  the active value at True (change gtk
client is not allow because this user is add in xml), and the result
aboutt cron execution is execellent and we don't have problems in
ir.rule.

Can you confirm active false users have access ir.rule (permissions access)

(1) update res_user set active = True where id = 2;  #id 2 = user_cron_trigger

-- 
Si us plau, NO adjunti arxius a les seves respostes. Li preguem que
integri el text al cos del missatge. Pot respondre usant NetEtiquete
que li ajudarà a seguir la conversa.
http://es.wikipedia.org/wiki/Netiquette

Por favor, NO adjunte archivos a sus respuestas. Le rogamos que
integre el texto en el cuerpo del mensaje. Puede responder usando
NetEtiquete que le ayudará a seguir la
conversación.http://es.wikipedia.org/wiki/Netiquette

Please, DO NOT send attachment files with your answers, just copy and
paste only the text you need to send into the body of your mails.
Repply using NetEtiquete. http://en.wikipedia.org/wiki/Netiquette

Raimon Esteve
// Tryton - OpenERP :: Technical and consultor ERP
// OpenERP e-sale / Magento OpenERP
// AulaERP, formació online www.aulaerp.com
www.zikzakmedia.com

-- 
tryton-dev@googlegroups.com mailing list


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/trytond-electronic_mail/src/11be16c32885/electronic_mail.py#cl-83
or
https://github.com/openlabs/electronic-mail/blob/master/electronic_mail.py#L82

But if we add SQL to change active = True in cron trigger user, don't
get error acces rule.

-- 
Si us plau, NO adjunti arxius a les seves respostes. Li preguem que
integri el text al cos del missatge. Pot respondre usant NetEtiquete
que li ajudarà a seguir la conversa.
http://es.wikipedia.org/wiki/Netiquette

Por favor, NO adjunte archivos a sus respuestas. Le rogamos que
integre el texto en el cuerpo del mensaje. Puede responder usando
NetEtiquete que le ayudará a seguir la
conversación.http://es.wikipedia.org/wiki/Netiquette

Please, DO NOT send attachment files with your answers, just copy and
paste only the text you need to send into the body of your mails.
Repply using NetEtiquete. http://en.wikipedia.org/wiki/Netiquette

Raimon Esteve
// Tryton - OpenERP :: Technical and consultor ERP
// OpenERP e-sale / Magento OpenERP
// AulaERP, formació online www.aulaerp.com
www.zikzakmedia.com

-- 
tryton-dev@googlegroups.com mailing list


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"<http://es.wikipedia.org/wiki/Netiquette

Por favor, NO adjunte archivos a sus respuestas. Le rogamos que
integre el texto en el cuerpo del mensaje. Puede responder usando
NetEtiquete que le ayudará a seguir la
conversación.http://es.wikipedia.org/wiki/Netiquette

Please, DO NOT send attachment files with your answers, just copy and
paste only the text you need to send into the body of your mails.
Repply using NetEtiquete. http://en.wikipedia.org/wiki/Netiquette

Raimon Esteve
// Tryton - OpenERP :: Technical and consultor ERP
// OpenERP e-sale / Magento OpenERP
// AulaERP, formació online www.aulaerp.com
www.zikzakmedia.com

-- 
tryton-dev@googlegroups.com mailing list


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

2012-09-05 Thread Raimon Esteve
2012/9/4 Cédric Krier :
> I think the call to search_domain in Rule.domain_get [1] should be done
> with the context {'active_test': False}

Do you propose add Transaction context value active_test = False?

Transaction().set_context(active_test=False)

This transaction, is not  more better add in ir/cron.py line 138 where
call function to execute cron?

with Transaction().set_user(cron.user.id):
getattr(model_obj, cron.function)(*args)

-- 
Si us plau, NO adjunti arxius a les seves respostes. Li preguem que
integri el text al cos del missatge. Pot respondre usant NetEtiquete
que li ajudarà a seguir la conversa.
http://es.wikipedia.org/wiki/Netiquette

Por favor, NO adjunte archivos a sus respuestas. Le rogamos que
integre el texto en el cuerpo del mensaje. Puede responder usando
NetEtiquete que le ayudará a seguir la
conversación.http://es.wikipedia.org/wiki/Netiquette

Please, DO NOT send attachment files with your answers, just copy and
paste only the text you need to send into the body of your mails.
Repply using NetEtiquete. http://en.wikipedia.org/wiki/Netiquette

Raimon Esteve
// Tryton - OpenERP :: Technical and consultor ERP
// OpenERP e-sale / Magento OpenERP
// AulaERP, formació online www.aulaerp.com
www.zikzakmedia.com

-- 
tryton-dev@googlegroups.com mailing list


[tryton-dev] how to translate str in trytond: _('str')

2012-09-06 Thread Raimon Esteve
Hello,

Are available translate str in trytond? (same as tryton client)

For example:

> str = _('It is a example')
> print srt
> Es un ejemplo

Are available _('str') in tryton server?

note: It isn't error messages o user alerts.

thanks,

-- 
Si us plau, NO adjunti arxius a les seves respostes. Li preguem que integri
el text al cos del missatge. Pot respondre usant NetEtiquete que li ajudarà
a seguir la conversa. http://es.wikipedia.org/wiki/Netiquette

Por favor, NO adjunte archivos a sus respuestas. Le rogamos que integre el
texto en el cuerpo del mensaje. Puede responder usando NetEtiquete que le
ayudará a seguir la conversación.http://es.wikipedia.org/wiki/Netiquette

Please, DO NOT send attachment files with your answers, just copy and paste
only the text you need to send into the body of your mails. Repply using
NetEtiquete. http://en.wikipedia.org/wiki/Netiquette

-- 
tryton-dev@googlegroups.com mailing list


Re: [tryton-dev] trytond: ir.date now method (issue 507002)

2012-09-06 Thread Raimon Esteve
2012/9/6 Cédric Krier :
> On 06/09/12 11:45 +, rest...@zikzakmedia.com wrote:
> What will be the usage of such method?

Review code at invoice:
http://hg.tryton.org/2.4/modules/account_invoice/file/9be243b7acf3/invoice.py#l356

In this case is Date field. In now method are available to Datetime field.

-- 
Si us plau, NO adjunti arxius a les seves respostes. Li preguem que
integri el text al cos del missatge. Pot respondre usant NetEtiquete
que li ajudarà a seguir la conversa.
http://es.wikipedia.org/wiki/Netiquette

Por favor, NO adjunte archivos a sus respuestas. Le rogamos que
integre el texto en el cuerpo del mensaje. Puede responder usando
NetEtiquete que le ayudará a seguir la
conversación.http://es.wikipedia.org/wiki/Netiquette

Please, DO NOT send attachment files with your answers, just copy and
paste only the text you need to send into the body of your mails.
Repply using NetEtiquete. http://en.wikipedia.org/wiki/Netiquette

Raimon Esteve
// Tryton - OpenERP :: Technical and consultor ERP
// OpenERP e-sale / Magento OpenERP
// AulaERP, formació online www.aulaerp.com
www.zikzakmedia.com

-- 
tryton-dev@googlegroups.com mailing list


Re: [tryton-dev] trytond: ir.date now method (issue 507002)

2012-09-06 Thread Raimon Esteve
2012/9/6 Cédric Krier :
> Still don't understand.
> Why would you want to be able to similate an other datetime for now?

Why you designed today method?

About Date field:
http://doc.tryton.org/2.4/trytond/doc/ref/models/fields.html#date

date_obj = Pool().get('ir.date')
today = date_obj.today()
date = vals.get('invoice_date') or today

About Datetime field:
http://doc.tryton.org/2.4/trytond/doc/ref/models/fields.html#datetime

date_obj = Pool().get('ir.date')
now = date_obj.now()
date = vals.get('field_datetime') or now

Buy now, you need:

now = datetime.datetime.now()
date = vals.get('field_datetime') or now

if exist in ir.date today method (Date field), why not now method
(DateTime field)?

-- 
Si us plau, NO adjunti arxius a les seves respostes. Li preguem que
integri el text al cos del missatge. Pot respondre usant NetEtiquete
que li ajudarà a seguir la conversa.
http://es.wikipedia.org/wiki/Netiquette

Por favor, NO adjunte archivos a sus respuestas. Le rogamos que
integre el texto en el cuerpo del mensaje. Puede responder usando
NetEtiquete que le ayudará a seguir la
conversación.http://es.wikipedia.org/wiki/Netiquette

Please, DO NOT send attachment files with your answers, just copy and
paste only the text you need to send into the body of your mails.
Repply using NetEtiquete. http://en.wikipedia.org/wiki/Netiquette

Raimon Esteve
// Tryton - OpenERP :: Technical and consultor ERP
// OpenERP e-sale / Magento OpenERP
// AulaERP, formació online www.aulaerp.com
www.zikzakmedia.com

-- 
tryton-dev@googlegroups.com mailing list


Re: [tryton-dev] trytond: ir.date now method (issue 507002)

2012-09-06 Thread Raimon Esteve
2012/9/6 Cédric Krier 

> Indeed, I ask you the opposite question.
>

I need to add in datetime field now datatime. My great surprise found today
method.  But I don't understand why only are available today and not now
method.

Don't worry, we can get now time without call ir.date.

-- 
Si us plau, NO adjunti arxius a les seves respostes. Li preguem que integri
el text al cos del missatge. Pot respondre usant NetEtiquete que li ajudarà
a seguir la conversa. http://es.wikipedia.org/wiki/Netiquette

Por favor, NO adjunte archivos a sus respuestas. Le rogamos que integre el
texto en el cuerpo del mensaje. Puede responder usando NetEtiquete que le
ayudará a seguir la conversación.http://es.wikipedia.org/wiki/Netiquette

Please, DO NOT send attachment files with your answers, just copy and paste
only the text you need to send into the body of your mails. Repply using
NetEtiquete. http://en.wikipedia.org/wiki/Netiquette

-- 
tryton-dev@googlegroups.com mailing list


Re: [tryton-dev] how to translate str in trytond: _('str')

2012-09-06 Thread Raimon Esteve
2012/9/6 Cédric Krier :
>> Are available _('str') in tryton server?
> No.

:(

Well, I need to create new method to transform string (english) to
string language user:
https://bitbucket.org/zikzakmedia/trytond-party_event/src/3b0033b36bbd/party_event.py#cl-44

And example to call:
https://bitbucket.org/zikzakmedia/trytond-party_event/src/3b0033b36bbd/party_event.py#cl-71

Same as Tryton client or another python frameworks (1), also it's good
idea use _('string'). Not all is error message:
https://bitbucket.org/zikzakmedia/trytond-party_event/src/3b0033b36bbd/party_event.py#cl-27

(1) 
https://docs.djangoproject.com/en/dev/topics/i18n/translation/#internationalization-in-python-code

Thanks

-- 
Si us plau, NO adjunti arxius a les seves respostes. Li preguem que
integri el text al cos del missatge. Pot respondre usant NetEtiquete
que li ajudarà a seguir la conversa.
http://es.wikipedia.org/wiki/Netiquette

Por favor, NO adjunte archivos a sus respuestas. Le rogamos que
integre el texto en el cuerpo del mensaje. Puede responder usando
NetEtiquete que le ayudará a seguir la
conversación.http://es.wikipedia.org/wiki/Netiquette

Please, DO NOT send attachment files with your answers, just copy and
paste only the text you need to send into the body of your mails.
Repply using NetEtiquete. http://en.wikipedia.org/wiki/Netiquette

Raimon Esteve
// Tryton - OpenERP :: Technical and consultor ERP
// OpenERP e-sale / Magento OpenERP
// AulaERP, formació online www.aulaerp.com
www.zikzakmedia.com

-- 
tryton-dev@googlegroups.com mailing list


Re: [tryton-dev] how to translate str in trytond: _('str')

2012-09-07 Thread Raimon Esteve
2012/9/6 Cédric Krier 

> You have to follow this way:
>
> http://hg.tryton.org/modules/calendar_scheduling/file/189608575f90/calendar_.py#l119
>

Ok. Thanks a lot! more beautiful with param raise_exception = False ;)

self.raise_user_error('no_subject',raise_exception=False)

-- 
Si us plau, NO adjunti arxius a les seves respostes. Li preguem que integri
el text al cos del missatge. Pot respondre usant NetEtiquete que li ajudarà
a seguir la conversa. http://es.wikipedia.org/wiki/Netiquette

Por favor, NO adjunte archivos a sus respuestas. Le rogamos que integre el
texto en el cuerpo del mensaje. Puede responder usando NetEtiquete que le
ayudará a seguir la conversación.http://es.wikipedia.org/wiki/Netiquette

Please, DO NOT send attachment files with your answers, just copy and paste
only the text you need to send into the body of your mails. Repply using
NetEtiquete. http://en.wikipedia.org/wiki/Netiquette

-- 
tryton-dev@googlegroups.com mailing list


[tryton-dev] How to know ID wizard when execute it?

2012-09-07 Thread Raimon Esteve
Hello,

How to know ID wizard when execute it?

Example:
In top menu client, we have a diferents Wizard actions:

- Wizard 1
- Wizard 2
- Wizard 3
- 

This wizards call same wizard class (in this example, call "example").

In default method, we need know what ID wizard execute this action. If is
"wizard 1", "wizard 2", 

I review Transaction().context and it doesn't succesfully my search. Only
we have active_id or active_ids.

How to know ID wizard?

class Example(Wizard):
"Example"
_name = "example"

start = StateView('example.start',
'example_start', [
Button('Cancel', 'end', 'tryton-cancel'),
Button('Send', 'send', 'tryton-ok', default=True),
])
export = StateTransition()
result = StateView('example.result',
'example_result', [
Button('Close', 'end', 'tryton-close'),
])

def default_start(self, session, fields):
default = {}

#Here we need know ID wizard that execute it

return default

Example()


thanks

--
Raimon

-- 
tryton-dev@googlegroups.com mailing list


[tryton-dev] Re: How to know ID wizard when execute it?

2012-09-14 Thread Raimon Esteve
I think is impossible know action wizard id. I don't find about relation
ir.session.wizard to ir.action.wizard. Only I know Tryton search wizard by
name, same name as class. Only one class name for differnts wizards isn't
available.

Well, we redesign our concept and we was creating a class "general" and
another class wizard inherit this class.

For example:

class ExampleGenerateTemplateEmail(GenerateTemplateEmail):
"Example Wizard to Generate Email from template"
_name = "electronic_mail_wizard.example"

def default_start(self, session, fields):
default = self.render_fields(self._name)
return default

def transition_send(self, session):
self.render_and_send(session)
return 'end'

ExampleGenerateTemplateEmail()

See you.

-- 
tryton-dev@googlegroups.com mailing list


[tryton-dev] Re: How to know ID wizard when execute it?

2012-09-17 Thread Raimon Esteve
2012/9/7 Raimon Esteve 

> How to know ID wizard when execute it?
>

More details about my question.

In ir_action we have this wizards:

 id  | name| type
 74 | My Wizard 1  | ir.action.wizard
 72 | My Wizard 2  | ir.action.wizard
 71 | My Wizard 3  | ir.action.wizard
 68 | My Wizard 4  | ir.action.wizard

How to know the id wizard in default_ method tryton server when client call
it?

Thanks,

-- 
tryton-dev@googlegroups.com mailing list


[tryton-dev] XML Account OpenERP to Tryton

2012-09-26 Thread Raimon Esteve
Hello,

we was working a little script to migrate XML Account from OpenERP to
Tryton. This script is based in Spanish Account (there are some lines
hardcode) but we think it's interest to know it.

https://bitbucket.org/zikzakmedia/oerp2try_xml_account_mapping/

See you, and enjoy it!

-- 
Si us plau, NO adjunti arxius a les seves respostes. Li preguem que integri
el text al cos del missatge. Pot respondre usant NetEtiquete que li ajudarà
a seguir la conversa. http://es.wikipedia.org/wiki/Netiquette

Por favor, NO adjunte archivos a sus respuestas. Le rogamos que integre el
texto en el cuerpo del mensaje. Puede responder usando NetEtiquete que le
ayudará a seguir la conversación.http://es.wikipedia.org/wiki/Netiquette

Please, DO NOT send attachment files with your answers, just copy and paste
only the text you need to send into the body of your mails. Repply using
NetEtiquete. http://en.wikipedia.org/wiki/Netiquette

Raimon Esteve
// Tryton - OpenERP :: Technical and consultor ERP
// OpenERP e-sale / Magento OpenERP
// AulaERP, formació online www.aulaerp.com
www.zikzakmedia.com

-- 
tryton-dev@googlegroups.com mailing list


[tryton-dev] Default Values Many2Many fields

2012-09-27 Thread Raimon Esteve
Hello,

a little question about framework: how to add default values in Many2Many
fields?

I tested and don't get good result this code:

def default_fieldm2m(self):
return [('set', [ID])]

In trytond/test/test.py aren't m2m defualt values to chek it :(

-- 
Si us plau, NO adjunti arxius a les seves respostes. Li preguem que integri
el text al cos del missatge. Pot respondre usant NetEtiquete que li ajudarà
a seguir la conversa. http://es.wikipedia.org/wiki/Netiquette

Por favor, NO adjunte archivos a sus respuestas. Le rogamos que integre el
texto en el cuerpo del mensaje. Puede responder usando NetEtiquete que le
ayudará a seguir la conversación.http://es.wikipedia.org/wiki/Netiquette

Please, DO NOT send attachment files with your answers, just copy and paste
only the text you need to send into the body of your mails. Repply using
NetEtiquete. http://en.wikipedia.org/wiki/Netiquette

Raimon Esteve
// Tryton - OpenERP :: Technical and consultor ERP
// OpenERP e-sale / Magento OpenERP
// AulaERP, formació online www.aulaerp.com
www.zikzakmedia.com

-- 
tryton-dev@googlegroups.com mailing list


Re: [tryton-dev] Default Values Many2Many fields

2012-09-28 Thread Raimon Esteve
2012/9/27 Cédric Krier 
> > a little question about framework: how to add default values in Many2Many
> It is just a list of ids

Ok. In party.categories work fine. Thanks.

But in product.template model,  I can't add default values in
supplier_taxes and customer_taxes fields.
Finally I find is about on_change_account_expense and
on_change_account_revenue change list empty.

I will send a path about it in account_product

--
Si us plau, NO adjunti arxius a les seves respostes. Li preguem que
integri el text al cos del missatge. Pot respondre usant NetEtiquete
que li ajudarà a seguir la conversa.
http://es.wikipedia.org/wiki/Netiquette

Por favor, NO adjunte archivos a sus respuestas. Le rogamos que
integre el texto en el cuerpo del mensaje. Puede responder usando
NetEtiquete que le ayudará a seguir la
conversación.http://es.wikipedia.org/wiki/Netiquette

Please, DO NOT send attachment files with your answers, just copy and
paste only the text you need to send into the body of your mails.
Repply using NetEtiquete. http://en.wikipedia.org/wiki/Netiquette

-- 
tryton-dev@googlegroups.com mailing list


Re: [tryton-dev] XML Account OpenERP to Tryton

2012-09-30 Thread Raimon Esteve
2012/9/29 Cédric Krier :
> I have already some comments:
> - I see there are 2 charts in the module, it should be better to   split 
> into 2 modules.

It's the same: PyME 2008.

A little companies don't need 8 and 9 groups. You can install it but
don't use this groups. It's the difference.

If we split, I can't get a name because it's same account chart: PyME
2008. Any idea?

> - Naming convention of the XML files.

It's true. we add in script migration from OpenERP

-- 
Si us plau, NO adjunti arxius a les seves respostes. Li preguem que
integri el text al cos del missatge. Pot respondre usant NetEtiquete
que li ajudarà a seguir la conversa.
http://es.wikipedia.org/wiki/Netiquette

Por favor, NO adjunte archivos a sus respuestas. Le rogamos que
integre el texto en el cuerpo del mensaje. Puede responder usando
NetEtiquete que le ayudará a seguir la
conversación.http://es.wikipedia.org/wiki/Netiquette

Please, DO NOT send attachment files with your answers, just copy and
paste only the text you need to send into the body of your mails.
Repply using NetEtiquete. http://en.wikipedia.org/wiki/Netiquette

Raimon Esteve
// Tryton - OpenERP :: Technical and consultor ERP
// OpenERP e-sale / Magento OpenERP
// AulaERP, formació online www.aulaerp.com
www.zikzakmedia.com

-- 
tryton-dev@googlegroups.com mailing list


[tryton-dev] Proteus develop branch - API changes?

2012-10-10 Thread Raimon Esteve
Hello,

Proteus in develop branch (2.5) are changes about API? Is it same as 2.4?

>>> from proteus import config, Model, Wizard
>>> conf = config.set_xmlrpc('http://admin:admin@localhost
:8069/try_esale26')
>>> Party = Model.get('party.party')
Traceback (most recent call last):
  File "", line 1, in 
  File "/home/resteve/tryton/src/proteus/proteus/__init__.py", line 544, in
get
class Spam(Model):
  File "/home/resteve/tryton/src/proteus/proteus/__init__.py", line 389, in
__new__
for method in self.config.get_proxy_methods(self.model_name):
  File "/home/resteve/tryton/src/proteus/proteus/config.py", line 281, in
get_proxy_methods
for x in self.server.system.listMethods()
  File "/usr/lib/python2.7/xmlrpclib.py", line 1224, in __call__
return self.__send(self.__name, args)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1578, in __request
verbose=self.__verbose
  File "/usr/lib/python2.7/xmlrpclib.py", line 1264, in request
return self.single_request(host, handler, request_body, verbose)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1297, in single_request
return self.parse_response(response)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1473, in parse_response
return u.close()
  File "/usr/lib/python2.7/xmlrpclib.py", line 793, in close
raise Fault(**self._stack[0])
xmlrpclib.Fault: 

-- 
tryton-dev@googlegroups.com mailing list


Re: [tryton-dev] Payment Types

2012-10-11 Thread Raimon Esteve
2011/12/4 Albert Cervera i Areny :
> * account_payment_type: Depends on account_invoice and adds the module
> account.payment.type which just has a translatable field "name". It also
> adds two properties to parties: customer_payment_type and
> supplier_payment_type. payment_type field is also added to account.invoice
> and account.move.line.

https://bitbucket.org/zikzakmedia/trytond-account_payment_type

> * sale_payment_type: Adds a payment_type field to sale orders. The value is
> moved to invoices.

https://bitbucket.org/zikzakmedia/trytond-sale_payment_type

> * purchase_payment_type: Adds a payment_type field to purchase orders. The
> value is moved to invoices.

https://bitbucket.org/zikzakmedia/trytond-purchase_payment_type

> * account_payment_order: Implements account.payment.order, to be discussed
> in another e-mail.

Pending from Nan-tic

Enjoy it!

Salut!

Raimon, Zikzakmedia

-- 
tryton-dev@googlegroups.com mailing list


Re: [tryton-dev] Payment Types

2012-10-14 Thread Raimon Esteve
> I think account.payment.type should have no "code" field.

Online payments use code. You can copy same name

-- 
tryton-dev@googlegroups.com mailing list


Re: [tryton-dev] Payment Types

2012-10-14 Thread Raimon Esteve
> Do you think notes are needed? If so, do they really need to be
translatable?

You can add description in a report. Details payment. This field is
optional.

For example:
Cal fer una transferencia bancaria a 12345
Debe hacer una tramsferencia bancaria 12345

-- 
tryton-dev@googlegroups.com mailing list


[tryton-dev] Translations 2.5 -> 2.6

2012-10-15 Thread Raimon Esteve
Hello,

What date is next release?
When we can translate and commit translations? Or we are waiting if
change english strings in core?  ...?

https://code.google.com/p/tryton/wiki/Release_2_6_0

Thanks,

-- 
tryton-dev@googlegroups.com mailing list


Re: [tryton-dev] XML Account OpenERP to Tryton

2012-10-17 Thread Raimon Esteve
2012/10/17 Cédric Krier :
> I don't understand. If there are 2 chart of accounts I don't see any
> difficulty to make 2 modules.

We are humans. Duplicated work, time and files.

>> Is this module expected to be included as a core module in 2.6 release?
> Depends of the codereview process.

OpenERP S.A include l10n_es in your "oficials" modules. This module is
deprecated/old. You need clone in Launchpad openerp-spain branch.

We can't manage two spanish account modules (openerp - tryton). Now,
all changes in  OpenERP l10n_es module is available in Tryton
account_es module.
I like in future change this order, but in this moment, we are crazy
manage two account modules separated.

-- 
Si us plau, NO adjunti arxius a les seves respostes. Li preguem que
integri el text al cos del missatge. Pot respondre usant NetEtiquete
que li ajudarà a seguir la conversa.
http://es.wikipedia.org/wiki/Netiquette

Por favor, NO adjunte archivos a sus respuestas. Le rogamos que
integre el texto en el cuerpo del mensaje. Puede responder usando
NetEtiquete que le ayudará a seguir la
conversación.http://es.wikipedia.org/wiki/Netiquette

Please, DO NOT send attachment files with your answers, just copy and
paste only the text you need to send into the body of your mails.
Repply using NetEtiquete. http://en.wikipedia.org/wiki/Netiquette

-- 
tryton-dev@googlegroups.com mailing list


Re: [tryton-dev] XML Account OpenERP to Tryton

2012-10-17 Thread Raimon Esteve
2012/10/17 Cédric Krier :
> By the way, if I understand well why there are 2 charts if it is just a
> matter of not using two branches for one of it.

little companies don't need 8 and 9 group. It's optional. Spain is beautiful!

-- 
tryton-dev@googlegroups.com mailing list


Re: [tryton-dev] XML Account OpenERP to Tryton

2012-10-17 Thread Raimon Esteve
2012/10/17 Cédric Krier :
> This doen't anwser why is there 2 charts of accounts.

It's same.
* Little company 1 to 7 groups
* Medium company 1 to 9 groups

a little company don't need 8 and 9 groups.

-- 
Si us plau, NO adjunti arxius a les seves respostes. Li preguem que
integri el text al cos del missatge. Pot respondre usant NetEtiquete
que li ajudarà a seguir la conversa.
http://es.wikipedia.org/wiki/Netiquette

Por favor, NO adjunte archivos a sus respuestas. Le rogamos que
integre el texto en el cuerpo del mensaje. Puede responder usando
NetEtiquete que le ayudará a seguir la
conversación.http://es.wikipedia.org/wiki/Netiquette

Please, DO NOT send attachment files with your answers, just copy and
paste only the text you need to send into the body of your mails.
Repply using NetEtiquete. http://en.wikipedia.org/wiki/Netiquette

Raimon Esteve
// Tryton - OpenERP :: Technical and consultor ERP
// OpenERP e-sale / Magento OpenERP
// AulaERP, formació online www.aulaerp.com
www.zikzakmedia.com

-- 
tryton-dev@googlegroups.com mailing list


Re: [tryton-dev] XML Account OpenERP to Tryton

2012-10-17 Thread Raimon Esteve
2012/10/17 Nicolas Évrard :
> If it is just a matter of deactivate those two groups then you should
> have one chart of account with all accounts (8 & 9 included).

Jordi will anwer you if it's possible

-- 
Si us plau, NO adjunti arxius a les seves respostes. Li preguem que
integri el text al cos del missatge. Pot respondre usant NetEtiquete
que li ajudarà a seguir la conversa.
http://es.wikipedia.org/wiki/Netiquette

Por favor, NO adjunte archivos a sus respuestas. Le rogamos que
integre el texto en el cuerpo del mensaje. Puede responder usando
NetEtiquete que le ayudará a seguir la
conversación.http://es.wikipedia.org/wiki/Netiquette

Please, DO NOT send attachment files with your answers, just copy and
paste only the text you need to send into the body of your mails.
Repply using NetEtiquete. http://en.wikipedia.org/wiki/Netiquette

-- 
tryton-dev@googlegroups.com mailing list


Re: [tryton-dev] Freeze of repository

2012-10-17 Thread Raimon Esteve
2012/10/17 Cédric Krier :
>> The release date is coming, it is time to freeze the repository and work
>> on bugfixing (there are still some critical bugs in roundup), testing and
>> translation.

Can we work this weekend, not?

Saturday will rain a lot in Catalonia. Good day to translate ;)

-- 
tryton-dev@googlegroups.com mailing list


Re: [tryton-dev] XML Account OpenERP to Tryton

2012-10-17 Thread Raimon Esteve
Jordi tolk me (he doesn't have time to reply) and it is more complex.
For example, balance change some diferences

https://bitbucket.org/zikzakmedia/trytond-account_es/src/297d104cffa6eff03f64cee3f44e1d43b7d09835/balance.xml?at=default
https://bitbucket.org/zikzakmedia/trytond-account_es/src/297d104cffa6eff03f64cee3f44e1d43b7d09835/balance_pymes.xml?at=default

-- 
tryton-dev@googlegroups.com mailing list


  1   2   3   >