[tryton-contrib] Last email on this mailing list

2018-11-17 Thread 'Cédric Krier' via tryton-contrib
As discussed on 
https://discuss.tryton.org/t/replace-mailing-list-by-discuss/599, this is the 
last email on this mailing list which will be read only.
Please consider using https://discuss.tryton.org/

Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"tryton-contrib" group.
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/tryton-contrib/53add035-2eb9-498a-bea9-5ac4b94232a5%40googlegroups.com.


[tryton-dev] Last email on this mailing list

2018-11-17 Thread 'Cédric Krier' via tryton-dev
As discussed on 
https://discuss.tryton.org/t/replace-mailing-list-by-discuss/599, this is the 
last email on this mailing list which will be read only.
Please consider using https://discuss.tryton.org/

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/96f80e7b-4e41-4f83-9e30-2c968ac6cbd1%40googlegroups.com.


[tryton] Last email on this mailing list

2018-11-17 Thread 'Cédric Krier' via tryton
As discussed on 
https://discuss.tryton.org/t/replace-mailing-list-by-discuss/599, this is the 
last email on this mailing list which will be read only.
Please consider using https://discuss.tryton.org/

Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"tryton" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/5a1a7aaa-80f3-4a0a-9ae2-a70aa8562037%40googlegroups.com.


Re: [tryton] Is it possible to import file to binary field through xml?

2018-10-25 Thread 'Cédric Krier' via tryton
Hi,

On 2018-10-25 11:50, Markus Bala wrote:
> I would to know, is it possible to attached file to binary through xml?
> 
> During initial setup, I want to attached a file in a record.

It is not possible.
But your question raises warning in my head, you should avoid to use XML
data as configuration tool. It is better to have good default.


PS: The mailing is deprecated in favor of https://discuss.tryton.org/
-- 
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" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/20181025195411.GD30817%40kei.


Re: [tryton] Bad Gateway on demo5.0.tryton.org

2018-10-24 Thread 'Cédric Krier' via tryton
On 2018-10-23 23:30, Thierry Bruyere wrote:
> This morning the site demo5.0.tryton.org gives a message "502 Bad Gateway"

The server is rebuild every night but I think when it is too busy the 10
seconds sleep is not enough. I replaced by using pg_isready:
https://hg.tryton.org/tryton-docker-demo/rev/f403d3efd894

-- 
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" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/20181024073136.GB31132%40kei.


Re: [tryton] Re: Processing of production works

2018-10-23 Thread 'Cédric Krier' via tryton
On 2018-10-23 10:55, Koushik Mutsuddi wrote:
> On Tuesday, October 23, 2018 at 11:13:06 PM UTC+6, Cédric Krier wrote:
> > It is a missing feature. There is a feature request at
> > https://bugs.tryton.org/issue3209 to provide cost allocation for
> > production.
> Thanks for your kind response. Do we have any plan when this feature will be 
> implemented?

Nobody is assigned on it so I guess nobody is working on it.

-- 
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" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/20181023190719.GA31132%40kei.


Re: [tryton] Re: Processing of production works

2018-10-23 Thread 'Cédric Krier' via tryton
On 2018-10-22 08:35, Koushik Mutsuddi wrote:
> It seems the unit cost for the output products is not updating. The unit cost 
> should be calculated based on the raw materials cost and operation cycle 
> consumption cost. When we want to change the production status from 'running' 
> to 'done' then the system is checking the costs of the output products 
> (quantity * unit cost) and cost of the production in the other info section. 
> As there is a difference in calculating both costs system is showing the 
> error. Please let me know if I am doing something wrong or it is a bug that 
> needs to be fixed.   

It is a missing feature. There is a feature request at
https://bugs.tryton.org/issue3209 to provide cost allocation for
production.


PS: You will get faster answer on https://discuss.tryton.org/ as this
mailing list is deprecated.

-- 
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" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/20181023171208.GW31132%40kei.


Re: [tryton] Balance non-deferral wizard

2018-10-18 Thread 'Cédric Krier' via tryton
On 2018-10-18 05:56, 'Artem Braga' via tryton wrote:
> The Balance non-deferral wizard helps to create the period-closing entries in 
> accordance to the rules, specified in this wizard. 
> 
> I've noticed the following behaviour:
> - there are accounting moves in non-deferral accounts in Period 1 and Period 
> 2. 
> - the task is to create the closing moves for the Period 1. 
> - launch the Balance non-deferral wizard and select the period of 
> type="Adjustment"
> - the ending date of this Adjustment Period is the same as in the Period 1.
> 
> Expected result: wizard creates the closing moves, taking into account all 
> moves up to the ending date of the Adjustment Period selected in wizard. 
> 
> Actual result: wizard creates the closing moves, which take into account the 
> amounts, posted in Period 2, e.g. amounts which are posted beyond the ending 
> date of Adjustment Period. 
> 
> Is it an expected behaviour of wizard? 

Yes the wizard works on fiscal year not period.

-- 
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" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/20181018132331.sfma5fmnqsef3w63%40kei.


Re: [tryton-fr] Export FEC

2018-10-09 Thread 'Cédric Krier' via tryton-fr
On 2018-10-09 11:36, 'Nicolas Évrard' via tryton-fr wrote:
> * Richard PALO [2018-10-08 19:00:25]:
> > Le 03/05/2017 à 11:06, Cédric Krier a écrit :
> > >> - Au moins un enregistrement dans le FEC ne contient pas de valeur pour 
> > >> le
> > >>champ PIECEREF
> > >>
> > >> => remettre "EcritureNum" lors qu'on a rien à mettre en PieceRef? C'est 
> > >> le
> > >> cas de toutes les mouvements comptables que je saisis manuellement
> > >> (opérations diverse, charges saisies sans facture fournisseur, etc.)
> > > Je propose de faire comme Odoo et de mettre '-'.
> > > 
> > 
> > Selon expert-fec (lefebvre) d'utiliser le '-' génère un point d'anomalie :
> > > Colonne n°9 dénommée "PieceRef" (devant être au format
> > > AlphaNumérique et devant toujours être remplie, se reporter aux
> > > questions/réponses n°1-18) : détection de 9142 anomalies de format
> > > du contenu dont :
> > > - 9142 cellules (champs) ne contenant que des espaces ou des
> > >   caractères spéciaux alors que cette colonne devrait toujours
> > >   contenir des données (fichier .xls) (fichier .csv) (cette
> > >   colonne ne peut ni être à blanc ni remplie de caractères ne
> > >   correspondant pas à des données).
> > > 
> > > Pour information :
> > > - Le champ dans le FEC "PieceRef" devrait contenir la référence de
> > >   la pièce justificative et devrait correspondre soit à une
> > >   numérotation séquentielle des pièces comptables dans le système,
> > >   soit à la référence figurant sur les pièces justificatives (se
> > >   reporter au BOI-CF-IOR-60-40-20 n°180)
> > > - Nombre de cellules remplies : 25483 (sur 25483, soit 100%)
> > > - Nombre de cellules vides ou sans données : 0 (sur 25483, soit 0%)
> > > - Liste des caractères de la colonne n°9 : " 
> > > &-./0123456789ABCDEFHIJKLMNOPQRSTVW[]adehkortuvx"
> > > - Liste des valeurs utilisées dans cette colonne : "-", et cetera...
> > 
> > Peut-être un expert-comptable ou commissaire-aux-comptes pourrait
> > nous suggérer une autre valeur...
> > En tout cas, apparemment cette valeur devrait probablement se
> > trouver dans le fichier config, tout comme fec_opening_*
> 
> Je ne suis pas sûre d'avoir tout suivi mais comment le caractère '-'
> peut être une anomalie alors que dans le même temps on nous dit:

Pour moi c'est du zèle de l'outil.
L'Article A47 A-1 [1] définit le champ PieceRef comme Alphanumérique et
précise dans XII 1° "Les caractères utilisés appartiennent à l'un des
jeux de caractères ASCII, norme ISO 8859-15 ou jeu de caractères
unicode, norme ISO/ CEI 10646, de type UTF-8 ;"
Il n'est jamais question d'autre validation de contenu.
Le XSD définit ce champs comme: 
Et comme a priori les deux formats doivent être équivalent.
De plus, je ne trouve nul part l'obligation de remplir ce champ.

Alors évidement c'est toujours mieux d'avoir des pièces justificatives
pour les mouvements mais dans la réalité c'est pas toujours le cas.


[1] 
http://www.legifrance.gouv.fr/affichCodeArticle.do;jsessionid=1D905278ED63729D4CDF44E8064D8160.tpdila07v_3?idArticle=LEGIARTI27804775=LEGITEXT06069583=id=20150610

-- 
Cédric Krier - B2CK SPRL
Email/Jabber: cedric.kr...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

-- 
Vous recevez ce message, car vous êtes abonné au groupe Google Groupes 
tryton-fr.
Cette discussion peut être lue sur le Web à l'adresse 
https://groups.google.com/d/msgid/tryton-fr/20181009101345.kn37kdafogfgf3jg%40kei.


Re: [tryton-dev] What is the fields_child and context_model

2018-10-01 Thread 'Cédric Krier' via tryton-dev
On 2018-10-01 02:52, Markus Bala wrote:
> > > I am going to integrate with some WMS system for receiving. When user 
> > > input the PO number which is "Lodnum" then tryton "on_change" and will 
> > > display the WMS data to the list (MS SQL Server).
> > > 
> > > Background, after "on_change", I will read data from MSSQL. And insert to 
> > > Tryton postgres. 
> > > But when inserted, above error occurred.
> > 
> > on_change calls are always read-only to enforce good design and
> > practice. You can not save in the database something that the user did
> > not save yet. Instead you must just send modification to the client by
> > setting fields (without saving).
> 
> for ModelSQL , we can set  by "self.field = value".
> But how to setting the fields for context_model?

It is set by the context. Otherwise, it is a model like the others, you
can define on_change on it etc.

-- 
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/20181001102039.pcjhlogazp3dwy4t%40kei.


Re: [tryton-dev] What is the fields_child and context_model

2018-10-01 Thread 'Cédric Krier' via tryton-dev
On 2018-10-01 01:55, Markus Bala wrote:
> > > It prompt error psycopg2, cannot execute INSERT because is 
> > > readonly-transaction
> > 
> > On which kind of RPC call are you doing a save?
> 
> Traceback (most recent call last):
>   File "/trytond/wsgi.py", line 71, in dispatch_request
> return endpoint(request, **request.view_args)
>   File "/trytond/protocols/dispatcher.py", line 41, in rpc
> request, database_name, *request.rpc_params)
>   File "/trytond/wsgi.py", line 42, in auth_required
> return wrapped(*args, **kwargs)
>   File "/trytond/protocols/wrappers.py", line 122, in wrapper
> return func(request, pool, *args, **kwargs)
>   File "/trytond/protocols/dispatcher.py", line 172, in _dispatch
> result = rpc.result(meth(inst, *c_args, **c_kwargs))
>   File "/trytond/model/modelview.py", line 677, in on_change
> method()
>   File "/trytond/model/modelview.py", line 84, in wrapper
> result = func(self, *args, **kwargs)
>   File "/trytond/model/fields/field.py", line 114, in wrapper
> return func(self, *args, **kwargs)
>   File "/trytond/modules/tri_jda/jda.py", line 189, in on_change_lodnum
> rec.save(recs)
>   File "/trytond/model/descriptors.py", line 33, in newfunc
> return self.func(owner, *args, **kwargs)
>   File "/trytond/model/modelstorage.py", line 1532, in save
> news = cls.create([save_values[r] for r in to_create])
>   File "/trytond/model/modelsql.py", line 580, in create
> [insert_values], [table.id]))
>   File "/trytond/backend/postgresql/database.py", line 61, in execute
> cursor.execute(self, sql, args)
> psycopg2.InternalError: cannot execute INSERT in a read-only transaction
> 
> 
> -
> Above is my stacktrace.
> 
> I am going to integrate with some WMS system for receiving. When user input 
> the PO number which is "Lodnum" then tryton "on_change" and will display the 
> WMS data to the list (MS SQL Server).
> 
> Background, after "on_change", I will read data from MSSQL. And insert to 
> Tryton postgres. 
> But when inserted, above error occurred.

on_change calls are always read-only to enforce good design and
practice. You can not save in the database something that the user did
not save yet. Instead you must just send modification to the client by
setting fields (without saving).

-- 
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/20181001091551.rfhe2e2es5h26rwf%40kei.


Re: [tryton-dev] What is the fields_child and context_model

2018-10-01 Thread 'Cédric Krier' via tryton-dev
On 2018-10-01 01:04, Markus Bala wrote:
> But when I try using context_model, i am going to do some "save" to model.

I do not understand. the context model is only used by the client.

> It prompt error psycopg2, cannot execute INSERT because is 
> readonly-transaction

On which kind of RPC call are you doing a save?

-- 
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/20181001082958.whomnyoacfe3lc5z%40kei.


Re: [tryton-dev] Mobile Apps For tryton?

2018-10-01 Thread 'Cédric Krier' via tryton-dev
On 2018-09-30 20:02, Markus Bala wrote:
> Is it any plan for Tryton in App?

No but sao, the web client, is responsive and so it can be used on
mobile device.

-- 
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/20181001073510.cu467jw3r7umhcjn%40kei.


Re: [tryton-dev] What is the fields_child and context_model

2018-10-01 Thread 'Cédric Krier' via tryton-dev
On 2018-09-30 09:56, Markus Bala wrote:
> I found the balance_sheet reporting.
> But I do not undertstand what is the field_childs at the line 04.

It is to define a tree:
https://tryton-readthedocs.readthedocs.io/projects/server/en/latest/topics/views/index.html?highlight=field_childs#tree-view

> And what is the "context_model" at the line 10.?

It is the model to display on top of the list to alter the context of
the view.

-- 
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/20181001073415.2awuqi2niyiktzo6%40kei.


Re: [tryton-dev] How to get the timezone from client

2018-09-28 Thread 'Cédric Krier' via tryton-dev
Hi,

On 2018-09-27 20:51, Markus Bala wrote:
> I noticed that setting timezone in user preference is missing.
> However, in the documentation still show the setting.

It is a mistake, the field has been removed long time ago:
https://bugs.tryton.org/issue7750

> Back to topic,
> My situation is to print the printer date/time in the report.
> If in the libreoffice, I set the date from the report. It will take the 
> server date but server's date is UTC timezone.
> 
> So, I will custom printed_date but how to get the timezone from client show 
> that can show the correct time?

You can not know the timezone of the client because it is the OS
timezone on which it runs. The best option is to use a timezone stored
on some record, for example you can use the one on company.

-- 
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/20180928072623.pzmurrf55xwlcuvf%40kei.


Re: [tryton-fr] Export FEC

2018-09-22 Thread 'Cédric Krier' via tryton-fr
On 2018-09-21 09:50, 'Cédric Krier' via tryton-fr wrote:
> On 2018-09-21 09:05, Richard PALO wrote:
> > 7. Test des dates:
> > Le fichier n’est pas trié par date de validation.
> 
> Le fichier est trié par numéro de postage, ce qui me semble est la
> demande au point II.40 de http://bofip.impots.gouv.fr/bofip/9028-PGP.html
> 
> « Au sein de ce fichier, les écritures doivent être numérotées
> chronologiquement de manière croissante, sans rupture ni inversion dans
> la séquence. »
> 
> Par contre normalement, l'ordre des numéro de postage devrait aussi être
> l'ordre de la date de validation puisqu'il y a une séquence unique. Sauf
> s'il y a eu manipulation.

En fait si la numérotation de postage n'est pas « padded », trier par
'post_number' ne donne pas un ordre chronologique.
J'ai créé https://bugs.tryton.org/issue7719

-- 
Cédric Krier - B2CK SPRL
Email/Jabber: cedric.kr...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

-- 
Vous recevez ce message, car vous êtes abonné au groupe Google Groupes 
tryton-fr.
Cette discussion peut être lue sur le Web à l'adresse 
https://groups.google.com/d/msgid/tryton-fr/20180922065632.7nodeyzx2nnzpwx7%40kei.


Re: [tryton-dev] How to get the Report in Byte?

2018-09-21 Thread 'Cédric Krier' via tryton-dev
On 2018-09-21 01:35, Markus Bala wrote:
> > > Question 3: How to get report in byte in trytond so I can print direct to 
> > > printer through network. Like the link below
> > > 
> > > https://www.zebra.com/us/en/support-downloads/knowledge-articles/ait/Network-Printing-Python-Example.html
> > 
> > You can get the Report class from the pool and call execute on it. This
> > will return the bytes as second element of the response.
> 
> Could you give me example on this? Iam litte bit confuse.
> 
> Currently, I am using Relatio. It should be a dirty hack. I hope can use the 
> method directly from Trytond instead.
> 
> Below is my code:
> 
> from relatorio import Report
> 
> class BarcodeLabel(Workflow, ModelSQL, ModelView):
> 
> @classmethod
> def print_lpn(cls, records):
> report = Report(abspath(join(dirname(__file__), 'lpn.odt')),
> ODT_MIME)
> data = report(records=records).render().getvalue()
> file_name = join(dirname(__file__), 'output_basic.odt')
> open(file_name, 'wb').write(data)

It should be something like:

@classmethod
def print_lpn(cls, records):
pool = Pool()
Report = pool.get('module.my_report', type='report')
ext, data, print, name = Report.execute(map(int, records), {})


-- 
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/20180921085311.jzkbjx3askvyu6nd%40kei.


Re: [tryton-dev] How to get the Report in Byte?

2018-09-21 Thread 'Cédric Krier' via tryton-dev
On 2018-09-17 01:21, Markus Bala wrote:
> Actually I have 3 questions, below is my case:
> 
> I will doing barcode label for some warehouse operation.
> 
> Case Study:
> At the receiving area, during receiving & storage, it will need to print 2 
> labels. One label is product label. One label is storage label. The different 
> between 2 labels are in the label's size.
> Product label using 5cm x 10cm. Storage label using 15cm x 10cm.
> 
> Because of this, I will  have 2 labels printer. Printer (A) for product 
> label. Printer (B) for storage Label.
> 
> Question 1: for "Direct Print", how can set when I click on print "Product 
> Label" it choose Printer (A) and vice versa.

On windows, the client use the command 'print' which let the OS decide.
So maybe you can use different file extension and configure the OS to
choose the right printer.
On MacOS, the client uses the 'open' command which just open the file.
Maybe it is possible to configure the "opener" to select the right
printer when requesting to print.
On UNIX, it uses the 'xdg-open' command. In this case, I guess you can
also customize xdg to select the right printer from the mime-type.

> Or alternative solution:
> Making the printer module. Like the link below:
> 
> https://groups.google.com/forum/#!searchin/tryton-dev/printer|sort:date/tryton-dev/1Hu0AE5bjd8/0zCHyxkPq3EJ

Not sure it is the best option because it requires a connection between
the server and the printer. Usually they are not in the same physical
area.

> Question 2: How to get "Tryton Client" IP from "Trytond"? the purpose to 
> fixed the IP/PC for the label printers so other PC do not have label printer

Since 4.8, the Transaction.context has an attribute '_request' which is
the werkzeug request object and contain the IP address of the client.
But there is no guarantee that this attribute will always be set (for
example from proteus request or cron job).

> Question 3: How to get report in byte in trytond so I can print direct to 
> printer through network. Like the link below
> 
> https://www.zebra.com/us/en/support-downloads/knowledge-articles/ait/Network-Printing-Python-Example.html

You can get the Report class from the pool and call execute on it. This
will return the bytes as second element of the response.

-- 
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/20180921081919.jaygesgfwrolmchi%40kei.


Re: [tryton-fr] Export FEC

2018-09-21 Thread 'Cédric Krier' via tryton-fr
On 2018-09-21 09:05, Richard PALO wrote:
> Voici un extrait bref et sélectif de quelques anomalies que nous avons 
> rencontré:

C'est bien dommage que ce soit bref, ça ne va pas trop aider à faire des
corrections.

> 1. Tests initiaux:
>   Présence de caractères spéciaux à supprimer

Sans avoir la liste de caractères spéciaux non admis, je ne vois pas
comment on peut corriger.


> 2. Test du format du fichier:
>   2 colonnes semblent avoir un libellé erroné

Idem sans savoir quelle écriture, génère par quel document, il sera
impossible de corriger.

>   Présence de 3 cellule(s) contenant un caractère pouvant empêcher
> l’administration fiscale d’analyser le FEC.

Idem

>   Présence de 9318 cellule(s) ne contenant que des espaces ou des 
> caractères
> spéciaux, contrairement à ce qui est normalement attendu par
> l’administration fiscale.

Il faudrait savoir quelles cellules et quelles caractères.

> 6 - Test des écritures
>   Présence de 2269 écriture(s) pouvant ne pas avoir pour libellé  
> l’identification littérale du motif de l'écriture comptable.

Quelle sont ces écritures? Comment ont-elles été générées ?

> 7. Test des dates:
>   Le fichier n’est pas trié par date de validation.

Le fichier est trié par numéro de postage, ce qui me semble est la
demande au point II.40 de http://bofip.impots.gouv.fr/bofip/9028-PGP.html

« Au sein de ce fichier, les écritures doivent être numérotées
chronologiquement de manière croissante, sans rupture ni inversion dans
la séquence. »

Par contre normalement, l'ordre des numéro de postage devrait aussi être
l'ordre de la date de validation puisqu'il y a une séquence unique. Sauf
s'il y a eu manipulation.

-- 
Cédric Krier - B2CK SPRL
Email/Jabber: cedric.kr...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

-- 
Vous recevez ce message, car vous êtes abonné au groupe Google Groupes 
tryton-fr.
Cette discussion peut être lue sur le Web à l'adresse 
https://groups.google.com/d/msgid/tryton-fr/20180921075006.nlnrh7fvu6ol7eb2%40kei.


Re: [tryton] Re: Information about forecast quantity needed

2018-09-12 Thread 'Cédric Krier' via tryton
On 2018-09-12 08:28, Koushik Mutsuddi wrote:
> On Wednesday, September 12, 2018 at 9:15:45 PM UTC+6, Koushik Mutsuddi wrote:
> > Hello,
> > 
> > I would like to understand if there is any difference between manually 
> > created stock move and automatically created stock move during purchase 
> > entry? I observed when I create a move manually then actual quantity and 
> > forecast quantity generated automatically though the move status = draft. 
> > But when a move created automatically during purchase entry then actual and 
> > forecast quantity has no impact when the move status = draft. Both are 
> > updated when I create a supplier shipment and then receive there. 
> > 
> > Also I am trying to understand why the forecast quantity on the supplier 
> > location is not reducing after creating the supplier shipment and inventory 
> > is transferred to storage zone from input zone? When they actually be 
> > reduced? 
> > 
> > Kind regards
> > Koushik
> 
> posted the query in tryton discussion as well -> 
> https://discuss.tryton.org/t/information-about-forecast-quantity-needed/726

Please avoid to cross post on all channels like that.
You also posted an issue at https://bugs.tryton.org/issue7692

-- 
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" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/20180912154947.otb2a72fcvvmv7yx%40kei.


[tryton-dev] Translation for 5.0

2018-09-04 Thread 'Cédric Krier' via tryton-dev
Hi,

The translation terms have been updated on http://pootle.tryton.org/ for
the release 5.0. A second update is planned for the 14th. The end of
translation is scheduled for the 28th at 18:00 CEST.

For the record, I have added a script that automates the task:
http://hg.tryton.org/tryton-tools/rev/c6d07120dd7b
It is configured (on tycho) to run every month so the translation task
will be smoothed during all the development period for the future
releases.

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/20180904205219.ryqk44seylxyklma%40kei.


Re: [tryton] install in windows tryton and database

2018-08-29 Thread 'Cédric Krier' via tryton
On 2018-08-29 07:13, Dennis Motta wrote:
> Hello, I live in Brazil and would like to install Tryton and its database in 
> windows is it possible?
> 
> I do not know how to work with linux, I have a lot of difficulty

The same question has been posted at 
https://discuss.tryton.org/t/install-tryton-and-database-in-windows/690/1
Thanks to avoid cross-posting, I suggest to only answer on
discuss.tryton.org

-- 
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" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/20180829143318.zrmo3mfocgoxtfkl%40kei.


Re: [tryton] Base class function fields problem

2018-08-27 Thread 'Cédric Krier' via tryton
Hi,

On 2018-08-25 11:20, FREDY RAMIREZ wrote:
>When using a derived class (module extended) I can not have access to base 
> class function fields, even if I set a default value to it. An AttributeError 
> is raised if I try tu call it.
> 
>This occurs when I try to create a new record.
> 
>This behavior is on trytond-4.8.4, I was previusly working with 4.8.2  
> without problems.
> 
>Is this a bug or it is the correct behavior?

I guess it is a bug in your code because this is something that is done
in core modules many times.
Could you share your code? And the traceback?

-- 
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" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/20180827083459.iriwcdpclfuyglbz%40kei.


Re: [tryton] Can't Use my custom invoice template

2018-08-24 Thread 'Cédric Krier' via tryton
On 2018-08-23 16:19, Richmond Fiko wrote:
> It is possible to bypass this behavior ?

Not really because it is a requirement in most of the countries to
always re-print the document as it was when posted.

> > It really depend on how you customized the report.
> > When you post an invoice, the system store a copy the report result. And
> > it use this copy for any further print.
> 
> I explain: I have 3 invoice templates, each template must be print according 
> to a special case. It is not interesting for to keep a default model... So I 
> need to print my custom model when invoice is posted because accountants will 
> use the invoice sequence to track its.

Indeed Tryton takes the first action it found to print the invoice.
I filled https://bugs.tryton.org/issue7646 to improve the situation.
For now, the best is to have a single template with a big switch/case
for the three layout.

-- 
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" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/20180824075023.2zxkt2njdq5w3fbg%40kei.


Re: [tryton] Can't Use my custom invoice template

2018-08-23 Thread 'Cédric Krier' via tryton
Hi,

On 2018-08-23 15:11, Richmond Fiko wrote:
> I have a strange behavior in tryton 4.2 invoice module.
> I create some custom invoice report template. All is OK when I try to print 
> invoice in
> different state until it come to posted state. At this state, the base 
> invoice model is printed
> for any template I try. Is it normal? How can I print my custom template when 
> invoice is in posted state?

It really depend on how you customized the report.
When you post an invoice, the system store a copy the report result. And
it use this copy for any further print.
If you do the override using a module, you must follow
https://tryton-readthedocs.readthedocs.io/projects/server/en/latest/topics/reports/index.html#replacing-existing-tryton-reports
This is to ensure that only one ir.action.report is linked to account.invoice.
Or you can just upload in the database another template on the default
report action.

-- 
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" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/20180823224505.wajqngfw25e4j3nt%40kei.


Re: [tryton] Proposal to replace mailing lists by discuss

2018-08-23 Thread 'Cédric Krier' via tryton
On 2018-08-23 16:12, Sergi Almacellas Abellana wrote:
> On 8/7/18 9:58 AM, Cédric Krier wrote:
> > On 2018-06-28 10:49, Cédric Krier wrote:
> > > As you are the main subject of this proposal, I think it is good to warn
> > > you about this proposal I made:
> > > https://discuss.tryton.org/t/replace-mailing-list-by-discuss/599?u=ced
> > As we have mainly positive feedback about this proposal.
> > I would like to encourage everyone on this mailing list to start to use
> > https://discuss.tryton.org/  as soon as possible.
> I'm wondering if we should send the same advice to the language specific
> list.

Why not. But I expect that some reader from here will spread the news.

> There is some schedule date on which the mailing list will be put on
> readonly mode?

Not yet. I planned this to be part of the new website design as the
discuss should be put as default.

-- 
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" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/20180823142602.hzjn2eco3r4t6pba%40kei.


Re: [tryton] Module list is empty on Sao web interface

2018-08-20 Thread 'Cédric Krier' via tryton
On 2018-08-19 23:37, Nirmalraj Rethinasabapathi wrote:
> First time user. My module list is empty on sao web interface(firefox 
> browser).
> I have checked ir_module in db which have around 60 modules. But in browser 
> nothing is showing. Do I need to update module anywhere.

We need more information. What version of sao and server? Are you sure
to connect to the right server? Is there any message in the browser
javascript console?

-- 
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" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/20180820071430.u5zgv3h56ggwb76c%40kei.


Re: [tryton-fr] configuration de base

2018-08-18 Thread 'Cédric Krier' via tryton-fr
On 2018-08-17 23:48, Pascal Annen wrote:
> Bonjour,
> 
> Je désire héberger mon serveur tryton pour ma société, car avec oodo et 
> autre ça devient fatiguant, où c'est très limité, où il faut payer pour 
> ceci ou cela.
> Mon projet est de configurer des serveurs tryton pour des associations à 
> but non lucratifs qui en ont besoin, donc ça doit être Gratuit et pratique.

Pour information, SISalp propose des hébergement gratuit de Tryton qui
pourrait vous correspondre: https://sisalp.fr/


PS: Merci de ne pas top-poster (répondre au dessus) sur la mailing list,
voir la netiquette http://groups.tryton.org/netiquette

-- 
Cédric Krier - B2CK SPRL
Email/Jabber: cedric.kr...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

-- 
Vous recevez ce message, car vous êtes abonné au groupe Google Groupes 
tryton-fr.
Cette discussion peut être lue sur le Web à l'adresse 
https://groups.google.com/d/msgid/tryton-fr/20180818073835.bjad3cf6d7gfmdkf%40kei.


Re: [tryton] Invoice amount rounding and sales tax reverse calculation

2018-08-14 Thread 'Cédric Krier' via tryton
On 2018-08-14 16:30, 'Cédric Krier' via tryton wrote:
> On 2018-08-14 07:00, 'Artem Braga' via tryton wrote:
> > Is there any way to round the total invoice amount up to the nearest 0.05 
> > and to reverse calculate sales tax on the rounded total invoice amount with 
> > the precision of 0.01? 
> 
> No, computation of unit price from price tax included is per line.

But this remember the Swiss rounding problem: https://bugs.tryton.org/issue1000

-- 
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" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/20180814152536.5ljpdgn3a6p2c344%40kei.


Re: [tryton] Invoice amount rounding and sales tax reverse calculation

2018-08-14 Thread 'Cédric Krier' via tryton
On 2018-08-14 07:00, 'Artem Braga' via tryton wrote:
> Is there any way to round the total invoice amount up to the nearest 0.05 and 
> to reverse calculate sales tax on the rounded total invoice amount with the 
> precision of 0.01? 

No, computation of unit price from price tax included is per line.

-- 
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" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/20180814143031.n5xm2tncslthddxs%40kei.


Re: [tryton] Definition of buttons

2018-08-14 Thread 'Cédric Krier' via tryton
On 2018-08-14 07:05, Javier Uribe wrote:
> Hello, I'm developing a Tryton client on Android and I used the fields_get 
> rpc method to get the fields' definition and now I'm trying to get the 
> button's definitions. I would like a method that given the model_name as a 
> param it returns the cls_buttons the server has. I'm especially interested in 
> getting the states and string's buttons.

There is no such method. The buttons are defined on the views.

-- 
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" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/20180814143115.u7wecktox5kzuim7%40kei.


Re: [tryton] Trying out Tryton via Docker

2018-08-09 Thread 'Cédric Krier' via tryton
On 2018-08-08 10:38, Sergi Almacellas Abellana wrote:
> El 08/08/18 a les 05:56, RisP ha escrit:
> > Hi,
> > 
> > I would like to try out Tryton, and decided to use Docker.
> > 
> > The instructions seem to be ok, but the latest version didn't work.
> 
> What does not work?

If you have activated the ldap_authentication module, you may have this
problem https://bugs.tryton.org/issue7611

-- 
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" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/20180809071956.pwtd5ojj4tdv7dsb%40kei.


Re: [tryton] Unload hg.tryton.org

2018-08-08 Thread Cédric Krier
On 2018-07-06 10:16, Cédric Krier wrote:
> Hi,
> 
> The hg.tryton.org site has served 66GB for June. But mainly to only 3
> hosts:
> 
> * ns332279.ip-91-121-118.eu: 25.86 GB
> * static-160-102-225-77.ipcom.comunitel.net: 24.04 GB
> * cli-???.wholesale.adamo.es: 13.26 GB

The statistics for July shows:

* ns332279.ip-91-121-118.eu: 27.62 GB
* static-160-102-225-77.ipcom.comunitel.net: 25.26 GB
* cli-???.wholesale.adamo.es: 1.98 GB

So thanks to cli-???.wholesale.adamo.es to have reduced by 10 times its
consumption.

The others please to try to reduce your consumption by using the
bitbucket or github mirrors.

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" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/20180808131313.fax42iylurghqecw%40kei.


Re: [tryton] RPC method to know if a field is a Function or how to fill the field when creating a new record

2018-08-07 Thread Cédric Krier
On 2018-08-07 06:21, Javier Uribe wrote:
> El martes, 7 de agosto de 2018, 13:40:05 (UTC+2), Cédric Krier  escribió:
> > On 2018-08-07 03:57, Javier Uribe wrote:
> > > Ah ok, I think I understand now. So if the field function does not have a 
> > > on_change as a getter, for example, a field moves which has as a getter 
> > > get_moves(). This methos will not be trigger when creating a record, will 
> > > it? 
> > 
> > No, the getter are only called when reading records.
> > 
> > > So I only have to care to trigger on_change and on_change with causing 
> > > that the fields function which has this on_change as getter will be 
> > > filled. 
> > > 
> > > My only doubt then is with these cases in which the field does not have 
> > > an on_change method as a getter, and during the process of creating a 
> > > record I want to use this field. Because if i'm not wrong, on Tryton if 
> > > i'm creating a record and I print moves (using the same example), this 
> > > will trigger get_moves. How does Tryton client get this value?
> > 
> > The print action will save the record before being launched.
> > 
> I see, therefore, I only have to call all the on_change and on_change_with 
> during the creation of a record, because these will call all the field 
> functions needed. The other fields.function which does not have on_change are 
> not to be invoked until they are not in a read record. 

No, you must not call all the on_change's only those related to a field
the user has changed.
Implementing the full client stack is an heavy job, you may better use
the web client which is responsive or make a tailored application which
does not care about following the client protocol.

> The only thing that I think it wouldn't work is the domain/states because 
> what if there is a domain/state which mentions an Eval(fieldFUnction), so I 
> have to have it on my context but I can't because I can't read a 
> field.function (which does not have an on change getter). So the states makes 
> my field invisible for example when creating a record. How do I put in my 
> context these fields?

You must use its default value if there is one or its fallback value
depending of the field (usually None but it is an empty list for One2Many etc.)

-- 
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" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/20180807140357.3waii5o5gec4r3ca%40kei.


Re: [tryton] RPC method to know if a field is a Function or how to fill the field when creating a new record

2018-08-07 Thread Cédric Krier
On 2018-08-07 03:57, Javier Uribe wrote:
> Ah ok, I think I understand now. So if the field function does not have a 
> on_change as a getter, for example, a field moves which has as a getter 
> get_moves(). This methos will not be trigger when creating a record, will it? 

No, the getter are only called when reading records.

> So I only have to care to trigger on_change and on_change with causing that 
> the fields function which has this on_change as getter will be filled. 
> 
> My only doubt then is with these cases in which the field does not have an 
> on_change method as a getter, and during the process of creating a record I 
> want to use this field. Because if i'm not wrong, on Tryton if i'm creating a 
> record and I print moves (using the same example), this will trigger 
> get_moves. How does Tryton client get this value?

The print action will save the record before being launched.

-- 
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" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/20180807113840.pve76mhlrwxszxvx%40kei.


Re: [tryton] RPC method to know if a field is a Function or how to fill the field when creating a new record

2018-08-07 Thread Cédric Krier
On 2018-08-07 03:12, Javier Uribe wrote:
> El martes, 7 de agosto de 2018, 11:55:06 (UTC+2), Cédric Krier  escribió:
> > On 2018-08-07 02:02, Javier Uribe wrote:
> > > El martes, 7 de agosto de 2018, 11:00:06 (UTC+2), Cédric Krier  escribió:
> > > > On 2018-08-07 01:26, Javier Uribe wrote:
> > > > > So, lets say for instance that we have a field moves which is a 
> > > > > Fields.function which has a method get_moves(). And I have just 
> > > > > created a record that has this field, the fields_get tells me that it 
> > > > > is a readonly. How should I fill the field moves with its value?
> > > > 
> > > > Like any other field with the value read.
> > > 
> > > So, can I read a field of a record that doesn't exist yet?, if that so, 
> > > that's my problem I haven't seen how to do that. 
> > 
> > Of course, you can not read a record that does not exist.
> > I was answering about the creation like you said in your previous
> > message.
> > 
> > But the default value of a readonly field is just like the default value
> > of any field. But you must not send the value of readonly field to the
> > server for creation.
> 
> First of all, thanks a lot for your time but I still don't get how to do what 
> I want. I want to read a field function of a record that doesn't exist 
> because I'm creating, so basically when i'm creating a record and it is not 
> saved on the server I only have the default values, but the function fields I 
> understand that the must be filled as well. So what I want is to populate the 
> model with the default values and the function fields. The default_values can 
> be read easily using the RPC method default_get, however the function fields 
> cannot be read from a record that does not exist. 

As I already said. There is nothing special about Function field on the
client side because client side does not know anything about Function
field and should never know anything about it.
So default value for function field are just like any default value of
any kind of field.

Now maybe, you would like to have the field (function or not) been
updated when the user fill the form. This is managed by the on_change
methods:
https://tryton-readthedocs.readthedocs.io/projects/server/en/latest/topics/models/fields_on_change.html
And again, client does not care about Function field or not also for the
on_change feature.



PS: Could you trim your quotes when answering, especially signature,
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" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/20180807103853.m5uzxkenrod23bd2%40kei.


Re: [tryton] RPC method to know if a field is a Function or how to fill the field when creating a new record

2018-08-07 Thread Cédric Krier
On 2018-08-07 02:02, Javier Uribe wrote:
> El martes, 7 de agosto de 2018, 11:00:06 (UTC+2), Cédric Krier  escribió:
> > On 2018-08-07 01:26, Javier Uribe wrote:
> > > So, lets say for instance that we have a field moves which is a 
> > > Fields.function which has a method get_moves(). And I have just created a 
> > > record that has this field, the fields_get tells me that it is a 
> > > readonly. How should I fill the field moves with its value?
> > 
> > Like any other field with the value read.
> 
> So, can I read a field of a record that doesn't exist yet?, if that so, 
> that's my problem I haven't seen how to do that. 

Of course, you can not read a record that does not exist.
I was answering about the creation like you said in your previous
message.

But the default value of a readonly field is just like the default value
of any field. But you must not send the value of readonly field to the
server for creation.


-- 
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" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/20180807095153.i2nnna6ia2sbwrbk%40kei.


Re: [tryton] RPC method to know if a field is a Function or how to fill the field when creating a new record

2018-08-07 Thread Cédric Krier
On 2018-08-07 01:26, Javier Uribe wrote:
> So, lets say for instance that we have a field moves which is a 
> Fields.function which has a method get_moves(). And I have just created a 
> record that has this field, the fields_get tells me that it is a readonly. 
> How should I fill the field moves with its value?

Like any other field with the value read.

-- 
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" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/20180807085808.hagvl5pz452skb5r%40kei.


Re: [tryton] RPC method to know if a field is a Function or how to fill the field when creating a new record

2018-08-07 Thread Cédric Krier
On 2018-08-07 00:50, Javier Uribe wrote:
> Hello, I'm developing a Framework to develop mobile tryton apps so I have to 
> comunicate the client mobile with the server. I used the rpc method 
> fields_get and default to fill the field's definitions but I'm struggling to 
> understand how Tryton fills the fields.function, because the fields_get 
> doesn't give you the info about it neither it is a fields.function or its 
> function to call, so this field remains empty if I don't fill it manually.

This is done on purpose. Function fields is a server details. They
must behave like the field they impersonate. So you must not know the
getter, setter or searcher because you can not call them remotely. You
must just use the read/create/write API as for any other fields.

> When it comes to read a record it is easy because the read rpc method gives 
> you the value, the problem comes when I have to create a new record and I 
> have to fill it with all the default_values but I can't fill the function 
> fields with its values.

You should but be careful that some function fields have no setter so
they are described as readonly. You should never send value for readonly
fields. We will one day enforce this https://bugs.tryton.org/issue4207

-- 
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" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/20180807081013.hvw7vy5y4txv47kb%40kei.


Re: [tryton] Proposal to replace mailing lists by discuss

2018-08-07 Thread Cédric Krier
On 2018-06-28 10:49, Cédric Krier wrote:
> As you are the main subject of this proposal, I think it is good to warn
> you about this proposal I made:
> https://discuss.tryton.org/t/replace-mailing-list-by-discuss/599?u=ced

As we have mainly positive feedback about this proposal.
I would like to encourage everyone on this mailing list to start to use
https://discuss.tryton.org/ as soon as possible.

-- 
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" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/20180807075836.hazsn4dqgsz7hzf4%40kei.


Re: [tryton] mandatory analytic and sale_shipment_cost

2018-08-03 Thread Cédric Krier
On 2018-08-03 07:20, JC Michel wrote:
> With a mandatory analytic root, I cannot use sale_shipment_cost to add
> calculated shipment price with carrier_weight on sale.
> 
> I tested on demo4.8 to reproduce it.
> Activate analytic_account, analytic_invoice, analytic_sale, carrier,
> carrier_weight, sale_shipment_cost.
> Create Carrier (product, party) and CarrierSelection.
> Configure Sale with SaleShipmentCostMethod OnOrder.
> Create a simple analytic with root (mandatory) and two children, product and
> carrier.
> Make a new sale, add a line with a product, choose analytic ‘product’ on
> line.
> Message is « The field "Account" on "Analytic Account Entry" is required. »
> when trying to change Draft Sale to Quote.
> 
> IMHO it’s the carrier sale line added automatically that has no analytic.
> I tried to add an AnalyticRule to add it automatically from Account, but
> this doesn’t work. Probably there’s no write to the journal at the time the
> saleline is created.
> 
> Is it a bug ? is there a workaround ? or is ‘mandatory’ analytic root
> unusable with sale_shipment_cost ?

Please fill an issue. It is a clash between two modules.
I guess we will have to define a analytic entry for shipment cost line.

-- 
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" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/20180803070013.myj75xbexj2yz4c4%40kei.


Re: [tryton] Bypassing cache for function field.

2018-08-02 Thread Cédric Krier
On 2018-08-02 14:19, Jon Levy wrote:
> When a function field is accessed multiple times without there being any 
> database operations, it will be calculated the first time, cached, and 
> subsequently recalled out of cache.  
> https://github.com/tryton/trytond/blob/1af9530e187d766598afd55bb6399ab0a5e8689b/trytond/model/modelstorage.py#L1232
> 
> The only way to prevent this that I can find (without messing with internals) 
> is to do a database operation (and thus increment the transaction counter), 
> signaling to the numerous caches that they should clear.  
> https://github.com/tryton/trytond/blob/1af9530e187d766598afd55bb6399ab0a5e8689b/trytond/cache.py#L219
> 
> Of course, explicitly changing the transaction counter would also accomplish 
> the aim.  Does anyone know if this is acceptable?
> 
> I understand that I should probably not even be talking about such things.  
> Why would the function field have changed without a database operation?  I am 
> in a strange case where I have a function field that is used to generate a 
> report, but new legal guidance has been issued that creates two 
> interpretations of how that function field might be calculated.  I have a 
> wizard that runs a series of reports, and the idea is to now have two 
> versions of the report: one for each method of calculating the function field 
> (based on a context flag).  I understand that this is not great, and that 
> idiomatically the better thing to do would be to either convert the function 
> field into a regular python method, or use two different function fields.  I 
> am just not investing the time to do that yet--in part because I think there 
> is a good possibility of new legal guidance coming out fairly soon.
> 
> Any advice on how to not use the cache?  (Btw, the avenue of doing a trivial 
> database operation to increment the counter also runs into problems because 
> reports are run in readonly transactions.)

As you said that your computation depend on the context, you should
instantiate the record with each context. This way the computation will
be redone.

-- 
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" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/2018080141.kov3epa4ozsr5svm%40kei.


Re: [tryton] IP address of user

2018-07-28 Thread Cédric Krier
On 2018-07-28 06:50, Jon Levy wrote:
> Is there a way to see a user's IP address (e.g., in the Transaction
> context)?  This is for a time clock functionality, and would be used
> to know whether the user is at the office, or somewhere else.

We added the werkzeug request object in the context in
http://hg.tryton.org/trytond/rev/dce0d8fb3c3f
So you can retrieve the remote_addr attribute but you should not
consider that the _request key will always be in the context.

-- 
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" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/20180728152413.qzja5ebq6batpxjs%40kei.


Re: [tryton] Re: Ohada chart of accounts

2018-07-27 Thread Cédric Krier
On 2018-07-27 12:52, Patrick Murez wrote:
> I'm using the version 3.2.10
> I will send the log later.

Is it possible to move this discussion on GNU Health platform as it
seems to be very specific and no more in relation with the topic?

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" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/20180727112020.kxmhlytlcttkga5t%40kei.


Re: [tryton-dev] ssh key doesnt work on hg.tryton.org

2018-07-24 Thread Cédric Krier
Hi,

On 2018-07-24 16:06, Carlos Eduardo Sotelo Pinto wrote:
> I have tryton to follow the "how to contribute", however when I try to
> update my code from [ssh://h...@hg.tryton.org/trytond], it start to request a
> password, although I have added my publick key to the [
> https://bugs.tryton.org/] site. I also try to clone a new copy, but the
> password request also appears on a new clear copy using hg clone
> 
> 
> $ hg clone ssh://h...@hg.tryton.org/trytond
> 
> 
> This is the password request
> 
> $ hg npull
> [.]
> pulling from ssh://h...@hg.tryton.org/trytond/
> remote: Warning: Permanently added the ECDSA host key for IP address
> '91.121.144.88' to the list of known hosts.
> Password:
> 
> 
> Please give me a suggest in order on try to contribute to tryton dev

Because ssh access is reserved to core developers with push access.
You must fetch using https.

-- 
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/20180724222022.mmfgsklld4zgtic5%40kei.


Re: [tryton] Re: Ohada chart of accounts

2018-07-24 Thread Cédric Krier
On 2018-07-24 07:47, Richmond Fiko wrote:
> I did it, you can find it on my github
> https://github.com/ly2ly/tryton-modules

Could it be integrated in standard? Is it stable? complete?

-- 
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" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/20180724151640.wavrby6b4uvyvq5d%40kei.


Re: [tryton] Hide group in xml form

2018-07-24 Thread Cédric Krier
On 2018-07-24 03:37, Richmond Fiko wrote:
> Something like:
> 
> @classmethod
> def view_attributes(cls):
> # Hide the group when is_insured is not
> # true
> return [('//group[@id="statement_insurance_info"]', 'states', {
> 'invisible': Not(Bool(Eval('is_insured'))),
> })]

You should always call super for modularity, otherwise it seems OK.
You could simplify the PYSON expression: ~Eval('is_insured')

-- 
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" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/20180724112013.bmhthgse7auun4ij%40kei.


Re: [tryton] Hide group in xml form

2018-07-24 Thread Cédric Krier
On 2018-07-23 21:56, Richmond Fiko wrote:
> I have a little noob question. In a form view, is it possible to hide a group 
> with a condition for instance in:
> 
> 
> 
> 
> 
> 
> 
> 
>   
> 
>
> 
> 
> group "Insurance infos" will be hide if is_insured (a bool field) is false 
> and will appear if the field is set true.
> If is it possible, how can I do it?

Yes, you can. You must override view_attributes of the Model to return
the xpath that match the group and set a 'states' attribute with the
PYSON expression that will make 'invisible' state True.

http://doc.tryton.org/4.8/trytond/doc/ref/models/models.html#trytond.model.ModelView.view_attributes


-- 
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" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/20180724081846.rqb5gd6vpo6frig5%40kei.


Re: [tryton] third-party and self-billing

2018-07-20 Thread Cédric Krier
On 2018-07-20 16:48, Richard PALO wrote:
> I'm curious if somebody has already come up with a third-party and 
> self-billing (autofacturation) module
> for tryton.  This should be relatively trivial, but it would be nice to save 
> some cycles if already done.

I'm not sure there is anything to do for self-billing.
It is just about creating the supplier invoice yourself.

I'm not sure what you mean by third-party. But a sale order can already
have 2 different parties. One for the invoice and one for the shipment.
But maybe you want to refer to the practice of billing another party
than the original one. But I guess it can be managed with a specific
invoice address.

-- 
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" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/20180720161310.GY4510%40kei.


Re: [tryton] Generating reports in PDF

2018-07-20 Thread Cédric Krier
On 2018-07-20 03:30, Khurram Shahzad wrote:
> On Wednesday, July 18, 2018 at 8:30:06 PM UTC+5, Cédric Krier wrote:
> > On 2018-07-18 13:07, Khurram Shahzad wrote:
> > > If not possible (or very difficult), can I render the PDF file as a 
> > > report.
> > > I am able to call a an HTTP Service to get the generated PDF file (as
> > > stream) but can not show it as a report from Report Menu.
> > 
> > You can override the method 'render' of your Report class. It must
> > return the bytes of file that you have generated.
> > 
> Thank you so much. I was able to successfully display the PDF file received 
> from a network service using Report menu. However, I had to add MIMETYPE for 
> PDF in report.py ('pdf': 'application/pdf'). Otherwise, it throws an 
> Exception in the convert method being 'No Such file ..'.

Indeed if you do not need to convert, you should also override 'convert'
method to return (output_format, data) directly.
It is better than modify MIMETYPES because it has other usage.

-- 
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" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/20180720105419.GW4510%40kei.


Re: [tryton] Generating reports in PDF

2018-07-18 Thread Cédric Krier
On 2018-07-18 13:07, Khurram Shahzad wrote:
> Can I generate reports in PDF format in Tryton?

Yes, you need to have 'soffice' installed (from LibreOffice or
OpenOffice) and you must set the extension of the ir.action.report to
'pdf'.

> If not possible (or very difficult), can I render the PDF file as a report.
> I am able to call a an HTTP Service to get the generated PDF file (as
> stream) but can not show it as a report from Report Menu.

You can override the method 'render' of your Report class. It must
return the bytes of file that you have generated.

-- 
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" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/20180718152632.GF4510%40kei.


Re: [tryton-fr] Erreur lors de la creation du plan comptable

2018-07-17 Thread Cédric Krier
Bonjour,

On 2018-07-17 06:13, Patrick Murez wrote:
> Bonjour Chers Tous,
> je suis nouveau sur tryton , je ne parviens pas  a creer un plan coptable 
> pour une societe.
> Je recois un message:
> *Vous essayez d'enfreindre une règle d'accès. (Type du 
> document : account.account.type)*
> Je ne comprends pas pourquoi car je suis bel et bien administrateur*.*
> Quelqu'un pourrais m'aidez??

Il est possible que le problème soit que l'utilisateur (même admin) ne
soit pas configurer comme étant dans la société en question.

-- 
Cédric Krier - B2CK SPRL
Email/Jabber: cedric.kr...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

-- 
Vous recevez ce message, car vous êtes abonné au groupe Google Groupes 
tryton-fr.
Cette discussion peut être lue sur le Web à l'adresse 
https://groups.google.com/d/msgid/tryton-fr/20180717213540.GC4510%40kei.


Re: [tryton] Unload hg.tryton.org

2018-07-16 Thread Cédric Krier
On 2018-07-09 17:55, Cédric Krier wrote:
> On 2018-07-09 17:22, Sergi Almacellas Abellana wrote:
> > El 06/07/18 a les 10:16, Cédric Krier ha escrit:
> > > * Use a local mirror of the Tryton repositories (like
> > >   drone.tryton.org does with hgwebcachingproxy [1])
> > 
> > We've setup an hgwebcachingproxy and setup dnsmasq to use the proxy ip
> > for cloning the repositories on our testing environment.
> > 
> > Cloning the repositories using the http protocol works well but when
> > using the https server we've get a certificate error. Which is expected
> > as we do not have any valid certificate for hg.tryton.org
> > 
> > Could you explain how do you solved this issue on drone.tryton.org?
> 
> Well we have a valid certificate for hg.tryton.org
> So probably the best is to have a custom trydevpy or we could provide
> another parameter to define a custom domain name.

For the record, I just stopped to use hgwebcachingproxy because it does
not work on latest mercurial version (and it is too much work to upgrade
it). So now, we run a simple `hg serve` on the machine which a
preoutgoing hook to keep repository up to date:
https://stackoverflow.com/questions/3925007/creating-a-local-transparent-cache-of-a-mercurial-repository

The only disadvantage is that new repositories must be created manually
on the server. But now, we rely only on standard mercurial tools.

-- 
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" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/20180716145756.GO23462%40kei.


Re: [tryton-fr] Askbot

2018-07-13 Thread Cédric Krier
On 2018-07-13 16:55, Julien Fastré wrote:
> PS: faire un manuel ou un askbot ça pourrait être bien :-)

C'est l'idée derrière: https://discuss.tryton.org/c/support

-- 
Cédric Krier - B2CK SPRL
Email/Jabber: cedric.kr...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

-- 
Vous recevez ce message, car vous êtes abonné au groupe Google Groupes 
tryton-fr.
Cette discussion peut être lue sur le Web à l'adresse 
https://groups.google.com/d/msgid/tryton-fr/20180713151735.GL23462%40kei.


Re: [tryton] Unload hg.tryton.org

2018-07-09 Thread Cédric Krier
On 2018-07-09 17:22, Sergi Almacellas Abellana wrote:
> El 06/07/18 a les 10:16, Cédric Krier ha escrit:
> > * Use a local mirror of the Tryton repositories (like
> >   drone.tryton.org does with hgwebcachingproxy [1])
> 
> We've setup an hgwebcachingproxy and setup dnsmasq to use the proxy ip
> for cloning the repositories on our testing environment.
> 
> Cloning the repositories using the http protocol works well but when
> using the https server we've get a certificate error. Which is expected
> as we do not have any valid certificate for hg.tryton.org
> 
> Could you explain how do you solved this issue on drone.tryton.org?

Well we have a valid certificate for hg.tryton.org
So probably the best is to have a custom trydevpy or we could provide
another parameter to define a custom domain name.

-- 
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" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/20180709155540.GW4715%40kei.


Re: [tryton] Gtk client 4.8

2018-07-09 Thread Cédric Krier
Hi,

On 2018-07-07 15:39, FREDY RAMIREZ wrote:
> I have been playing with tryton 4.6 on windows 10 for a couple of months and 
> everything works very well.
> 
> Now I started playing with 4.8 series, 4.8.2 works well but its looking is 
> weird, I think I have to play with theme.css to adjust to desired style.

No, the 4.8 series uses GTK+3 (instead of GTK+2). Under GTK+2, we could
use the MS-Windows theme. But under GTK+3, the theme is included in the
library and it is supposed to adapt to the version and custom of the OS.

> Yesterday I tried to use 4.8.3 but it does not run (although Windows asks for 
> permission), Is there any log file that I can take a look in order to see 
> what is happening?
> 
> By the way, I noticed that 4.8.2 size is 47.9 MB but 4.8.3 is just 24.1 MB, I 
> do not know if probably there is something missed.

Friday, I uploaded the new build from the virtual machine. The upload
was very slow as usual with the VM. So I let them run for the weekend
but I just found that the VM has crashed and so some upload were only
partial. I just reuploaded them (4.4 and 4.6 are still uploading).


Also you should use the setup instead of the exe, if you want to avoid
the permission window on each run.

-- 
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" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/20180709081005.GT4715%40kei.


Re: [tryton] Unload hg.tryton.org

2018-07-06 Thread Cédric Krier
On 2018-07-06 10:16, Cédric Krier wrote:
> Hi,
> 
> The hg.tryton.org site has served 66GB for June. But mainly to only 3
> hosts:
> 
> * ns332279.ip-91-121-118.eu: 25.86 GB
> * static-160-102-225-77.ipcom.comunitel.net: 24.04 GB
> * cli-???.wholesale.adamo.es: 13.26 GB
> 
> Those 3 hosts consume more than 90% of the bandwidth of the site.
> I suspect those are testing machines that clone (from scratch)
> repositories on each builds.
> I would like to request to the owner of those hosts, a fare use of our
> resources. For that there are many options:
> 
> * Use a local mirror of the Tryton repositories (like
>   drone.tryton.org does with hgwebcachingproxy [1])
> 
> * Use mirrors instead of hg.tryton.org [2]
> 
> * Use PyPI packages if you do not build on development branch

We found that the issue may be in tox.ini the install_command contains
'--find-links https://trydevpi.tryton.org/' but it should be only:

install_command = pip install --pre --process-dependency-links {opts} 
{packages}

-- 
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" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/20180706120922.GM4715%40kei.


[tryton] Unload hg.tryton.org

2018-07-06 Thread Cédric Krier
Hi,

The hg.tryton.org site has served 66GB for June. But mainly to only 3
hosts:

* ns332279.ip-91-121-118.eu: 25.86 GB
* static-160-102-225-77.ipcom.comunitel.net: 24.04 GB
* cli-???.wholesale.adamo.es: 13.26 GB

Those 3 hosts consume more than 90% of the bandwidth of the site.
I suspect those are testing machines that clone (from scratch)
repositories on each builds.
I would like to request to the owner of those hosts, a fare use of our
resources. For that there are many options:

* Use a local mirror of the Tryton repositories (like
  drone.tryton.org does with hgwebcachingproxy [1])

* Use mirrors instead of hg.tryton.org [2]

* Use PyPI packages if you do not build on development branch



Rem: I disclosed those two first host names because I pretty sure the
two first are servers and last one I hide some part because it looks
like a dynamic customer IP.


[1] https://bitbucket.org/Unity-Technologies/hgwebcachingproxy
[2] https://bugs.tryton.org/issue7536


Thanks to cooperate,
-- 
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" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/20180706081618.GL4715%40kei.


Re: [tryton] Re: sao and comma decimal separator

2018-07-05 Thread Cédric Krier
On 2018-07-05 09:27, Sergi Almacellas Abellana wrote:
> El 04/07/18 a les 18:38, Josias Pérez ha escrit:
> > I will thanks how to change dot per comma (or the other way around) in 
> > tryton and sao. I work with spanish localization and in my country use dot 
> > for decimals and comma for miles separator. 
> > 
> > I can use dot for enter decimals but after entering the data it is display 
> > with comma for decimals and dots per commas. 
> > 
> > I reviewed the custom location setting on windows but it's correctly 
> > configured. 
> The numeric fields are displayed using the numeric format on the
> language. If you have diferent settings you should create a derivative
> language (so all the translations are inherit) and set your custom
> formating.

> This is how the  "Spanish (Latin American)" language works.
> I'm wondering if you should not use this Language instead of the Spanish
> one as it has the numeric settings as you are requesting.


To be clear, sao does not use the formatting option of the language
defined in trytond. But only the language code, to request the browser
to format with toLocalString [1]

[1] 
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toLocaleString

-- 
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" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/20180705074356.GH4715%40kei.


Re: [tryton-fr] utiliser la description d'un produit pour une vente

2018-07-04 Thread Cédric Krier
On 2018-07-04 11:08, 'Laurent Roche' via tryton-fr wrote:
> Lorsque je choisis un article pour une vente, la description de l'article 
> n'est pas recopié : dans la description, j'obtiens le code de l'article + 
> son nom !
> 
> Comment faire pour obtenir la description ?

Ça a été enlevé car la description est rendue dans le rapport
directement sans devoir la dupliquer sur toutes les lignes.
https://bugs.tryton.org/issue6860

-- 
Cédric Krier - B2CK SPRL
Email/Jabber: cedric.kr...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

-- 
Vous recevez ce message, car vous êtes abonné au groupe Google Groupes 
tryton-fr.
Cette discussion peut être lue sur le Web à l'adresse 
https://groups.google.com/d/msgid/tryton-fr/20180704213800.GG4715%40kei.


Re: [tryton-dev] Vibora similar to Flask

2018-06-29 Thread Cédric Krier
On 2018-06-29 11:59, Sergi Almacellas Abellana wrote:
> El 29/06/18 a les 11:10, Cédric Krier ha escrit:
> > Indeed at B2CK after some experiences with Flask-Tryton, we think that
> > this is no more a best way to interface website with trytond. We think
> > about using dedicated RPC calls in the future.
> 
> When you talk about RPC calls you mean also a specific endpoint using
> the new custom routing feature?

I think it is to be decided case by case.

> How do you think it's better to consume those APIs? Using javascript
> directly or by using an intermediary webserver?

Idem.
Indeed we have done both cases.

-- 
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/20180629102242.GN3931%40kei.


Re: [tryton-dev] Vibora similar to Flask

2018-06-29 Thread Cédric Krier
On 2018-06-28 08:32, Oscar Alvarez wrote:
> Interesting new tool, it maybe in future can be used with Tryton ;)
> 
> https://vibora.io/?ref=stackshare

I do not think it worse the investment to change all the code base of
Tryton to be async. Indeed async ORM may be strange to use without
talking about the Transaction context switch.

But for a website like an webshop, it could be interesting and it will
be not difficult if the communication with trytond is made via RPC.
Indeed at B2CK after some experiences with Flask-Tryton, we think that
this is no more a best way to interface website with trytond. We think
about using dedicated RPC calls in the future.

-- 
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/20180629091015.GL3931%40kei.


Re: [tryton-dev] Open a view as result of button click

2018-06-29 Thread Cédric Krier
On 2018-06-29 09:52, Carlos Gálvez wrote:
> 2018-06-28 14:47 GMT+02:00 Sergi Almacellas Abellana :
> >
> >
> > Yes, it is possible. You should use the button_action decorator to
> > returns an wizard with an StateAction from the model of the new created
> > instance.
> >
> > You should set the res_id of the action on the wizard to the ids of the
> > new created instances.
> 
> 
> Finally, I did not use a "button_action" decorator to return an assistant
> because
> I was not interested in having a wizard dirtying my code, but his
> suggestions showed me the way.

button_action is not limited to wizard, it can be used for any action.

> The way I have done it is returning on my Modelview.button an Action id
> that points to an act_window that open the desired view:
> 
> return Action.get_action_id(ModelData.get_id('mymodule', 'myaction'))

This would be cleaner to use the button_action decorator.

-- 
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/20180629083908.GK3931%40kei.


[tryton] Proposal to replace mailing lists by discuss

2018-06-28 Thread Cédric Krier
Hi mailing list,

As you are the main subject of this proposal, I think it is good to warn
you about this proposal I made:
https://discuss.tryton.org/t/replace-mailing-list-by-discuss/599?u=ced

-- 
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" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/20180628084950.GC3931%40kei.


Re: [tryton-dev] How related origin reference field with One2Many fields

2018-06-28 Thread Cédric Krier
Hi,

On 2018-06-27 18:53, Oscar Alvarez wrote:
> It is possible to use field reference (origin) instead of Many2One?

Yes: 
http://doc.tryton.org/4.8/trytond/doc/ref/models/fields.html#trytond.model.fields.One2Many

> for  example in this case:
> 
> class A(...):
> 
>      name = fields.Char(..)
> 
>      documents = field.One2Many('document.notification', 'origin', '???')
> 
> class B(...):
> 
>      name = fields.Char(..)
> 
>      documents = field.One2Many('document.notification', 'origin', '???')
> 
> 
> 
> 
> class DocumentNotification(...):
>    anotherfields = .
>    origin = fields.Reference('Origin', selection='get_origin') --> this 
> field keep reference to records from A model or B model or C model, etc.
> 

That's all you have to do. The '???' should be the string of the field.

-- 
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/20180628082943.GA3931%40kei.


Re: [tryton-dev] Print from custom button

2018-06-27 Thread Cédric Krier
Hi,

On 2018-06-26 10:42, Josias Pérez wrote:
> I have a custom module with transitions controlled by buttons. In the last 
> transition I need that the active record is printed. I have already created a 
> report and it appear in the actions menu, but I want to print it with the 
> button. 

You must use the decorator button_action:
http://doc.tryton.org/4.8/trytond/doc/ref/models/models.html#trytond.model.ModelView.button_action
This will make the client launch the referenced action.

-- 
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/20180627064209.GH30646%40kei.


Re: [tryton-dev] After upgrade "Method" not callable

2018-06-25 Thread Cédric Krier
On 2018-06-25 00:10, 'Hendrik Brandes' via tryton-dev wrote:
> Am Samstag, 23. Juni 2018 23:55:05 UTC+2 schrieb Cédric Krier:
> > On 2018-06-23 09:31, 'Hendrik Brandes' via tryton-dev wrote:
> > > I tried to migrate an existing tryton installation and get the following 
> > > error:
> > > 
> > > AssertionError: .margin not callable
> > 
> > What is the traceback?
> 
> I started the trytond-admin command with parameter --all and finally got the 
> following traceback:
> 
> Traceback (most recent call last):
>   File "/opt/projekte/git/tryton2018/EBBTryton2018/bin/trytond-admin", line 
> 21, in 
> admin.run(options)
>   File "/opt/projekte/git/tryton2018/EBBTryton2018/trytond/admin.py", line 
> 54, in run
> activatedeps=options.activatedeps)
>   File "/opt/projekte/git/tryton2018/EBBTryton2018/trytond/pool.py", line 
> 162, in init
> lang=lang, activatedeps=activatedeps)
>   File 
> "/opt/projekte/git/tryton2018/EBBTryton2018/trytond/modules/__init__.py", 
> line 406, in load_modules
> _load_modules(update)
>   File 
> "/opt/projekte/git/tryton2018/EBBTryton2018/trytond/modules/__init__.py", 
> line 376, in _load_modules
> load_module_graph(graph, pool, update, lang)
>   File 
> "/opt/projekte/git/tryton2018/EBBTryton2018/trytond/modules/__init__.py", 
> line 165, in load_module_graph
> pool.setup(classes)
>   File "/opt/projekte/git/tryton2018/EBBTryton2018/trytond/pool.py", line 
> 236, in setup
> cls.__setup__()
>   File 
> "/opt/projekte/git/tryton2018/EBBTryton2018/trytond/modules/sale_margin/sale.py",
>  line 109, in __setup__
> super(SaleLine, cls).__setup__()
>   File 
> "/opt/projekte/git/tryton2018/EBBTryton2018/trytond/modules/sale_price_list/sale.py",
>  line 49, in __setup__
> super(SaleLine, cls).__setup__()
>   File 
> "/opt/projekte/git/tryton2018/EBBTryton2018/trytond/modules/sale_discount/sale.py",
>  line 56, in __setup__
> super(SaleLine, cls).__setup__()
>   File 
> "/opt/projekte/git/tryton2018/EBBTryton2018/trytond/modules/sale/sale.py", 
> line 1120, in __setup__
> super(SaleLine, cls).__setup__()
>   File "/opt/projekte/git/tryton2018/EBBTryton2018/trytond/model/order.py", 
> line 15, in __setup__
> super(SequenceOrderedMixin, cls).__setup__()
>   File 
> "/opt/projekte/git/tryton2018/EBBTryton2018/trytond/model/modelsql.py", line 
> 164, in __setup__
> super(ModelSQL, cls).__setup__()
>   File 
> "/opt/projekte/git/tryton2018/EBBTryton2018/trytond/model/modelstorage.py", 
> line 59, in __setup__
> super(ModelStorage, cls).__setup__()
>   File 
> "/opt/projekte/git/tryton2018/EBBTryton2018/trytond/model/modelview.py", line 
> 194, in __setup__
> setup_field(name, field, attribute)
>   File 
> "/opt/projekte/git/tryton2018/EBBTryton2018/trytond/model/modelview.py", line 
> 175, in setup_field
> "%s.%s not callable" % (cls, meth_name)
> AssertionError: .margin not callable


This looks like you have defined 'margin' in the methods argument of
fields.depends. Something like: @fields.depends(methods=['margin'])
But margin is a field not a method, so it should be:
@fields.depends('margin')

-- 
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/20180625073624.GY30646%40kei.


Re: [tryton] calendar view no show on tryton 3.8

2018-06-24 Thread Cédric Krier
Hi,

On 2018-06-23 22:41, Francisco Maria Moyano Casco wrote:
>   I'm using tryton 3.8.

FYI, 3.8 is no more supported. You should really considered to upgrade.

> I have an empty view on calendar view, and get the error message:
> Traceback (most recent call last):
>   File 
> "/usr/local/lib/python2.7/dist-packages/tryton-3.8.21-py2.7.egg/tryton/gui/window/form.py",
>  line 369, in sig_next
> self.screen.display_next()
>   File 
> "/usr/local/lib/python2.7/dist-packages/tryton-3.8.21-py2.7.egg/tryton/gui/window/view_form/screen/screen.py",
>  line 805, in display_next
> goocalendar = view.widgets['goocalendar']
> KeyError: 'goocalendar'
> 
>   when I push the next register button.
> 
>   I already installed the GooCalendar, trough apt, pip, and from the source. 
> Got the same error

I created https://bugs.tryton.org/issue7534
Indeed the problem is the GooCalendar is not imported. It is probably
because it is missing GooCanvas or PyGoocanvas dependencies which does
not install via "pip".

-- 
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" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/20180624092353.GW30646%40kei.


Re: [tryton-dev] After upgrade "Method" not callable

2018-06-23 Thread Cédric Krier
On 2018-06-23 09:31, 'Hendrik Brandes' via tryton-dev wrote:
> I tried to migrate an existing tryton installation and get the following 
> error:
> 
> AssertionError: .margin not callable

What is the traceback?

-- 
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/20180623215343.GV30646%40kei.


Re: [tryton] sao and comma decimal separator

2018-06-22 Thread Cédric Krier
On 2018-06-22 08:42, Richard PALO wrote:
> Le 22/06/2018 à 08:31, Richard PALO a écrit :
> > How to get SAO client data entry to accept numeric keypad decimal as comma
> > which seems to be required for debit/credit entries? I'm using French 
> > locale.
> > 
> > No problem in standard client.
> > 
> Thought I would double check with chromium and surprisingly there it *is* 
> converted to a ','.
> So to rephrase the question, how to turn this on with mozilla firefox?

You should ask Firefox to support it: https://bugs.tryton.org/msg36685

-- 
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" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/20180622073528.GR30646%40kei.


Re: [tryton] customer and client consigment

2018-06-21 Thread Cédric Krier
On 2018-06-18 18:44, JC Michel wrote:
> On 18 Jun 2018, at 16:29, Cédric Krier wrote:
> >> If I understand correctly, the error here is to make an internal
> >> shipment from Location(type=supplier) to Location(type=customer).
> >> If I do an Internal Shipment from Consignment Supplier S1 to 
> >> Consignment
> >> Client C1 the item will be purchased from S1, this is not what I 
> >> wish.
> >
> > I do not understand what is the problem and neither what does it 
> > matter
> > the "purchased from"?
> > Before selling something, you must buy it first so this means that the
> > product must be taking out of the supplier location to a storage
> > location. Then it can be sold to the customer.
> 
> In fact I’m really confused by your last sentence.
> Seems that sometimes locations are real places where products are 
> located and sometimes they are symbolic places meaning whom they belong 
> to and in what state they are. [1] mentions « real places » and 
> « virtual locations ».

Yes they are both.

> So to sell a product from a supplier location (meaning it belongs to the 
> supplier), but really located at client address, to that client, I need 
> to encode a shipment from that supplier location to an intermediary 
> storage ? This shipment would be virtual, no item really moved. Only 
> their status changed, from « consigned=at client address, waiting to 
> be sold » to « invoiced=bought by the client ».

Indeed you must store separately products the company owns and products
she does not. Otherwise you can not know.
So it is not a virtual shipment, it represent a real operation.
For example, if you think about the reverse operation, the customer
bring back the product. You have to decide if you send it back also to
the supplier or if you keep it for your stock.
You must also be able to make an inventory of the product the company
owns. This can be done only if you have different locations.

Of course there are the special cases where the company location is
always empty. In this case, it may look strange but it is the cost to
pay to work with all other cases.

> > So in your case, I would make it like this:
> >
> > - Customer
> >
> >- Main consignment
> >   - Supplier consignment
> >   - Consignment
> >
> > I would register sales with internal shipment from Consignment to
> > Customer and refill Consignment using the Supplier consignment.
> > I would put no product in Main consignment, it would be better to have
> > it as a view but it is not supported for now.
> 
> Ok, will try this. In your scheme is Customer the already defined 
> generic and unique Customer location or is it a new location specific to 
> that Customer ?

It is one per customer because you need to store the party on the
location for invoicing.

> And where is the necessary storage type: is it 
> Consignment ?

There is no consignment type.

Customer: customer
Main consignment: storage
Supplier consignment: supplier
Consignment: storage

> > I still do not understand, this is the exact same sentences. I do not
> > understand what are the names used: client and customer storage.
> 
> Maybe it’s simply that I don’t understand this sentence:
> > The consignment stock at customer warehouse is managed by creating a 
> > storage location under the customer location. [2]
> 
> Does « customer » mean here Location(type=customer), ie the already 
> created Location(code=CUS) ?
> Or a Location(type=warehouse, name=MyCustomer) to be created ?

There is two "customer" in the sentence so I do not know which one you
do not understand.
So the "customer warehouse" is something abstract that we do not care
because it is not the company warehouse. So it is any location of type
customer (with the proper consignment party).
The "customer location" is the location with the type customer that will
be used to invoice the customer.

-- 
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" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/20180621094413.GN30646%40kei.


Re: [tryton] customer and client consigment

2018-06-18 Thread Cédric Krier
On 2018-06-18 13:52, JC Michel wrote:
> >> Here is the stock configuration we tested:
> >>
> >> WH
> >> |- Storage STO
> >> |- Consignment Supplier S1 (type=supplier)
> >>
> >> Customer   (type=customer)
> >> |- Consignment Client C1 (type=storage)
> >> |- Consignment Supplier C1-S1 (type=supplier)
> >>
> >> Having a product move from Consignment Supplier S1 to Customer 
> >> creates a
> >> supplier invoice line (ie, we sold the item).
> >> Having a product move from Consignment Client C1 to Customer creates 
> >> a
> >> client invoice line (ie, we sold the item).
> >> Having a product move from Consignment Supplier C1-S1 to Customer
> >> creates no line. We would expect it to create 2: both customer and
> >> client invoice line.
> >
> > It is not supported and we should not support it. We need to add a
> > constraint that prevent to move from internal shipment to move from
> > supplier to customer because it must first step on a storage location.
> > This is required if we want to compute correct cost.
> > https://bugs.tryton.org/issue7523
> 
> If I understand correctly, the error here is to make an internal 
> shipment from Location(type=supplier) to Location(type=customer).
> If I do an Internal Shipment from Consignment Supplier S1 to Consignment 
> Client C1 the item will be purchased from S1, this is not what I wish.

I do not understand what is the problem and neither what does it matter
the "purchased from"?
Before selling something, you must buy it first so this means that the
product must be taking out of the supplier location to a storage
location. Then it can be sold to the customer.

So in your case, I would make it like this:

- Customer

   - Main consignment
  - Supplier consignment
  - Consignment

I would register sales with internal shipment from Consignment to
Customer and refill Consignment using the Supplier consignment.
I would put no product in Main consignment, it would be better to have
it as a view but it is not supported for now.


> >> PS: I’m surprised by the asymmetry between customer and client 
> >> storage
> >> types. Why are consignment client storages to be created below 
> >> Customer
> >> global location? Supplier consignment locations are created below our
> >> Warehouse, not below the top most Supplier location. Why can’t we
> >> create Client consignment locations below a new Consignment storage 
> >> that
> >> would not be child of Customer CUS? Customer CUS location seems to me 
> >> it
> >> contains all sold items. But customer consignment stocks are not sold
> >> yet…
> >
> > I do not understand what is named "client storage".
> 
> Error, I meant consignment client location. I try again :
> 
> I’m surprised by the asymmetry between customer and client storage
> types.
> a. Why are consignment Client locations to be created below Customer
> global location? Supplier consignment locations are created below our
> Warehouse, not below the top most Supplier location.
> b. Why can’t we create Client consignment locations below a new 
> Consignment storage that
> would not be child of Customer CUS? Customer CUS location seems to me it
> contains all sold items. But customer consignment stocks are not sold
> yet…

I still do not understand, this is the exact same sentences. I do not
understand what are the names used: client and customer storage.

-- 
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" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/20180618142945.GO30646%40kei.


Re: [tryton] customer and client consigment

2018-06-18 Thread Cédric Krier
On 2018-06-18 11:28, JC Michel wrote:
> Hi,
> 
> 
> We have the following business case:
> 1. as a book distributor, we handle consignment stock from other 
> publishers. Sold items are invoiced to us when we send the customer 
> invoice.
> 2. as a book diffusor, we sometimes do « deposit » in bookshops: our 
> books *and distributed ones* are shipped without invoice to some 
> bookshops and we invoice them when the books are sold.
> 
> The module stock_consignment seems to handle (1) correctly. (2) seems to 
> work too, for books that are from our own production.
> But we cannot manage to make it work for supplier consigned books.
> 
> Here is the stock configuration we tested:
> 
> WH
> |- Storage STO
> |- Consignment Supplier S1 (type=supplier)
> 
> Customer  (type=customer)
> |- Consignment Client C1 (type=storage)
> |- Consignment Supplier C1-S1 (type=supplier)
> 
> Having a product move from Consignment Supplier S1 to Customer creates a 
> supplier invoice line (ie, we sold the item).
> Having a product move from Consignment Client C1 to Customer creates a 
> client invoice line (ie, we sold the item).
> Having a product move from Consignment Supplier C1-S1 to Customer 
> creates no line. We would expect it to create 2: both customer and 
> client invoice line.

It is not supported and we should not support it. We need to add a
constraint that prevent to move from internal shipment to move from
supplier to customer because it must first step on a storage location.
This is required if we want to compute correct cost.
https://bugs.tryton.org/issue7523

> PS: I’m surprised by the asymmetry between customer and client storage 
> types. Why are consignment client storages to be created below Customer 
> global location? Supplier consignment locations are created below our 
> Warehouse, not below the top most Supplier location. Why can’t we 
> create Client consignment locations below a new Consignment storage that 
> would not be child of Customer CUS? Customer CUS location seems to me it 
> contains all sold items. But customer consignment stocks are not sold 
> yet…

I do not understand what is named "client storage".

-- 
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" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/20180618103612.GL30646%40kei.


Re: [tryton-fr] Séquençage mensuel de la facturation

2018-06-15 Thread Cédric Krier
On 2018-06-14 05:06, Goulven Guillard wrote:
> Le jeudi 14 juin 2018 12:30:05 UTC+2, Cédric Krier a écrit :
> 
> > On peut utiliser des "placeholders" dans le prefix/suffix qui sont 
> > remplacés à l'appel de la séquence en utilisant la date. 
> > Les "placeholders" sont décrit sur la vue des séquences comme: 
> >
> > ${year} 
> > ${month} 
> > ${day} 
> >
> > Attention que pour les factures se sera la date de facturation qui sera 
> > utilisée donc ça ne garantie pas une ordre chronologique pour cette 
> > partie.
> >
> 
> Merci, je ne pensais pas que cela serait aussi simple. Cependant cette 
> solution ne permet pas de réinitialiser la séquence chaque mois, si ? 

Non, pour ça il faut configurer les séquences par période et avoir une
période par mois.

-- 
Cédric Krier - B2CK SPRL
Email/Jabber: cedric.kr...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

-- 
Vous recevez ce message, car vous êtes abonné au groupe Google Groupes 
tryton-fr.
Cette discussion peut être lue sur le Web à l'adresse 
https://groups.google.com/d/msgid/tryton-fr/20180615075154.GX518%40kei.


Re: [tryton] stock consignment invoice lines

2018-06-14 Thread Cédric Krier
On 2018-06-14 10:47, JC Michel wrote:
> Hi,
> 
> On 14 Jun 2018, at 10:35, Dominique Chabord wrote:
> > sounds strange to make a purchase order after the invoice.
> > Did you try to make the purchase order before the internal move ?
> 
> No… the business case is :
> — I handle the stock from the supplier
> — I sell his products in mixed orders (his products and mines)
> — each time I sell a product that belongs to him, I should 
> « note » it
> — at the end of each month for instance, I edit the purchase order 
> for the sold items.

You must not create a purchase order otherwise it will create incoming
stock moves for those products. That's why the stock_consignment modules
creates directly supplier invoice lines that you can append to a supplier
invoice as a self-billed invoice (or as proforma) that you will sent to
your supplier.

-- 
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" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/20180614102401.GP518%40kei.


Re: [tryton-dev] Import data from CSV

2018-06-14 Thread Cédric Krier
On 2018-06-13 12:41, Josias Pérez wrote:
> I was trying to import data with CSV with a multi-company stage and all the 
> companies with the same accounting plan. 
> 
> I'm trying to import a file that require to import the a group of accounts 
> but I found with an error that say that encounter many ocurrences. I dont 
> know how to import that. 

Why not creating a template chart of account like the
account_{be,fr,es}?

-- 
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/20180614101833.GO518%40kei.


Re: [tryton] view_ids in many2many field

2018-06-12 Thread Cédric Krier
On 2018-06-11 21:31, FREDY RAMIREZ wrote:
>I am trying to use view_ids for a many2many field, but when I used the 
> form type first in the list (view_ids="module.view_form,module.view_tree") an 
> error is raised: 'ViewForm' object has no attribute 'treeview'
> 
>Is this a bug or it is not possible with this kind of field?

The order must always be tree,form: https://bugs.tryton.org/issue7509

>Other issue is in SAO, if I define the many2many field size argument to 
> '1', the widget acts as a readonly one. SAO version: 4.6.4

Please fill an issue.

-- 
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" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/20180612071402.GV518%40kei.


Re: [tryton-fr] TVA 2,1 % en Corse

2018-06-10 Thread Cédric Krier
On 2018-06-10 14:22, JC Michel wrote:
> Pour la vente de livres en Corse, le taux réduit s’applique.
> http://bofip.impots.gouv.fr/bofip/903-PGP.html
> 
> Il me semble qu’il n’y a pas de règle de TVA permettant de 
> substituer 2,1 à 5,5 lorsque le code postal du client est en Corse. 
> Comment ajouter cela au plan comptable ?

A priori, il faudrait un module supplémentaire comme
account_tax_rule_country mais pour les subdivisions.
Ou bien une règle de tax spécifique doit être appliquée aux tiers
concernés.

-- 
Cédric Krier - B2CK SPRL
Email/Jabber: cedric.kr...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

-- 
Vous recevez ce message, car vous êtes abonné au groupe Google Groupes 
tryton-fr.
Cette discussion peut être lue sur le Web à l'adresse 
https://groups.google.com/d/msgid/tryton-fr/20180610162513.GN518%40kei.


Re: [tryton-dev] How put date field on Calendar widget ?

2018-06-04 Thread Cédric Krier
On 2018-06-03 19:27, Oscar Alvarez wrote:
> It seems that calendar widget (tryton 4.4) does not accept date or time 
> fields,

For date, what is the problem?
For time, it is normal, time can not be put on a calendar.

-- 
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/20180604065014.GW4128%40kei.


Re: [tryton-dev] Debian link broken

2018-06-02 Thread Cédric Krier
On 2018-05-31 10:27, Luciano Rossi wrote:
> The url http://debian.tryton.org still is redirecting to the old entry 
> http://tryton.alioth.debian.org

The Tryton DNS only set an IP for debian.tryton.org. This is an IP that
Mathias provided. So I do not know if we should stop this DNS record and
manage the redirect ourself, or if the targeted machine can be updated
or if we should just drop this shortcut.

-- 
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/20180602081419.GS4128%40kei.


Re: [tryton-fr] Re: Connection du Client Mac Tryton aux serveurs SISalp

2018-05-30 Thread Cédric Krier
On 2018-05-30 12:17, Dominique Chabord wrote:
> Le 30 mai 2018 à 11:52, Cédric Krier  a écrit :
> 
> >
> > Là, je ne sais plus quoi proposer sans avoir accès au deux machines car
> > il faudrait analyser les packets échangé au niveau réseau.
> >
> 
> le proxy ou le serveur sur lequel tourne Trytond ?

Toutes mais je ne demandes pas l'accès. Je dis juste que sans je ne vois
pas ce qu'on peut proposer comme solution.

-- 
Cédric Krier - B2CK SPRL
Email/Jabber: cedric.kr...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

-- 
Vous recevez ce message, car vous êtes abonné au groupe Google Groupes 
tryton-fr.
Cette discussion peut être lue sur le Web à l'adresse 
https://groups.google.com/d/msgid/tryton-fr/20180530104335.GF4128%40kei.


Re: [tryton] woes installing

2018-05-30 Thread Cédric Krier
On 2018-05-29 23:53, Cato Nano wrote:
> installing Tryton again in a debian machine, I can' t finish the installation
> 
> $ trytond-admin -c ./trytond.conf -d tryton --all
> Traceback (most recent call last):
>   File "/usr/local/lib/python3.5/dist-packages/trytond/backend/__init__.py", 
> line 32, in get
> 'trytond.backend', db_type)
> ValueError: not enough values to unpack (expected 1, got 0)

You have configured an wrong backend.

> During handling of the above exception, another exception occurred:
> 
> Traceback (most recent call last):
>   File "/usr/local/bin/trytond-admin", line 21, in 
> admin.run(options)
>   File "/usr/local/lib/python3.5/dist-packages/trytond/admin.py", line 20, in 
> run
> Database = backend.get('Database')
>   File "/usr/local/lib/python3.5/dist-packages/trytond/backend/__init__.py", 
> line 34, in get
> raise exception
>   File "/usr/local/lib/python3.5/dist-packages/trytond/backend/__init__.py", 
> line 26, in get
> __import__(modname)
>   File 
> "/usr/local/lib/python3.5/dist-packages/trytond/backend/postgresql/__init__.py",
>  line 4, in 
> from .database import *
>   File 
> "/usr/local/lib/python3.5/dist-packages/trytond/backend/postgresql/database.py",
>  line 16, in 
> from psycopg2 import connect, Binary
> ImportError: No module named 'psycopg2'

psycopg2 is an optional dependencies only required if you use postgresql
backend.

> If I install psycopg2 by hand, I get
> 
> $ trytond-admin -c ./trytond.conf -d tryton --all
> Traceback (most recent call last):
>   File "/usr/local/bin/trytond-admin", line 21, in 
> admin.run(options)
>   File "/usr/local/lib/python3.5/dist-packages/trytond/admin.py", line 54, in 
> run
> installdeps=options.installdeps)
>   File "/usr/local/lib/python3.5/dist-packages/trytond/pool.py", line 160, in 
> init
> lang=lang, installdeps=installdeps)
>   File "/usr/local/lib/python3.5/dist-packages/trytond/modules/__init__.py", 
> line 467, in load_modules
> _load_modules(update)
>   File "/usr/local/lib/python3.5/dist-packages/trytond/modules/__init__.py", 
> line 437, in _load_modules
> load_module_graph(graph, pool, update, lang)
>   File "/usr/local/lib/python3.5/dist-packages/trytond/modules/__init__.py", 
> line 216, in load_module_graph
> code = get_parent_language(code)
>   File "/usr/local/lib/python3.5/dist-packages/trytond/ir/lang.py", line 499, 
> in get_parent_language
> cursor.execute(*lang.select(lang.code, lang.parent))
>   File 
> "/usr/local/lib/python3.5/dist-packages/trytond/backend/postgresql/database.py",
>  line 61, in execute
> cursor.execute(self, sql, args)
> psycopg2.ProgrammingError: column a.parent does not exist
> LINE 1: SELECT "a"."code", "a"."parent" FROM "ir_lang" AS "a"

Did you launch on an empty database? It seems the database was already
filled by a previous version.

-- 
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" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/20180530072738.GX4128%40kei.


Re: [tryton-fr] Re: tryton-sao

2018-05-29 Thread Cédric Krier
On 2018-05-29 09:09, Noureddine EL GHANI wrote:
> Le mardi 29 mai 2018 08:35:38 UTC+1, Camille a écrit :
> >
> > Bonjour,
> >
> > Je voudrais essayer le client web sao mais je ne trouve aucun module sur 
> > https://pypi.org/search/?q=sao=Framework+%3A%3A+Tryton
> >
> > Où est ce que je le trouve ?
> Menu Download site web tryton :
> 
> https://www.tryton.org/download.html

En fait, sao est une application en Javascript et donc on l'a publie en
plus sur le dépôt Javascript npm:

https://www.npmjs.com/package/tryton-sao

-- 
Cédric Krier - B2CK SPRL
Email/Jabber: cedric.kr...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

-- 
Vous recevez ce message, car vous êtes abonné au groupe Google Groupes 
tryton-fr.
Cette discussion peut être lue sur le Web à l'adresse 
https://groups.google.com/d/msgid/tryton-fr/20180529164949.GU4128%40kei.


Re: [tryton-fr] Re: Connection du Client Mac Tryton aux serveurs SISalp

2018-05-28 Thread Cédric Krier
On 2018-05-24 09:41, Pascal Gouhier wrote:
> voici le log en lançant le logiciel en ligne de commande
> 
> INFO:tryton.rpc:common.db.list()
> 
> INFO:tryton.rpc:common.server.version(None, None)
> 
> INFO:tryton.rpc:common.db.list()
> 
> INFO:tryton.rpc:common.server.version(None, None)
> 
> ERROR:tryton.rpc:

Il serait peut-être intéressant d'avoir plus d'information.
Il faudrait lancer avec l'option: -l DEBUG

-- 
Cédric Krier - B2CK SPRL
Email/Jabber: cedric.kr...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

-- 
Vous recevez ce message, car vous êtes abonné au groupe Google Groupes 
tryton-fr.
Cette discussion peut être lue sur le Web à l'adresse 
https://groups.google.com/d/msgid/tryton-fr/20180528210927.GL4128%40kei.


Re: [tryton-fr] Re: Connection du Client Mac Tryton aux serveurs SISalp

2018-05-26 Thread Cédric Krier
On 2018-05-25 13:22, Pascal Gouhier wrote:
> Si aucune connexion n'arrive au serveur, c'est logique puisque tout mon 
> problème vient du fait que le client dit qu'il est impossible de s'y 
> connecter.

Sauf qu'il y a bien un serveur qui répond avec un statut 400.

> Si c'est un problème de paramétrage, alors c'est que je n'ai pas les bonnes 
> informations, car ce sont celles que j'ai reçu par mail, qui fonctionnent 
> pour une connexion web.

Je pense qu'à ce point, il serait bien de montrer un screenshot des
paramètres utilisés pour la connexion.

-- 
Cédric Krier - B2CK SPRL
Email/Jabber: cedric.kr...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

-- 
Vous recevez ce message, car vous êtes abonné au groupe Google Groupes 
tryton-fr.
Cette discussion peut être lue sur le Web à l'adresse 
https://groups.google.com/d/msgid/tryton-fr/20180526083139.GU3926%40kei.


Re: [tryton-fr] netiquette

2018-05-26 Thread Cédric Krier
Bonjour,

On 2018-05-25 13:28, Pascal Gouhier wrote:
> je ne comprends pas ce message :
> 
> PS: Merci de suivre la netiquette et de ne pas top-poster 
> https://groups.tryton.org/netiquette 
> <https://www.google.com/url?q=https%3A%2F%2Fgroups.tryton.org%2Fnetiquette=D=1=AFQjCNG7q8njZIUOFcju15RYhNlFQkpI-Q>
> 
> qu'est ce que ça veut dire ???

Il y a de bonnes pratiques sur la communication dans une communauté qui
sont connues sous le nom « netiquette ». Le projet Tryton essaie de
pousser ses membres a la suivre car elles améliorent fortement la
communication.
Entre autre, il y a le top-posting qui est le fait de répondre au
dessus [1], ce qui est fortement découragé pour les mailing liste.
Il est préféré de répondre en dessous et de supprimer les parties
inutiles à la réponse afin de ne garder que l'essentiel.


[1] https://en.wikipedia.org/wiki/Posting_style#Top-posting

-- 
Cédric Krier - B2CK SPRL
Email/Jabber: cedric.kr...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

-- 
Vous recevez ce message, car vous êtes abonné au groupe Google Groupes 
tryton-fr.
Cette discussion peut être lue sur le Web à l'adresse 
https://groups.google.com/d/msgid/tryton-fr/20180526082844.GT3926%40kei.


Re: [tryton] Creating a module

2018-05-26 Thread Cédric Krier
On 2018-05-25 13:47, Carlos Gálvez wrote:
> To register a single module, you could use the argument -u instead of the
> -i argument, indefinitely if you will use trytond or trytond-admin.

The '-i' option has been removed for some times now. It has been merged
in the '-u' option.


PS: Please do not top-post on this mailing list and also avoid your
huge signature which has no meaning on mailing list, see
http://groups.tryton.org/netiquette
-- 
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" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/20180526081914.GS3926%40kei.


Re: [tryton-fr] Ergonomie

2018-05-25 Thread Cédric Krier
On 2018-05-25 13:47, Julien Fastré wrote:
> Le 25/05/18 à 13:13, Cédric Krier a écrit :
> > Normalement  c'est pour bouger sur la même ligne et  la
> > valider et passer à la suivante ou créer une nouvelle.
> 
> Ben justement, j'ai plutôt tendance à taper sur "enter" pour passer à la
> cellule suivante plutôt qu'à la ligne suivante.

Pourtant c'est bien la fonction de la touche  qui place le
curseur sur une nouvelle ligne [1]. D'ailleurs le dessin sur le touche
est assez explicite ;-).

> Et patatras, je dois
> reprendre la souris pour me remettre sur la ligne d'avant.

Tu peux aussi utiliser les flèches haut et base pour naviguer, ça évite
de toucher à la souris.
Et si la ligne créée est en trop, tu peux la supprimer avec .

> c'est encore plus fréquent après avoir choisi une suggestion de
> recherche (par exemple quand on tape les premières lettres du nom  du
> compte), j'ai tendance à taper sur Enter pour sélectionner,

C'est ce qui faut faire pour valider une sélection de la "completion"
(car ça valide la fenêtre popup).

> puis comme
> j'ai déjà le doigt dessus je tape encore sur enter et hop je suis plus
> sur la bonne ligne.

Et oui car ça valide maintenant le record.

D'ailleurs les tableurs fonctionnent  comme ça  horizontal et
 vertical.

> Quand je suis à la fin de la ligne, si je tape sur tab ça me remet au
> début, alors que je voudrais aller à la ligne suivante.

Idem,  ne valide pas le record, il ne fait que déplacer le curseur
sur tous les contrôleurs.

> Bref, perso, j'essaie de faire la même chose avec TAB et ENTER: passer à
> la cellule suivante, puis à la ligne suivante si je suis à la fin de la
> ligne.

Sauf qu'elles ont vraiment une fonctionnalité différente. Je pense qu'on
y perdrait en les fusionnant.

> Je crois qu'une grosse amélioration serait qu'utiliser TAB dans la
> dernière cellule fasse passer à la ligne suivante, plutôt qu'au début.
> Je n'utiliserai que TAB.

Je suis pas complètement sûr car dans ce cas l'utilisateur doit savoir
qu'il est sur la dernière colonne. Et en plus ça rendrait le  comme
touche qui valide mais uniquement dans les listes éditables. C'est
toujours préférable d'avoir un comportement identique dans tous les cas
d'usage.

> Dans les suggestions de recherche, quand je choisis un élément qui est
> proposé puis que je clique sur enter (ou sur tab) ça m'ouvre le
> formulaire de recherche alors que je voulais juste sélectionner l'élément.

Je pense que c'est hérité du comportement par défaut de GTK+
En fait, il faut utiliser la flèche vers le bas pour sélectionner
l'entrée voulue. Après s'il y en a qu'un  ou  le
sélectionnera car en quittant la cellule, une recherche est faite avec
l'input et si un seul résultat est trouvé, il est utilisé.

> >> Et je trouve que le bouton
> >> "supprimer une ligne" devrait être changé.
> > 
> > Est-ce que tu parle du bouton du One2Many ou bien du formulaire ?
> > 
> 
> dans celui des On2Many, celui-ci:
> https://framapic.org/gVu9sPUMQ6q1/CZDRAgTKVs5z.png

Si c'est le dessin qui n'est pas parlant. Il y a une proposition de
changer de thème [2]

[1] https://en.wikipedia.org/wiki/Enter_key
[2] https://discuss.tryton.org/t/new-theme-icon-for-tryton/507
-- 
Cédric Krier - B2CK SPRL
Email/Jabber: cedric.kr...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

-- 
Vous recevez ce message, car vous êtes abonné au groupe Google Groupes 
tryton-fr.
Cette discussion peut être lue sur le Web à l'adresse 
https://groups.google.com/d/msgid/tryton-fr/20180525131142.GM3926%40kei.


Re: [tryton-dev] PEP-0008 Dunder names

2018-05-25 Thread Cédric Krier
On 2018-05-24 19:27, Vincent Bastos wrote:
> Just wondering why Tryton does not follow one of the points in PEP-0008[1]?

Probably because our linter flake8 does not enforce it.

-- 
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/20180525071235.GA3926%40kei.


Re: [tryton-fr] Re: Connection du Client Mac Tryton aux serveurs SISalp

2018-05-25 Thread Cédric Krier
On 2018-05-24 21:49, Pascal Gouhier wrote:
> Je n’ai pas de proxy; quand à l’interface d’administration, elle ne
> détecte aucune connexion (peut être est ce du au fait que quand je me
> connecte je suis en mode démonstration pour une raison que j’ignore).

Qu'entendez—vous par « mode démonstration » ?

> Par ailleurs, si j’avais un problème de connexion, je suppose que je
> ne pourrrais pas me connecter aux serveurs demo au même moment.

Et bien les paramètres de connexion pourraient être incorrecte par
exemple.

-- 
Cédric Krier - B2CK SPRL
Email/Jabber: cedric.kr...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

-- 
Vous recevez ce message, car vous êtes abonné au groupe Google Groupes 
tryton-fr.
Cette discussion peut être lue sur le Web à l'adresse 
https://groups.google.com/d/msgid/tryton-fr/20180525070923.GZ3926%40kei.


Re: [tryton-fr] Re: Connection du Client Mac Tryton aux serveurs SISalp

2018-05-24 Thread Cédric Krier
On 2018-05-24 21:31, Dominique Chabord wrote:
> Le 24 mai 2018 à 21:07, Cédric Krier <cedric.kr...@b2ck.com> a écrit :
> 
> > Il faudrait voir les logs du serveur pour voir pourquoi il refuse la
> > requête et si celle-ci arrive bien au serveur Tryton et pas sur un autre
> > service.
> 
> 
> Le log du serveur est dispo depuis le panneau d'administration.
> Sinon avec l'heure de la tentative, je peux regarder.
> S'il n'y a rien sur le serveur, est-ce que ça peut être une erreur sur
> le proxy ?

S'il n'y a rien sur le serveur Tryton, c'est que la requête n'y arrive
pas. Donc le problème doit être en amont.

-- 
Cédric Krier - B2CK SPRL
Email/Jabber: cedric.kr...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

-- 
Vous recevez ce message, car vous êtes abonné au groupe Google Groupes 
tryton-fr.
Cette discussion peut être lue sur le Web à l'adresse 
https://groups.google.com/d/msgid/tryton-fr/20180524202008.GV3926%40kei.


[tryton-dev] Debian link broken

2018-05-24 Thread Cédric Krier
Hi,

The Debian link https://tryton.alioth.debian.org/ on
http://www.tryton.org/download.html does not return any more useful
information.
Does anyone know what is happening?

-- 
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/20180524112634.GN3926%40kei.


Re: [tryton] Generate Tax Authorities Files

2018-05-22 Thread Cédric Krier
On 2018-05-22 15:59, Sergi Almacellas Abellana wrote:
> Some Tax Authorities may accept the formation in a file format (or a
> webservice) which can be generated from tryton. For example for the
> Spanish Chart of accounts we can generate three different models for the
> tax authorities.
> 
> I'm wondering if other countries tax authorities also allow to report
> tax by using a file or other digital format. If hey allow it: how are
> you managing this files now?

There is an XML base format in Belgium but we do not have yet an
implementation.

> For example in Spain we have separate modules to generate them but I
> think that they should be probably part of the standard chart of
> accounts module.

I think each account_ modules should just register the file as
a report on tax codes.
And if there are services to automate, I think there will be almost
nothing in common. So it may be in the module or in another module if
it requires too much code.

-- 
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" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/20180522155157.GR27454%40kei.


Re: [tryton-dev] Updating form_relate title

2018-05-22 Thread Cédric Krier
On 2018-05-22 06:40, Maxime Richez wrote:
> Hi, 
> 
> In some form_relate, i would add specific informations in the title 
> (default_uom for instance). The suggestion is to update rec_name which is 
> displayed after the form_relate action name in the title. But,  i don't want 
> this rec_name in all my forms... 
> So another suggestion is to update this rec_name following the context...
> Indeed, but how? It seems context used by form_relate to get_rec_name with 
> RPCExecute use a default context that can't be updated 
> 
> Here's the context used when getting rec_name with RPCExecute:
> 
> {"params":[[1],["rec_name"],{"language":"en","employee.rec_name":"Maxime 
> Richez","locale":{"date":"%m/%d/%Y","thousands_sep":",","grouping":[3,3,0],"decimal_point":"."},"language_direction":"ltr","company.rec_name":"Saluc","groups":[5,6,18,1,15,2,3,4,11,10,12,14,13,16,17,8,7,9],"employee":1,"company":1}],"id":36,"method":"model.product.product.read"}
> 
> Context manually added in ir.action.act_window (XML) is in the context after 
> the get_rec_name call when displaying the form.
> 
> Could we have some more details in the default context like "origin_action"? 
> Or updating ir.action to pass context here :
> http://hg.tryton.org/tryton/file/default/tryton/action/main.py#l91

I think the RPC call to get the rec_name should use the action_ctx.

-- 
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/20180522135246.GQ27454%40kei.


Re: [tryton-fr] liste vs discuss

2018-05-21 Thread Cédric Krier
On 2018-05-21 07:06, remy dev wrote:
> Je ne comprends pas trop la différence entre les messages ici, le forum la 
> liste de discussion, je me dis que ça fait beaucoup de lieux différents.

En fait, la liste de diffusion est le medium historique, on a mis en
place discourse il y a seulement 2 ans. Pour l'instant on a pas de
solution qui permettrait aux non anglophone de participer.

Du coup, j'ai fait quelques recherches et fait une proposition:
https://discuss.tryton.org/t/make-this-site-more-multi-language-friendly/558

-- 
Cédric Krier - B2CK SPRL
Email/Jabber: cedric.kr...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

-- 
Vous recevez ce message, car vous êtes abonné au groupe Google Groupes 
tryton-fr.
Cette discussion peut être lue sur le Web à l'adresse 
https://groups.google.com/d/msgid/tryton-fr/20180521161230.GE27454%40kei.


Re: [tryton-fr] Erreur lancement tryton 4.8

2018-05-21 Thread Cédric Krier
On 2018-05-21 07:06, remy dev wrote:
> Mon fichier trytond.conf :
> 
> [database]
> uri = sqlite:///home/trytonsys/tryton_db.sqlite
> #path: folder path to where your sqlite file is stored
> path = /home/trytonsys/
> listen = 0.0.0.0:8001 #accès a distance pour application lourd

Caractère non-ascii

> [web]
> root = /home/trytonsys/sao
> hostname = trytonMachine
> listen = 0.0.0.0:8000
> 
> 
> Lancement de tryton : 
> 
> (tryton) root@tryton-debian:~# trytond -c /home/trytonsys/trytond.conf 
> Traceback (most recent call last):
>   File "/usr/local/bin/trytond", line 21, in 
> config.update_etc(options.configfile)
>   File "/usr/local/lib/python3.5/dist-packages/trytond/config.py", line 84, 
> in update_etc
> read_files = self.read(configfile)
>   File "/usr/lib/python3.5/configparser.py", line 696, in read
> self._read(fp, filename)
>   File "/usr/lib/python3.5/configparser.py", line 1012, in _read
> for lineno, line in enumerate(fp, start=1):
>   File "/usr/lib/python3.5/encodings/ascii.py", line 26, in decode
> return codecs.ascii_decode(input, self.errors)[0]
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 164: 
> ordinal not in range(128)

Le fichier de configuration doit être encodé dans la locale du système
qui semble être ascii ici.

Voir la valeur par défaut de 'encoding' sur
https://docs.python.org/3.6/library/functions.html#open


-- 
Cédric Krier - B2CK SPRL
Email/Jabber: cedric.kr...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

-- 
Vous recevez ce message, car vous êtes abonné au groupe Google Groupes 
tryton-fr.
Cette discussion peut être lue sur le Web à l'adresse 
https://groups.google.com/d/msgid/tryton-fr/20180521150023.GD27454%40kei.


Re: [tryton-fr] traduction des rapports en français

2018-05-19 Thread Cédric Krier
On 2018-05-19 13:17, JC Michel wrote:
> On 18 May 2018, at 14:49, Cédric Krier wrote:
> > On 2018-05-18 14:09, JC Michel wrote:
> >> On 17 May 2018, at 12:06, Dominique Chabord wrote:
> >>> Le 17 mai 2018 à 11:54, JC Michel <lists.jc.mic...@symetrie.com> a
> >>> écrit :
> > Les factures sont dans la langue du client. Et si celle-ci n'a pas de
> > langue définie alors c'est la langue par défaut du système qui est 
> > prise
> > (voir ir.configuration et
> > http://doc.tryton.org/4.8/trytond/doc/topics/configuration.html#language).
> 
> J’ai pourtant bien
> [database]
> language = fr
> dans ma config

En effet dans le rapport le code est:

set_lang(invoice.party.lang.code or 'en')

Il devrait utiliser la langue de configuration par défaut.
https://bugs.tryton.org/issue7449

> > Par contre, je ne pense pas que ce soit correcte de dire que toutes 
> > les
> > factures émises par une société française doivent être en 
> > français.
> >
> > «En revanche, l'obligation d'employer le français ne s'applique pas 
> > aux
> > documents (factures par exemple) échangés par les professionnels,
> > personnes de droit privé françaises et étrangères qui ne sont pas
> > consommateurs ou utilisateurs finals des biens, produits et 
> > services.»
> > Ref: 
> > https://www.economie.gouv.fr/dgccrf/Publications/Vie-pratique/Fiches-pratiques/emploi-langue-francaise
> 
> ok pour les pros ; une facture à un particulier devrait donc être dans 
> la langue de la société et non du client.
> Pour bien faire il faudrait, suivant les produits, savoir si le 
> professionnel est utilisateur direct ou revendeur…

Je ne pense pas qu'il faille prendre la cas particulier de la France
comme exemple pour modéliser le comportement par défaut.
Il me parait tout à fait logique d'utiliser toujours la langue du
client.
De plus, il suffit de définir la langue des tiers par défaut pour éviter
les erreurs.

-- 
Cédric Krier - B2CK SPRL
Email/Jabber: cedric.kr...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

-- 
Vous recevez ce message, car vous êtes abonné au groupe Google Groupes 
tryton-fr.
Cette discussion peut être lue sur le Web à l'adresse 
https://groups.google.com/d/msgid/tryton-fr/20180519113711.GC3927%40kei.


Re: [tryton-dev] Replace doc.tryton.org by readthedocs

2018-05-18 Thread Cédric Krier
On 2018-05-19 02:37, Cédric Krier wrote:
> Hi,
> 
> Today we talked on IRC about the documentation [1] and that there are
> many places where documentation can be found.
> One place is the readthedocs [2][3] and another place is doc.tryton.org
> The readthedocs was an attempt to automate the publication but it was
> never finished.
> I made some tests and here is my proposal to merge both:
> 
> I create a repository which contains a single index.rst [4], the idea is
> to have this repository as the main project on rtfd. As you can see it
> lists all the documentation using sub-projects [5] which allow to share
> index. Also we could manage the index.rst file per branches so we could
> have the documentation per series.
> We could also set a custom domain [6] as 'doc.tryton.org'
> 
> I think it will be a good improvement to have automate documentation
> build on such platform.
> 
> What do you think?

For the record, this could only be done once this PR is merged and
running on rtfd: https://github.com/rtfd/readthedocs.org/pull/4114

-- 
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/20180519004545.GY3927%40kei.


[tryton-dev] Replace doc.tryton.org by readthedocs

2018-05-18 Thread Cédric Krier
Hi,

Today we talked on IRC about the documentation [1] and that there are
many places where documentation can be found.
One place is the readthedocs [2][3] and another place is doc.tryton.org
The readthedocs was an attempt to automate the publication but it was
never finished.
I made some tests and here is my proposal to merge both:

I create a repository which contains a single index.rst [4], the idea is
to have this repository as the main project on rtfd. As you can see it
lists all the documentation using sub-projects [5] which allow to share
index. Also we could manage the index.rst file per branches so we could
have the documentation per series.
We could also set a custom domain [6] as 'doc.tryton.org'

I think it will be a good improvement to have automate documentation
build on such platform.

What do you think?


[1] http://www.tryton.org/~irclog/2018-05-18.log.html#t11:05
[2] https://trytond.readthedocs.io/en/latest/
[3] https://tryton.readthedocs.io/en/latest/
[4] http://hg.tryton.org/readthedocs/
[5] https://docs.readthedocs.io/en/latest/subprojects.html
[6] https://docs.readthedocs.io/en/latest/alternate_domains.html
-- 
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/20180519003717.GX3927%40kei.


Re: [tryton] Conditionally present tab in spreadsheet report?

2018-05-18 Thread Cédric Krier
On 2018-05-18 13:06, Jon Levy wrote:
> Is it possible to conditionally include (or not) a tab in a spreadsheet 
> report?  If not, it is possible to conditionally hide or show a tab?

It should be a question for relatorio ML.
I do not think it is possible to do it from the LibreOffice UI but I
guess manual py:if could be added on the table tag. It should be easy to
do with flat file (but it would avoid any further edition).

-- 
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" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/20180518224958.GW3927%40kei.


  1   2   3   4   5   6   7   8   9   10   >