Re: [tryton] VAT listing
On Thu, Aug 17, 2017 at 10:51 PM, Cédric Krierwrote: > On 2017-08-17 22:31, Sasa Ostrouska wrote: > > On Thu, Aug 17, 2017 at 2:32 PM, Cédric Krier > wrote: > > > > > On 2017-08-04 10:37, Cédric Krier wrote: > > > > Hi, > > > > > > > > In Belgium, we have to generate two listing related to the VAT. > > > > The first one is a list of all parties with locale VAT number which > were > > > > invoiced during the previous year (civil year). It must include the > sum > > > > without taxes of the invoiced amount and the sum of the taxes. > > > > The second is a list of the all parties with EU VAT number (but not > > > > locale) with the sum of invoiced amount (without taxes but the rate > is > > > > 0%) and a tax code (L, T or S) depending of the operation (service, > > > > goods, triangular goods). > > > > > > > > See in french: > > > > > > > > https://finances.belgium.be/sites/default/files/downloads/ > > > 165-725-formulaire-2016.pdf > > > > https://finances.belgium.be/fr/entreprises/tva/ > > > declaration/liste_annuelle_clients_assujettis > > > > https://finances.belgium.be/sites/default/files/downloads/ > > > 165-723-formulaire-2016.pdf > > > > https://finances.belgium.be/sites/default/files/downloads/ > > > 165-723-directives-2016.pdf > > > > > > > > I would like to know if this is general for all EU countries, if the > > > > reports are similar. If so, I will make a proposal for a account_eu > > > > module. > > > > > > It will be good to here from Germany, Netherlands and Italy (maybe > > > England). > > > > > > > I dont know exactly is this is the same as the intrastat declaration. > > I'm not talking about intrastat which is about goods only. > But I just saw on [1] that Italy and France, they collect with the > Intrastat the EC sales lists. > > [1] https://en.wikipedia.org/wiki/Intrastat > > As said, I do not have the perfect understanding of the listings you linked in the first email as they are in French. The first think I connect up by similarity was the intrastat declaration which have a very similar form and we have to declare it. I am not sure if it is used for services too, but I am sure there is no other lists we supply in Italy except the Customers and Suppliers list where we have to supply all the customers and suppliers list to the tax department, and there is their VAT number also. But as far as I know this is something declared with the UNICO model of declaration. Anyway maybe somebody else more in the accounting business from Italy can tell you this more in detail. Rgds Saxa -- 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/CALFERdxb8bjx76RGb5-CZ2cpOWCNCOC3UGX98yHsY6fkwsF0Qg%40mail.gmail.com.
Re: [tryton] Problem saving registers on workflow form
Hi Francisco 2017-08-17 2:01 GMT-03:00 Francisco Maria Moyano Casco < moyanocasco.francis...@gmail.com>: > Hi, > I'm using tryton 3.8. I'm trying to make a workflow that goes from > draft state to request state. I defined the transitions, updates, and > buttons: > > @classmethod > def __setup__(cls): >super(myClass, cls).__setup__() >cls._transitions |= set(( > ('draft','request'), > )) > >cls._buttons.update({ > 'draft': { > 'invisible': Eval('state').in_(['request']), > }, > 'request': { > 'invisible': Eval('state').in_(['draft']), > }, > }) > > @classmethod > @ModelView.button > @Workflow.transition('request') > def draft(cls, myRequests): > I think you have defined wrong the transition decorator or the method name... For the request button should be something like: @Workflow.transition('request') def request(cls, myRequests): (You have mixed transition request and method draft in your code... ) Regards Sebastián Marró -- 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/CAE_jc%2B_wKfBUHNDPXtg2HDzEpRFuQebB2poYBBpxQdBjS%2Bad2g%40mail.gmail.com.
Re: [tryton] Problem saving registers on workflow form
El jueves, 17 de agosto de 2017, 4:06:09 (UTC-3), Francisco Maria Moyano Casco escribió: > El jueves, 17 de agosto de 2017, 4:00:06 (UTC-3), Cédric Krier escribió: > > On 2017-08-16 22:01, Francisco Maria Moyano Casco wrote: > > > Hi, > > > I'm using tryton 3.8. I'm trying to make a workflow that goes from > > > draft state to request state. I defined the transitions, updates, and > > > buttons: > > > > > > @classmethod > > > def __setup__(cls): > > >super(myClass, cls).__setup__() > > >cls._transitions |= set(( > > > ('draft','request'), > > > )) > > > > > >cls._buttons.update({ > > > 'draft': { > > > 'invisible': Eval('state').in_(['request']), > > > }, > > > 'request': { > > > 'invisible': Eval('state').in_(['draft']), > > > }, > > > }) > > > > > > @classmethod > > > @ModelView.button > > > @Workflow.transition('request') > > > def draft(cls, myRequests): > > > .. > > > cls.write(myRequests,{ > > > 'request_date': datetime.now(), > > > }) > > > > > > > > > The thing is, that I had defined two pair of views for the same model. > > > On both pair when I clicked on the draft button, doesn't save the > > > register. Only does what it has to do (put the datetime.now() on > > > request_date field). > > > When I wanted to close the form, one of the form only close after confirm > > > the a save message. > > > On the other form, it doesn't close. Ask me over and over again to save > > > the register. > > > > > > When I comment the line cls.write(), acts normally, but doesn't do > > > what I want it to do. > > > > > > Is 'request_date' a Date field? Or is it a DateTime? > > If it is a Date, you must use date.today() instead of datetime.now() > > (and even better to use Pool().get('ir.date').today()) > > It is a DateTime. But the issue is not there. If I use another field, say a > Char, it acts like I just described. I try using intermediate functions to do cls.write(...), but the problem isn,t gone. Always ask me to save register in a weird behaviour. Even remove the @Workflow.transition() decorator -- 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/11a7f489-11df-44b6-a8f2-1a2b56ba8900%40googlegroups.com.
Re: [tryton-dev] Comparison support for Pyson Date tipes
El viernes, 18 de agosto de 2017, 9:32:32 (UTC+2), Sergi Almacellas Abellana escribió: > El 18/08/17 a les 08:08, Juan Ramon Alfaro Martinez ha escrit: > > Hello. > > Hi, > > I have need to campare a Date in pyson and I have modified pyson.py in > > trytond to support it, if someone wants to push upstream this is the patch. > > There is an issue to add support to them: > > https://bugs.tryton.org/issue4879 > > So feel free to join the issue to discuss about it. > > -- > Sergi Almacellas Abellana > www.koolpi.com > Twitter: @pokoli_srk Ok. Two years open, I have not seen it but is a long time without updates -- 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/b46b438e-7c03-4606-bd90-8cfb49310583%40googlegroups.com.
Re: [tryton] Get reviews on Capterra
On 2017-01-30 11:30, Cédric Krier wrote: > Hi, few months ago, the Foundation has created a profile for Tryton on > Capterra. It will be great if we could have some reviews from users to > help promoting the project. > > http://www.capterra.com/enterprise-resource-planning-software/reviews/146240/Tryton/Tryton%20Foundation/new?utm_source=vp_medium=none_campaign=vendor_request Just a reminder that we need more reviews on those sites. 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/20170818074503.GI3705%40kei.
Re: [tryton] Get reviews on CrowdReviews
On 2017-01-30 12:51, Cédric Krier wrote: > Hi, > > Tryton has a page on crowdreviews since sometimes now but we have no > reviews. It will help the ranting of Tryton to have some. > > https://www.crowdreviews.com/tryton#submit-review-form We still have no reviews. It does not make Tryton looks great. -- 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/20170818074557.GJ3705%40kei.
Re: [tryton-dev] Comparison support for Pyson Date tipes
El 18/08/17 a les 08:08, Juan Ramon Alfaro Martinez ha escrit: Hello. Hi, I have need to campare a Date in pyson and I have modified pyson.py in trytond to support it, if someone wants to push upstream this is the patch. There is an issue to add support to them: https://bugs.tryton.org/issue4879 So feel free to join the issue to discuss about it. -- 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/b6c685cf-2cd8-9184-9e80-b997adcc83aa%40koolpi.com.
[tryton-es] Re: GNU Health - Nuevo Caso de Implementacion Mexico
Hola: Espero te ayude estos docs GNU Health - DEBS (1).pdf Description: Adobe PDF document Tryton from PIP Debian 8.pdf Description: Adobe PDF document
[tryton-es] Re: Instalar Tryton 4.0
> > Hola a Todos: > He estado jugando un poco con Tryton (me interesa GNU Health) y elabore esta guia. La comparto y espero les sea util ## Desactivamos el IPV6 sudo nano /etc/sysctl.conf net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.default.disable_ipv6 = 1 net.ipv6.conf.lo.disable_ipv6 = 1 net.ipv6.conf.eth0.disable_ipv6 = 1 sudo nano /etc/default/grub GRUB_CMDLINE_LINUX="ipv6.disable=1" # Actualizamos JESSIE sudo apt-get -y update && sudo apt-get -y dist-upgrade # Instalamos modulos basicos sudo apt-get install -y build-essential python-dev python-pip \ libxml2-dev libxslt1-dev libldap2-dev libsasl2-dev zlib1g-dev libjpeg-dev \ postgresql postgresql-server-dev-all postfix # Instalamos Soporte Postgresl y Tryton sudo pip install --upgrade pip setuptools wheel psycopg2 sudo pip install --upgrade "trytond-stock-lot >=3.8,<3.9" ## Creamos el usuario tryton sin privilegios sudo adduser --quiet --system --group --no-create-home --disabled-password tryton # Creamos el usuario tryton en PostgreSQL sudo -u postgres createuser --createdb --no-createrole --no-superuser tryton sudo nano /etc/postgresql/9.4/main/pg_hba.conf ## Creamos los archivos de configuracion sudo mkdir /etc/tryton sudo nano /etc/tryton/trytond.conf sudo nano /etc/tryton/trytond_log.conf ## Creamos el log file sudo mkdir /var/log/tryton sudo touch /var/log/tryton/trytond.log sudo chown tryton:tryton -R /var/log/tryton ## Creamos la carpeta de trabajo sudo mkdir /var/lib/tryton sudo chown tryton:tryton -R /var/lib/tryton ## Creamos los archivos conf y system para ejecutar tryton-server sudo nano /lib/systemd/system/trytond-server.service sudo systemctl enable trytond-server.service sudo reboot
[tryton-dev] Comparison support for Pyson Date tipes
Hello. I have need to campare a Date in pyson and I have modified pyson.py in trytond to support it, if someone wants to push upstream this is the patch. --- pyson.py.old2017-08-18 07:53:10.705049046 +0200 +++ pyson.py2017-08-18 07:54:47.925945516 +0200 @@ -24,7 +24,13 @@ return reduced_type(func(*args, **kwargs)) return wrapper - +def date_to_float(statement1): +if isinstance(statement1, datetime.datetime): +statement1=(statement1-datetime.datetime(1970,1,1)).total_seconds() +if isinstance(statement1, datetime.date): +statement1=(statement1-datetime.date(1970,1,1)).total_seconds() +return statement1 + class PYSON(object): def pyson(self): @@ -313,7 +319,7 @@ super(Greater, self).__init__() for i in (statement1, statement2): if isinstance(i, PYSON): -assert i.types().issubset(set([int, long, float])), \ +assert i.types().issubset(set([int, long, float, datetime.date, datetime.datetime ])), \ 'statement must be an integer or a float' else: assert isinstance(i, (int, long, float)), \ @@ -346,7 +352,7 @@ for i in ('s1', 's2'): if not isinstance(dct[i], (int, long, float)): dct = dct.copy() -dct[i] = float(dct[i]) +dct[i] = float(date_to_float(dct[i])) return dct @staticmethod @@ -711,4 +717,3 @@ 'Len': Len, 'Id': Id, } - -- 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/0a6a0f55-027b-40a0-aae1-05d28a9a5f13%40googlegroups.com.