[tryton-dev] Impossible to install a custom module which inherit from other custom module

2018-09-04 Thread Richmond Fiko
Hello,

I create a custom module which inherit from some others custom modules. 
I follow all steps and I mark the parent modules inside tryton.cfg file
inside "depends:" part.
When I install module with command "pip install /link_to_module/", it seems 
that tryton try to download the parent modules and throw me an error:

Exception:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
  File "/usr/lib/python3/dist-packages/pip/commands/install.py", line 353, in 
run
wb.build(autobuilding=True)
  File "/usr/lib/python3/dist-packages/pip/wheel.py", line 749, in build
self.requirement_set.prepare_files(self.finder)
  File "/usr/lib/python3/dist-packages/pip/req/req_set.py", line 380, in 
prepare_files
ignore_dependencies=self.ignore_dependencies))
  File "/usr/lib/python3/dist-packages/pip/req/req_set.py", line 554, in 
_prepare_file
require_hashes
  File "/usr/lib/python3/dist-packages/pip/req/req_install.py", line 278, in 
populate_link
self.link = finder.find_requirement(self, upgrade)
  File "/usr/lib/python3/dist-packages/pip/index.py", line 465, in 
find_requirement
all_candidates = self.find_all_candidates(req.name)
  File "/usr/lib/python3/dist-packages/pip/index.py", line 423, in 
find_all_candidates
for page in self._get_pages(url_locations, project_name):
  File "/usr/lib/python3/dist-packages/pip/index.py", line 568, in _get_pages
page = self._get_page(location)
  File "/usr/lib/python3/dist-packages/pip/index.py", line 683, in _get_page
return HTMLPage.get_page(link, session=self.session)
  File "/usr/lib/python3/dist-packages/pip/index.py", line 795, in get_page
resp.raise_for_status()
  File 
"/usr/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/models.py",
 line 893, in raise_for_status
raise HTTPError(http_error_msg, response=self)
pip._vendor.requests.exceptions.HTTPError: 404 Client Error: Not Found for url: 
https://pypi.org/simple/trytond-name-of-parent-custom-modules/

I don't understand...

-- 
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/575e30c2-e340-44d8-b31a-85bf219d128e%40googlegroups.com.


[tryton-dev] Re: Gnu health filestore

2018-04-22 Thread Richmond Fiko
Hello,

You can configure filestore inside trytond conf file 
with the parameter

[database]
path = /home/gnuhealth/attach



Le dimanche 22 avril 2018 20:40:06 UTC, tidian...@gmail.com a écrit :
> Where can I find the gnuhealth filestore. I need that to find a database
>  
> Sent from my Windows 10 phone
>  

-- 
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/aaeaf042-c9f4-4ff1-b3c5-b8154b7a50e7%40googlegroups.com.


[tryton-dev] Mobile Apps

2018-04-20 Thread Richmond Fiko
Hello,

I thinks about a mobile apps in order to transfert information 
from mobile user to a tryton (or GNU Health server).
Are there similar opensource projects or examples? 
How can I connect to tryton server throught web services or API?

-- 
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/63f751ce-0b04-43d6-815b-40598a581482%40googlegroups.com.


Re: [tryton-dev] Error on creation of Chart of account from Template

2018-04-20 Thread Richmond Fiko
The COA is for West africa SYSCOHADA

Le vendredi 20 avril 2018 08:49:27 UTC, Sergi Almacellas Abellana a écrit :
> El 19/04/18 a les 23:56, Richmond Fiko ha escrit:
> > Hello,
> > 
> > I create a COA template.
> 
> Just for curiosity, for which country is the CoA?
> 
> > I install it but when I want to create a new chart of account from this 
> > template, I got this error.
> > 
> > Traceback (most recent call last):
> >   File "/trytond/wsgi.py", line 47, 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 39, in auth_required
> > return wrapped(*args, **kwargs)
> >   File "/trytond/protocols/wrappers.py", line 106, in wrapper
> > return func(request, pool, *args, **kwargs)
> >   File "/trytond/protocols/dispatcher.py", line 163, in _dispatch
> > result = rpc.result(meth(*c_args, **c_kwargs))
> >   File "/trytond/wizard/wizard.py", line 287, in execute
> > return wizard._execute(state_name)
> >   File "/trytond/wizard/wizard.py", line 318, in _execute
> > result = self._execute(transition())
> >   File "/trytond/modules/account/account.py", line 1923, in 
> > transition_create_account
> > template2type=template2type)
> >   File "/trytond/modules/account/account.py", line 117, in create_type
> > assert self.parent is None
> > AssertionError
> > 
> > 
> > Can someone help me to understand it?
> 
> The type you used on the root account of your CoA has a parent set. As
> it's the type of the root account is should not have any parent set.
> 
> Hope it helps.
> 
> -- 
> Sergi Almacellas Abellana
> www.koolpi.com
> Twitter: @pokoli_srk

-- 
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/4e3be001-759c-4160-9706-5b3289d054f3%40googlegroups.com.


[tryton-dev] Error on creation of Chart of account from Template

2018-04-20 Thread Richmond Fiko
Hello,

I create a COA template.
I install it but when I want to create a new chart of account from this 
template, I got this error.

Traceback (most recent call last):
  File "/trytond/wsgi.py", line 47, 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 39, in auth_required
return wrapped(*args, **kwargs)
  File "/trytond/protocols/wrappers.py", line 106, in wrapper
return func(request, pool, *args, **kwargs)
  File "/trytond/protocols/dispatcher.py", line 163, in _dispatch
result = rpc.result(meth(*c_args, **c_kwargs))
  File "/trytond/wizard/wizard.py", line 287, in execute
return wizard._execute(state_name)
  File "/trytond/wizard/wizard.py", line 318, in _execute
result = self._execute(transition())
  File "/trytond/modules/account/account.py", line 1923, in 
transition_create_account
template2type=template2type)
  File "/trytond/modules/account/account.py", line 117, in create_type
assert self.parent is None
AssertionError


Can someone help me to understand it?

-- 
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/ef2b061b-f65d-4c37-8104-d6f3379c77a6%40googlegroups.com.


[tryton-dev] Error on tax in Chart of account localisation

2018-04-12 Thread Richmond Fiko
Hello, 

I try to make a localisation for West africa COA but I have this error on taxes.


1576 139907134330624 [2018-04-12 17:57:32,659] INFO trytond.modules 
syscohada_2018:loading account.xml
1576 139907134330624 [2018-04-12 17:57:56,624] INFO trytond.modules 
syscohada_2018:loading tax.xml
1576 139907134330624 [2018-04-12 17:57:57,349] ERROR trytond.convert Error 
while parsing xml file:
In tag record: model account.tax.template with id vat_tax_4.
Traceback (most recent call last):
  File 
"/home/gnuhealth/gnuhealth/tryton/server/trytond-4.2.10/trytond/convert.py", 
line 447, in parse_xmlstream
self.sax_parser.parse(source)
  File "/usr/lib/python3.5/xml/sax/expatreader.py", line 110, in parse
xmlreader.IncrementalParser.parse(self, source)
  File "/usr/lib/python3.5/xml/sax/xmlreader.py", line 125, in parse
self.feed(buffer)
  File "/usr/lib/python3.5/xml/sax/expatreader.py", line 210, in feed
self._parser.Parse(data, isFinal)
  File "../Modules/pyexpat.c", line 468, in EndElement
  File "/usr/lib/python3.5/xml/sax/expatreader.py", line 325, in end_element
self._cont_handler.endElement(name)
  File 
"/home/gnuhealth/gnuhealth/tryton/server/trytond-4.2.10/trytond/convert.py", 
line 507, in endElement
self.taghandler = self.taghandler.endElement(name)
  File 
"/home/gnuhealth/gnuhealth/tryton/server/trytond-4.2.10/trytond/convert.py", 
line 289, in endElement
self.model.__name__, self.values, self.xml_id)
  File 
"/home/gnuhealth/gnuhealth/tryton/server/trytond-4.2.10/trytond/convert.py", 
line 693, in import_record
self.create_records(model, [values], [fs_id])
  File 
"/home/gnuhealth/gnuhealth/tryton/server/trytond-4.2.10/trytond/convert.py", 
line 699, in create_records
records = Model.create(vlist)
  File 
"/home/gnuhealth/gnuhealth/tryton/server/trytond-4.2.10/trytond/model/modelsql.py",
 line 533, in create
insert_values.append(field.sql_format(value))
  File 
"/home/gnuhealth/gnuhealth/tryton/server/trytond-4.2.10/trytond/model/fields/numeric.py",
 line 32, in sql_format
assert isinstance(value, Decimal)
AssertionError
Traceback (most recent call last):
  File 
"/home/gnuhealth/gnuhealth/tryton/server/trytond-4.2.10/bin/trytond-admin", 
line 21, in 
admin.run(options)
  File 
"/home/gnuhealth/gnuhealth/tryton/server/trytond-4.2.10/trytond/admin.py", line 
53, in run
pool.init(update=options.update, lang=list(lang))
  File 
"/home/gnuhealth/gnuhealth/tryton/server/trytond-4.2.10/trytond/pool.py", line 
153, in init
lang=lang)
  File 
"/home/gnuhealth/gnuhealth/tryton/server/trytond-4.2.10/trytond/modules/__init__.py",
 line 453, in load_modules
_load_modules()
  File 
"/home/gnuhealth/gnuhealth/tryton/server/trytond-4.2.10/trytond/modules/__init__.py",
 line 422, in _load_modules
load_module_graph(graph, pool, update, lang)
  File 
"/home/gnuhealth/gnuhealth/tryton/server/trytond-4.2.10/trytond/modules/__init__.py",
 line 259, in load_module_graph
tryton_parser.parse_xmlstream(fp)
  File 
"/home/gnuhealth/gnuhealth/tryton/server/trytond-4.2.10/trytond/convert.py", 
line 447, in parse_xmlstream
self.sax_parser.parse(source)
  File "/usr/lib/python3.5/xml/sax/expatreader.py", line 110, in parse
xmlreader.IncrementalParser.parse(self, source)
  File "/usr/lib/python3.5/xml/sax/xmlreader.py", line 125, in parse
self.feed(buffer)
  File "/usr/lib/python3.5/xml/sax/expatreader.py", line 210, in feed
self._parser.Parse(data, isFinal)
  File "../Modules/pyexpat.c", line 468, in EndElement
  File "/usr/lib/python3.5/xml/sax/expatreader.py", line 325, in end_element
self._cont_handler.endElement(name)
  File 
"/home/gnuhealth/gnuhealth/tryton/server/trytond-4.2.10/trytond/convert.py", 
line 507, in endElement
self.taghandler = self.taghandler.endElement(name)
  File 
"/home/gnuhealth/gnuhealth/tryton/server/trytond-4.2.10/trytond/convert.py", 
line 289, in endElement
self.model.__name__, self.values, self.xml_id)
  File 
"/home/gnuhealth/gnuhealth/tryton/server/trytond-4.2.10/trytond/convert.py", 
line 693, in import_record
self.create_records(model, [values], [fs_id])
  File 
"/home/gnuhealth/gnuhealth/tryton/server/trytond-4.2.10/trytond/convert.py", 
line 699, in create_records
records = Model.create(vlist)
  File 
"/home/gnuhealth/gnuhealth/tryton/server/trytond-4.2.10/trytond/model/modelsql.py",
 line 533, in create
insert_values.append(field.sql_format(value))
  File 
"/home/gnuhealth/gnuhealth/tryton/server/trytond-4.2.10/trytond/model/fields/numeric.py",
 line 32, in sql_format
assert isinstance(value, Decimal)
AssertionError


The record


TVA 18% récupérable sur achat
TVA 18% (Achats)


percentage




1
1


-1
-1


It seems that the problem is on the field rate. But I don't understand tu error 
and