chat.freenode.net #tryton log beginning Tue Nov 24 00:00:01 CET 2015 | ||
2015-11-24 01:09 -!- apostatize(~visavis@unaffiliated/apostatize) has joined #tryton | ||
2015-11-24 02:08 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | ||
2015-11-24 03:54 -!- csotelo(~csotelo@190.41.123.53) has joined #tryton | ||
2015-11-24 03:56 <csotelo> hi people, I am working on invoices on tryton for my country, Peru. My question is related to taxes, on Peru, enterprises, who pays taxes uses a Identification that is different to a person, and persons dont pay taxes | ||
2015-11-24 03:57 <csotelo> wher can I configurate this kind of rules? ( I was looking into taxes rules, without sucess 0) thanks | ||
2015-11-24 04:09 -!- smarro(~sebastian@181.16.4.44) has joined #tryton | ||
2015-11-24 04:30 -!- smarro(~sebastian@181.16.4.44) has joined #tryton | ||
2015-11-24 06:02 -!- yangoon1(~mathiasb@p549F169A.dip0.t-ipconnect.de) has joined #tryton | ||
2015-11-24 07:40 -!- frispete(~frispete@p54A91C4B.dip0.t-ipconnect.de) has joined #tryton | ||
2015-11-24 07:45 -!- rpit(~rpit@2a02:908:e670:3a80:ec90:8a82:85ab:c87d) has joined #tryton | ||
2015-11-24 07:55 -!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton | ||
2015-11-24 08:35 -!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton | ||
2015-11-24 09:09 -!- mrichez(~smuxi@mail.saluc.com) has joined #tryton | ||
2015-11-24 09:11 -!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has joined #tryton | ||
2015-11-24 09:20 -!- udono(~udono@ip-37-201-247-16.hsi13.unitymediagroup.de) has joined #tryton | ||
2015-11-24 09:30 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | ||
2015-11-24 11:00 -!- nicoe(~nicoe@2001:6f8:3aa:2:ee55:f9ff:fe7b:f7ac) has joined #tryton | ||
2015-11-24 12:03 -!- mariomop(~quassel@181.91.132.92) has joined #tryton | ||
2015-11-24 12:10 -!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton | ||
2015-11-24 12:47 -!- mholtzberg(~mholtzber@p50931afa.dip0.t-ipconnect.de) has joined #tryton | ||
2015-11-24 13:19 -!- abernardi(~quassel@200.117.223.143) has joined #tryton | ||
2015-11-24 13:39 -!- smarro(~sebastian@181.16.4.44) has joined #tryton | ||
2015-11-24 13:43 -!- aroncero(~aroncero@86.63.19.153) has joined #tryton | ||
2015-11-24 14:56 -!- perilla(~perilla@191.100.100.92) has joined #tryton | ||
2015-11-24 14:59 -!- Abrunacci(~ale@181.229.83.182) has joined #tryton | ||
2015-11-24 15:33 -!- Abruancci(~Alejandro@181.229.83.182) has joined #tryton | ||
2015-11-24 15:37 -!- farhoud(~farhoud@5.78.96.147) has joined #tryton | ||
2015-11-24 15:38 <farhoud> hello | ||
2015-11-24 15:38 <Abruancci> hi | ||
2015-11-24 15:39 <farhoud> im farhoud from iran | ||
2015-11-24 15:39 <farhoud> im translating tryton to persian | ||
2015-11-24 15:40 <farhoud> but i have problem we use jalali calender instead of gorgian | ||
2015-11-24 15:41 <farhoud> and i need to add jalali calender support first | ||
2015-11-24 15:42 <farhoud> can i just mask date field to show and read date in jalali and then convert it to gregorian | ||
2015-11-24 15:42 <farhoud> * gregorian | ||
2015-11-24 15:44 <farhoud> i need some help | ||
2015-11-24 15:45 <farhoud> to understand how field work | ||
2015-11-24 15:45 <farhoud> or is it possible at all | ||
2015-11-24 16:16 <nicoe> Hello farhoud | ||
2015-11-24 16:17 <farhoud> hi | ||
2015-11-24 16:19 <nicoe> That's great to see people translating tryton in foreign languages | ||
2015-11-24 16:20 <nicoe> And especially since there is this calendar issue that is quite interesting | ||
2015-11-24 16:21 <nicoe> On the database level postgresql (and I suppose other databases) follow the SQL standard of storing dates in the gregorian calendar | ||
2015-11-24 16:21 <farhoud> yes sure im software engineer student | ||
2015-11-24 16:21 <nicoe> So you're used to this kind of issue :) | ||
2015-11-24 16:21 <farhoud> yes our calender is rar | ||
2015-11-24 16:22 <nicoe> I suppose there is a way to compute from gregorian to jalali and vice-versa | ||
2015-11-24 16:23 <farhoud> yes python librery jalaji calender is also exist | ||
2015-11-24 16:23 <farhoud> its very simple and do the casting | ||
2015-11-24 16:24 <nicoe> So my first idea would be to extend the date and datetime field of the client to enable to input jalali dates (and display gregorian dates as jalali) | ||
2015-11-24 16:25 <nicoe> ACTION is browsing through the code source | ||
2015-11-24 16:25 <farhoud> huum i was thinking i should change date field and try to understanding it | ||
2015-11-24 16:26 <farhoud> so the client is my target | ||
2015-11-24 16:26 <farhoud> i was try to modifying date field in model lib | ||
2015-11-24 16:27 <farhoud> trytond | ||
2015-11-24 16:28 <farhoud> thank u nicoe im start reading the client code | ||
2015-11-24 16:28 <nicoe> You'll need to define a client plugin to replace the date / datetime widget we use (but maybe GTK already support those I don't know) | ||
2015-11-24 16:28 -!- aroncero(~aroncero@86.63.19.153) has joined #tryton | ||
2015-11-24 16:30 <nicoe> And then in tryton/gui/window/view_form/view/form_gtk/calendar.py in the display and get_value method do the conversion | ||
2015-11-24 16:30 <nicoe> You also have to know a reliable way to detect which kind of calendar a user is using | ||
2015-11-24 16:31 <nicoe> probably a config or an environment variable | ||
2015-11-24 16:32 <farhoud> im also willing to make little team from my university | ||
2015-11-24 16:32 <farhoud> we have accounting major and computing major | ||
2015-11-24 16:32 <nicoe> farhoud: great | ||
2015-11-24 16:33 <nicoe> wish you luck | ||
2015-11-24 16:33 <farhoud> thank u nicoe | ||
2015-11-24 16:34 <farhoud> open project is not very popular in my country and we want to make a change | ||
2015-11-24 16:34 <farhoud> and we like to depend on tryton community | ||
2015-11-24 16:35 <farhoud> your very help full | ||
2015-11-24 16:35 <farhoud> wish u luck too | ||
2015-11-24 16:51 -!- aroncero(~aroncero@86.63.19.153) has joined #tryton | ||
2015-11-24 17:25 -!- perilla(~perilla@191.100.87.187) has joined #tryton | ||
2015-11-24 17:38 -!- perilla(~perilla@186.43.158.231) has joined #tryton | ||
2015-11-24 17:47 -!- gremly(~gremly@190.85.36.58) has joined #tryton | ||
2015-11-24 18:57 -!- aroncero(~aroncero@86.63.19.153) has joined #tryton | ||
2015-11-24 19:01 <aroncero> Hi, I have a view B that inherits from A | ||
2015-11-24 19:02 <aroncero> Can I call A or Be as needed? or always boing to be B | ||
2015-11-24 19:12 <cedk> aroncero: inherits always change the views so you must always refers to the original and all the inherits will be applied | ||
2015-11-24 19:12 <cedk> aroncero: except if you put on the inherit a domain which can make the application conditional | ||
2015-11-24 19:13 -!- gyKa(~Gytis@78.56.151.78) has joined #tryton | ||
2015-11-24 19:16 <aroncero> cedk: I read that in the doc. Where can I see an example? I tried "things" without success | ||
2015-11-24 19:17 <cedk> aroncero: I think there are no usage of it for now in core modules | ||
2015-11-24 19:18 <cedk> aroncero: domain must be a PYSON expression that will be evaluated into a Boolean using the context | ||
2015-11-24 19:18 <cedk> aroncero: it is in line 299 of modelview.py | ||
2015-11-24 19:19 <cedk> ACTION bbl | ||
2015-11-24 19:19 <aroncero> cedk: ok, thanks. | ||
2015-11-24 19:22 <aroncero> <field name="domain" eval="[('is_robot', '=', True)]" pyson="1" /> | ||
2015-11-24 19:22 <aroncero> cedk: is that the way? | ||
2015-11-24 19:35 -!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has left #tryton | ||
2015-11-24 19:47 -!- smarro(~sebastian@181.16.4.44) has joined #tryton | ||
2015-11-24 20:08 -!- perilla(~perilla@186.43.158.231) has joined #tryton | ||
2015-11-24 20:09 -!- frispete(~frispete@p54A91C4B.dip0.t-ipconnect.de) has joined #tryton | ||
2015-11-24 20:10 -!- aroncero(~aroncero@86.63.19.153) has joined #tryton | ||
2015-11-24 20:36 <cedk> aroncero: no but it should be: Eval('context', {}).get('is_robot', False) | ||
2015-11-24 20:47 -!- perilla(~perilla@191.100.88.120) has joined #tryton | ||
2015-11-24 20:51 <aroncero> cedk: thanks, so if I create a action that do <field name="domain" eval="[('is_robot', '=', True)]" pyson="1"/> | ||
2015-11-24 20:52 <aroncero> cedk: must check is_robot to True and load the inherits view | ||
2015-11-24 20:54 <aroncero> cedk:... or not, because does not works | ||
2015-11-24 21:04 -!- farhoud(~farhoud@5.78.96.147) has joined #tryton | ||
2015-11-24 21:08 -!- mariomop_(~quassel@181.90.128.173) has joined #tryton | ||
2015-11-24 21:10 -!- bvillasanti(~bvillasan@181.192.32.145) has joined #tryton | ||
2015-11-24 21:11 -!- perilla_(~perilla@191.100.88.120) has joined #tryton | ||
2015-11-24 21:33 -!- bvillasanti(~bvillasan@181.192.32.145) has joined #tryton | ||
2015-11-24 21:34 -!- bvillasanti(~bvillasan@181.192.32.145) has joined #tryton | ||
2015-11-24 22:09 -!- cassmodiah(~cassmodia@fedora/cassmodiah) has joined #tryton | ||
2015-11-24 22:18 -!- aroncero(~aroncero@86.63.19.153) has joined #tryton | ||
2015-11-24 22:20 <cedk> aroncero: it can not work because you are still not using the right syntax I gave you | ||
2015-11-24 22:21 <aroncero> cedk: I use the syntax in the view and it works ok | ||
2015-11-24 22:23 <aroncero> cedk: I created a domain in the action that it worked (before put the domain in the view) and marked the boolean field in the view | ||
2015-11-24 22:24 <cedk> aroncero: don't understand | ||
2015-11-24 22:24 <aroncero> cedk: sorry, I start again | ||
2015-11-24 22:25 <aroncero> I have a view B inheriting from A | ||
2015-11-24 22:26 <aroncero> If i use this domain in the action from menu | ||
2015-11-24 22:26 <aroncero> <field name="domain" eval="[('is_robot', '=', True)]" pyson="1"/> | ||
2015-11-24 22:26 <aroncero> marks the field is_robot to True and it is ok | ||
2015-11-24 22:27 <aroncero> and the original menu open the view with is_robot to False | ||
2015-11-24 22:27 <aroncero> now I want that the original menu open the original view | ||
2015-11-24 22:27 <aroncero> so I use | ||
2015-11-24 22:30 <cedk> aroncero: what do you name "marks the field is_robot to True" | ||
2015-11-24 22:31 -!- aroncero_(~aroncero@86.63.19.153) has joined #tryton | ||
2015-11-24 22:52 <aroncero> Testing i noticed that the view B never is open, althought is_robot is True | ||
2015-11-24 22:53 <aroncero> so <field name="domain" eval="Eval('context', {}).get('is_robot', False)" pyson="1" /> does not work as expected | ||
2015-11-24 22:55 <cedk> aroncero: when you talk about "open", I think you don't understand how inherit works | ||
2015-11-24 22:56 <aroncero> I understand how inherits works (I think) | ||
2015-11-24 22:57 <aroncero> but when i read "...the inheritance will be proceeded." in the doc | ||
2015-11-24 22:58 <aroncero> i undertand that you can decided "open" (proceess or not) a view or the other | ||
2015-11-24 22:59 <aroncero> respect a, in this case, a field evaluated in the field domain | ||
2015-11-24 23:00 <cedk> aroncero: no there is only one view | ||
2015-11-24 23:06 -!- perilla(~perilla@186.43.158.231) has joined #tryton | ||
2015-11-24 23:06 -!- aroncero(~aroncero@86.63.19.153) has joined #tryton |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!