IRC logs of #tryton for Monday, 2008-12-29

chat.freenode.net #tryton log beginning Mon Dec 29 00:00:01 CET 2008
2008-12-29 01:15 <CIA-10> tryton: matb roundup * #703/Invoice line: amount , taxed, total not updated after editing product: [new] Insert a product into an invoice, edit the product with another price, save it, edit it again and choose once again the product: original pr ...
2008-12-29 04:14 -!- gremly(n=oscar@190.156.166.44) has joined #tryton
2008-12-29 04:18 -!- gremly(n=oscar@190.156.166.44) has joined #tryton
2008-12-29 05:19 -!- yangoon(n=mathiasb@p549F73EB.dip.t-dialin.net) has joined #tryton
2008-12-29 07:37 -!- Timitos(n=Timitos@88.217.184.172) has joined #tryton
2008-12-29 08:19 -!- vengfulsquirrel(n=penny@wireless-216-170-122-150.digitalputty.com) has joined #tryton
2008-12-29 08:40 -!- cedk(n=ced@gentoo/developer/cedk) has joined #tryton
2008-12-29 09:21 -!- cristi_an(n=cristi@89.120.211.206) has joined #tryton
2008-12-29 09:24 <CIA-10> tryton: ced roundup * #703/Invoice line: amount , taxed, total not updated after editing product: [resolved] I don't see any issue. The amount of the line is 6 The amount of the taxes is 0 (as there is two taxes with positive and negative value ...
2008-12-29 09:25 <CIA-10> tryton: ced roundup * #702/domain validation on record creation should be improved: [chatting] I don't see what can be done in a general way as the domain are to complex to create a new one for the linked object. But maybe we can ...
2008-12-29 09:27 <cristi_an> cedk: i asked you yesterday but maybe you did not see that: on my local instaltion i get a error stacktrace very very easy i just do like 6,7 clicks and so ,may i create a company on demo and play with it?
2008-12-29 09:28 <cristi_an> maybe is my local instalataion has a problem
2008-12-29 09:28 <cristi_an> otherwise to put those as bug if i can catch them on demo as well
2008-12-29 09:29 <cristi_an> 6,7 clicks
2008-12-29 09:29 <cedk> cristi_an: submit an issue in roundup
2008-12-29 09:30 <cristi_an> hmm only if that is catched on demo as well ?
2008-12-29 09:30 <cristi_an> or even if i catched it on my local server
2008-12-29 09:30 <cristi_an> ?
2008-12-29 09:30 <cristi_an> and client
2008-12-29 09:30 <cristi_an> my local are latest sources
2008-12-29 09:31 <cedk> cristi_an: any way
2008-12-29 09:31 <cristi_an> oki.
2008-12-29 09:44 <cristi_an> cedk: data that i create on demo server is not stored or you hava a script that is run and that override the data at some moment ?
2008-12-29 09:45 <cedk> cristi_an: it is cleand each night
2008-12-29 09:47 <cristi_an> i though so
2008-12-29 09:52 -!- vengfulsquirrel_(n=penny@wireless-216-170-122-150.digitalputty.com) has joined #tryton
2008-12-29 10:03 <cristi_an> the first step when tryton is started is to install the modules you need then to configure a company right ?
2008-12-29 10:11 <cristi_an> you know what i will put my questions on google groups and they will be grouped on eacg moduele (so otheres can learn from it)
2008-12-29 10:17 -!- sharkcz(n=dan@plz1-v-4-17.static.adsl.vol.cz) has joined #tryton
2008-12-29 10:18 <cristi_an> oki ,my questions are on http://groups.google.com/group/tryton :) plz enjoy answering to them :)
2008-12-29 10:25 -!- carlos(n=carlos@89.7.24.44) has joined #tryton
2008-12-29 10:42 <CIA-10> tryton: cristi roundup * #704/company - currency issue: [new] I created a company on demo server. I choosed RO and set currency to RON. when i tried to create an invoice in financial management /invoic ...
2008-12-29 10:46 -!- oversize(n=manuel@94.219.56.26) has joined #tryton
2008-12-29 10:55 <CIA-10> tryton: ced roundup * #704/company - currency issue: [resolved] You must put the company on your user.
2008-12-29 11:22 <udono> good morning all
2008-12-29 11:23 <udono> cedk: did you have an opinion on topic http://groups.google.com/group/tryton/browse_thread/thread/d618d865ed3d3ddb last post?
2008-12-29 11:27 <cedk> udono: I think that you must not add constraint on the party model
2008-12-29 11:30 <udono> cedk: but I did not add a constraint on party model afais.
2008-12-29 11:32 <cedk> udono: so if the default behavior is still the same, there will be no problem with the company model
2008-12-29 11:33 <udono> cedk: yes, that's right.
2008-12-29 11:34 <udono> cedk: what exactly I break when I recreate the party.name in another module? Is it just untested or are there side effects?
2008-12-29 11:35 -!- mrcast(n=mrcast@host71-69-dynamic.41-79-r.retail.telecomitalia.it) has joined #tryton
2008-12-29 11:38 <cedk> udono: I don't know, but for me the main issue is that you try t force user to respect some rules like company only one name and person two names
2008-12-29 11:47 <udono> cedk: yes. But there are no good solutions around to realise this in an addon module. I only find the way to re define party.name with some constraints. But you told me in the past, that this is no good way because it could break things.
2008-12-29 11:52 <cedk> udono: for me the simplest way, is just add a new fields for the first name
2008-12-29 11:53 <cedk> udono: but as I told also previously for me I don't think it is usefull to separate the names
2008-12-29 11:57 <cristi_an> cedk: thx for your answers on forum
2008-12-29 11:57 <cristi_an> still have 2 quick questions: "It will validate the number. For Romania we had only two kind (10 and
2008-12-29 11:57 <cristi_an> 13) " what is 10 ans 13 ?
2008-12-29 11:58 <cristi_an> cedk:an employee is autmatically a user of the application ?
2008-12-29 11:59 <cedk> cristi_an: from the doc we find, we can validate those kind of number: 1234567897 or 1630615123457
2008-12-29 11:59 <cedk> cristi_an: and second no
2008-12-29 12:01 <cristi_an> cedk: what doc are you talking about ?
2008-12-29 12:03 <udono> cristi_an: http://sima-pc.com/nif.php http://en.wikipedia.org/wiki/Vat_number
2008-12-29 12:03 -!- bechamel(n=user@85.201.86.139) has joined #tryton
2008-12-29 12:03 <cristi_an> ohhhh
2008-12-29 12:03 <cristi_an> this english terms
2008-12-29 12:04 <cristi_an> i know what you mean now....:)
2008-12-29 12:04 <cristi_an> i thougth that vat numbers are the vat tax levels validation (in ro we have 19,9,0) ....but it is the registration vat number
2008-12-29 12:06 <udono> cedk: yes, I remember your ideas from last time. But I had some problems with the non separation of names. But anyway, I will try to solve it exactly you suggested: using the name field for the name only, adding a pre_name field for the prename and doing no special name combinations.
2008-12-29 12:10 <cristi_an> i saw that when you create a company you specify its currency....now why i have to link the user to the company when i do an invoice in order to have the default currency as specified in company ?
2008-12-29 12:11 <cristi_an> currency used for invocing does not depend on the company ...not on the user no ?
2008-12-29 12:12 <cedk> cristi_an: because the company comes from the user
2008-12-29 12:15 <cristi_an> how is that...? you may have many companies but each user has a main company and a current company
2008-12-29 12:15 <cristi_an> what is the diff between these two
2008-12-29 12:15 <cristi_an> ?
2008-12-29 12:16 <udono> cedk: ... But then there remains another serious problem for me: I need just one on_change for the party_type for hiding first_name and gender when party_type == Organization. But an on_change_ in an addon module (Party_Types) is not callable from another addon module (Company). Both modules inherit party.party, but I can not connect from Company to the on_change of Party_types. So I needed to be depending on all other module which sh
2008-12-29 12:18 <cedk> udono: why this is a constraint
2008-12-29 12:18 <udono> cedk: Because I like to avoid to put a gender and a prename to a organisation party_type.
2008-12-29 12:19 <cedk> udono: and you don't need of an on_change for that
2008-12-29 12:21 <cristi_an> cedk: i got that part "because company comes from the user" it is like when you log in with a user and you do not log in to a company (like other applications does)
2008-12-29 12:22 <cristi_an> cedk: but what is the diff between main company and a current company ?
2008-12-29 12:22 <cristi_an> on what main company is used ? i assume current company is used...as comany that is in behalf of the user
2008-12-29 12:23 <CIA-10> tryton: matb roundup * #703/Invoice line: amount , taxed, total not updated after editing product: [chatting] Please look close: The amount of the line should be 5, as it is on the unit price of the product and as it is shown and calculated corr ...
2008-12-29 12:24 <udono> cedk: yeah, sorry but you are right. Actually the on change is used for name constructing and cleanup. But I don't need this any longer when just adding a prename field and don't touch the name. Yes, now I understand your idea in complete, I think. Thanks a lot!!! I try now.
2008-12-29 12:44 -!- ikks(n=igor@190.12.153.202) has joined #tryton
2008-12-29 12:50 <cristi_an> no one know what is the diff. between main company and a current company for a user?
2008-12-29 13:06 <udono> cristi_an: I don't know. But I like to know, too.
2008-12-29 13:06 <cristi_an> udono: thx.
2008-12-29 13:06 <cristi_an> i am just guessing about what it is....
2008-12-29 13:07 <cristi_an> udono: when a company is created automatically a party is created and the party id is added a a foreign key to the company right ?
2008-12-29 13:29 -!- udono(n=udono@dynamic-unidsl-85-197-24-142.westend.de) has joined #tryton
2008-12-29 13:36 <cristi_an> udono: when an invoice is done and i want to print that invoice is not possible to print that invoice directly ? without open open office ?
2008-12-29 13:36 <cristi_an> without that "print preview" in open office
2008-12-29 13:39 <cristi_an> and maybe somebody knows what code and code_length is in party_party table
2008-12-29 13:52 <udono> cristi_an: party.code is the general customer/supplier number The code lengh is used internal for showing code 1, 2, 3, 10, 20, 21, 30 in the right sort order on tree view. Not using this trick will sort the code this way: 1, 10, 2, 20, 21, 3, 30. That's because code is a char, not integer.
2008-12-29 13:54 <cristi_an> udono: but thos code is given by user or is internally generated ?
2008-12-29 13:55 <cristi_an> i see it is generated....from demo app
2008-12-29 13:55 <cristi_an> then why is generated as char ?
2008-12-29 13:55 <cristi_an> not as int
2008-12-29 13:55 <cristi_an> and why is not the id from sequece then
2008-12-29 13:58 <udono> cristi_an: because someone maybe wated to have d prefix or suffix like CUS001 or SUP012
2008-12-29 13:59 <cristi_an> udono: and that prefix where may be set ?
2008-12-29 13:59 <udono> cristi_an: but it is not a strict seuence, since there is no need for strict sequence. You can shortcut (code) your party as free as possible.
2008-12-29 13:59 <udono> s/seuence/sequence
2008-12-29 13:59 <cristi_an> cause the code in not editable
2008-12-29 14:00 <udono> Just write it in your code field
2008-12-29 14:00 <cristi_an> code filed...? let me see where that is
2008-12-29 14:00 <udono> cristi_an: ui, that's new for me, I just take a look
2008-12-29 14:00 <udono> cristi_an: last sentences of me was wrong.
2008-12-29 14:01 <cristi_an> which one ?
2008-12-29 14:01 <cristi_an> :)
2008-12-29 14:01 <udono> cristi_an: code is a sequence, but not a strict one without gaping numbers.
2008-12-29 14:01 <cristi_an> i see....i am looking now where i can add prefixes
2008-12-29 14:02 <udono> cristi_an: you can edit the sequence in Administration > Sequences > Sequences
2008-12-29 14:02 <cristi_an> udono: yee thx
2008-12-29 14:03 <cristi_an> since i got you :) i have 2,3 more questions...very short ones
2008-12-29 14:03 <cristi_an> printing ....possible to be done without open "open office"
2008-12-29 14:03 <cristi_an> direct printing....without any preview ?
2008-12-29 14:04 <udono> cristi_an: yes, see at client Menu Options > File actions...
2008-12-29 14:04 <cristi_an> pfff who learn you these...cedk ?
2008-12-29 14:05 <udono> cristi_an: also see at administration > User Interface > actions > reports
2008-12-29 14:05 <udono> cristi_an: yes, all from cedk and bechamel and long try.
2008-12-29 14:05 <cristi_an> udono: thank you
2008-12-29 14:06 <cristi_an> i am lucky with you....
2008-12-29 14:06 <cristi_an> and timitos...and cedk and bechamel :)
2008-12-29 14:06 <udono> cristi_an: administration > User Interface > actions > reports there is a checkbox direct print...
2008-12-29 14:06 <cristi_an> gr8
2008-12-29 14:07 <cristi_an> to understand the archotecture.....there is the user ,then user has defautl company....after is logged
2008-12-29 14:07 <udono> cristi_an: yeah, the learning curve is a bit hard, because of complexity. But tryton is much easier to understand for me then OpenERP.
2008-12-29 14:07 <cristi_an> nowafter i logge in as user x for company x
2008-12-29 14:07 <cristi_an> for me as well
2008-12-29 14:07 <cristi_an> so user x ,company x
2008-12-29 14:07 <cristi_an> then i create party x
2008-12-29 14:08 <udono> cristi_an: yes, a user has a company when the company module is installed.
2008-12-29 14:08 <cristi_an> Q: party x will be visible for comapny y and user y ?
2008-12-29 14:08 -!- CIA-10(n=CIA@208.69.182.149) has joined #tryton
2008-12-29 14:10 <udono> cristi_an: we have some levels of multi company. First of all: Each company has its own database. But there are exceptions: If you have dependend companies like a headquarter and some local shops, then you can create all this companys in one database.
2008-12-29 14:10 <udono> cristi_an: but this can be wrong, too, since I didn't dig deep the surface about multicompany
2008-12-29 14:12 <cristi_an> i see....so different databases for each comapny ?
2008-12-29 14:12 <cristi_an> but i may create in the same database multimple companies
2008-12-29 14:12 <udono> cristi_an: all company things end up in database architecture. If you need at the end some reports or actions for all companys, then you need to create them in one database via company. This is because postgres doesn't handle request between different databases.
2008-12-29 14:13 <udono> cristi_an: if you need on the other end isolated companys for ASP or something, then the first step is to put them in different companys.
2008-12-29 14:14 <udono> cristi_an: because of more security and isolation of the companies access
2008-12-29 14:14 <cristi_an> so normally one company one database...
2008-12-29 14:14 <udono> cristi_an: yes
2008-12-29 14:15 <cristi_an> but because of multiple connection needed for that
2008-12-29 14:15 <cristi_an> or postgress is possible to have multimple companies in the same database ?
2008-12-29 14:15 -!- mrcast(n=mrcast@host71-69-dynamic.41-79-r.retail.telecomitalia.it) has left #tryton
2008-12-29 14:16 <cristi_an> ok i will try to see what happens experimenting
2008-12-29 14:19 <udono> cristi_an: company module provides an Tryton access system only for isolating the companys. So all invoices of all companies are stored in the same table. They are isolated by a domain for the company where they are for. On the other hand Companys on different databases gives you better isolation of the companies. Tryton can not mix data from different databases.
2008-12-29 14:20 <udono> cristi_an: so when need to mix your companies, you must use Company definitions in one database. If you don't need this, choose different databases, user, logins for different companies.
2008-12-29 14:24 <cristi_an> udono: i understand mainly what you say, what i am courious i a have Company X and Company Y as child (or maybe not) a party created in company X is seen in Company Y ? (only if it is inherited) ?
2008-12-29 14:24 <udono> cristi_an: just try
2008-12-29 14:24 <cristi_an> sure...
2008-12-29 14:25 <udono> cristi_an: and tell me the result please
2008-12-29 14:25 <cristi_an> practice is better
2008-12-29 14:29 <cristi_an> udono: i created in the same db another comany that do not inherit the main comany (demo)
2008-12-29 14:29 <udono> cristi_an: Its not teaching. I just don't know the answer of you question, but I like to know, too ;-)
2008-12-29 14:29 <cristi_an> The value of the field "Account Payable" on "Party" is not valid with his domain.
2008-12-29 14:29 <udono> cristi_an: ok
2008-12-29 14:30 <cristi_an> this i get when i wnat to save a party
2008-12-29 14:30 <udono> cristi_an: so they are separated on this?
2008-12-29 14:30 <cristi_an> have no clue
2008-12-29 14:30 <cristi_an> i do not see any account present ...
2008-12-29 14:31 <cristi_an> but why "The value of the field "Account Payable" on "Party" is not valid with his domain."?
2008-12-29 14:31 <udono> cristi_an: so the new company needs a new chart of account from template
2008-12-29 14:31 <cristi_an> aha
2008-12-29 14:31 <udono> cristi_an: and all other things like fiscalyear and accounting sequences.
2008-12-29 14:32 <udono> I guess
2008-12-29 14:32 <cristi_an> but i can;t set this on company
2008-12-29 14:32 <cristi_an> level
2008-12-29 14:33 <udono> cristi_an: hm
2008-12-29 14:33 <cristi_an> open char of account maybe
2008-12-29 14:33 <udono> cristi_an: I have no clue
2008-12-29 14:35 <cristi_an> i am blocked ....
2008-12-29 14:36 <cristi_an> help needed...:)
2008-12-29 14:36 <cristi_an> but you can acces demo server with the demo client and you'll see i created a new company beside the default one
2008-12-29 14:37 <udono> me?
2008-12-29 14:37 <udono> cristi_an:
2008-12-29 14:37 <cristi_an> but i can;t create any party ... i just get the same message "The value of the field "Account Payable" on "Party" is not valid with his domain."
2008-12-29 14:37 <cristi_an> udono: who want :)
2008-12-29 14:37 <udono> cristi_an: just delete the entry in Account Payable
2008-12-29 14:38 <cristi_an> udono: where ?
2008-12-29 14:38 <udono> cristi_an: party
2008-12-29 14:38 <cristi_an> it is empty
2008-12-29 14:38 <udono> cristi_an: hm
2008-12-29 14:39 <udono> cristi_an: its maybe a bug
2008-12-29 14:39 -!- ikks_(n=igor@201.244.188.98) has joined #tryton
2008-12-29 14:40 <cristi_an> everything may be more clear if i can find out what is shared between companies that are created in the same db
2008-12-29 14:41 <cristi_an> and if a company that has a parent what things inherits from that ? (party ,products)
2008-12-29 14:42 <udono> cristi_an: I would start with single company to understand Tryton.
2008-12-29 14:43 <cristi_an> anyway is not even possible to create a company that has a parent
2008-12-29 14:43 <cristi_an> try on demo and you will see
2008-12-29 14:43 <cristi_an> "The field "Account Payable" on "Party" is required."
2008-12-29 14:43 <udono> cristi_an: so the level of nested companies is one?
2008-12-29 14:44 <cristi_an> 1
2008-12-29 14:44 <cristi_an> i tried to create a company that has as parent the default demo company b2ck
2008-12-29 14:45 <udono> cristi_an: I would file an issue. Just write down what you do, what happens in real and what you expect to see.
2008-12-29 14:45 <cristi_an> is not that important yet :)
2008-12-29 14:45 <cristi_an> as you said better to understant the one company
2008-12-29 14:45 <udono> cristi_an: it could be a bug... so when you are interested in, file an issue.
2008-12-29 14:46 <cristi_an> oki i file it now
2008-12-29 14:48 <CIA-10> tryton: cristi roundup * #705/create nested company: [new] I tried to create on demo server a company that has as parent the b2ck demo company unfortunatelly i can't do that since i get this messa ...
2008-12-29 15:24 <cristi_an> i update my database but i got this
2008-12-29 15:24 <cristi_an> http://paste.pocoo.org/show/97171/
2008-12-29 15:24 <cristi_an> is this a bad thing look at ERROR
2008-12-29 15:24 <cristi_an> plz
2008-12-29 15:37 <cristi_an> this is what i get error when updateding
2008-12-29 15:37 <cristi_an> [Mon Dec 29 16:28:24 2008] ERROR:init:module:osv:Module not found!
2008-12-29 15:37 <cristi_an> [Mon Dec 29 16:28:24 2008] ERROR:init:module:vatnumber:Module not found!
2008-12-29 15:37 <cristi_an> [Mon Dec 29 16:28:24 2008] ERROR:init:module:.metadata:Module not found!
2008-12-29 15:38 <cristi_an> oh these are some directories...i created..:)
2008-12-29 15:39 <cristi_an> and eclipse.
2008-12-29 16:05 <Timitos> cristi_an: the .metadata error is normal as you eclipse. and are the other ones from you?
2008-12-29 16:11 <cristi_an> yee finally i figured that out
2008-12-29 16:11 <cristi_an> :)
2008-12-29 16:11 <cristi_an> thx
2008-12-29 16:16 <cristi_an> an employee is a party as well
2008-12-29 16:16 <cristi_an> ?
2008-12-29 16:17 <cristi_an> one2one relation
2008-12-29 16:17 <cristi_an> ?
2008-12-29 16:18 <cristi_an> so when i create an emplyee that i "attach" to a company in the db a party is created then a company_empoyee
2008-12-29 16:18 <cristi_an> can someone confirm this ?
2008-12-29 16:26 <Timitos> cristi_an: confirmed. but why do you ask that? you can verify this in the postgres db
2008-12-29 16:28 <cristi_an> since i find odd what i saw...why an employee is a party ?
2008-12-29 16:29 <cristi_an> i am sure that there is a reason for this but i do not see it now
2008-12-29 16:32 <cristi_an> and there is something more...there is a res_user table
2008-12-29 16:32 <cristi_an> which is a base table
2008-12-29 16:32 <cristi_an> part from framework
2008-12-29 16:33 <cristi_an> but there employee is added later i guess after adding the module company
2008-12-29 16:35 <cristi_an> cedk:(or anyone) having the base tables (framework ones) is ok to update those when new modules are added ?
2008-12-29 16:35 <Timitos> cristi_an: you can relate employees and users from this view: -> administration -> users -> users
2008-12-29 16:36 <cristi_an> i know...that...but this is done adding a filed employee to the res_user table
2008-12-29 16:36 <cristi_an> which is a "base table" (system one)
2008-12-29 16:36 <cristi_an> i am courious why this field was not in oposite direction created
2008-12-29 16:37 <cristi_an> i mean an employee to have the user id
2008-12-29 16:38 <Timitos> hm. i donĀ“t know.
2008-12-29 16:38 <cristi_an> maybe is ok...but i considered the base tables untouchable...
2008-12-29 18:19 -!- enlightx(n=enlightx@host-84-223-74-196.cust-adsl.tiscali.it) has joined #tryton
2008-12-29 18:33 -!- sharkcz(n=dan@plz1-v-4-17.static.adsl.vol.cz) has joined #tryton
2008-12-29 19:00 -!- cristi_an(n=cristi@89.120.211.206) has joined #tryton
2008-12-29 19:09 <cristi_an> where the employee field is added to the res_usr table ? somewhere in the model ?
2008-12-29 19:10 <cristi_an> when installing company module i assume,but where in the code is this specified ?
2008-12-29 19:15 <udono> cristi_an: see company module and grep for "class Employee"
2008-12-29 19:17 <cristi_an> i have eclipse so i searched for that...Employee class...but there i do not find a link between res_usr(or usr_res) table and employee
2008-12-29 19:17 <cristi_an> in that class there is nothing mentioning relation with user table
2008-12-29 19:17 -!- snowch(n=snowch@82.152.13.57) has joined #tryton
2008-12-29 19:17 <cristi_an> hi snowch
2008-12-29 19:18 <snowch> hi cristi_an
2008-12-29 19:18 <udono> cristi_an: so they are not linked?!
2008-12-29 19:19 <udono> cristi_an: I found them in res/user.py
2008-12-29 19:19 <cristi_an> udono: really ?
2008-12-29 19:20 <snowch> cristi_an: how is your progress with tryton?
2008-12-29 19:20 <cristi_an> well i am trying hard :)
2008-12-29 19:20 <cristi_an> i guess guys from here had enough of me :) but ...this is
2008-12-29 19:21 <cristi_an> udono: i found this as well
2008-12-29 19:21 <udono> cristi_an: the definition is in company/company.py see class User and class Employee
2008-12-29 19:22 <cristi_an> udono: yes thx...i am looking on that.
2008-12-29 19:23 <cristi_an> udono: i did not expect to find it there :) since user class i thought is defined in the framework or in a default installed module
2008-12-29 19:23 <cristi_an> but here there are only added some extra fileds to it
2008-12-29 19:23 <snowch> cristi_an: i've decided to work on reimplementing small parts of tryton/tiny first. I have got the tiny client connecting to a java service using netrpc. I am now working on db create/delete/list/list_lang.
2008-12-29 19:23 <udono> cristi_an: yes, you are right, user class is defined in res/users.py
2008-12-29 19:24 <udono> cristi_an: but company inherits res.user
2008-12-29 19:24 <udono> cristi_an: and puts some employee stuff to the orig. class
2008-12-29 19:24 <cristi_an> and company as well
2008-12-29 19:25 <snowch> cristi_an: i have extracted parts from netsvc, tinyserver and tiny_socket and using jython, pass the method call to a spring service...
2008-12-29 19:25 <cristi_an> snowch: nice stuff
2008-12-29 19:25 <cristi_an> but i read on forum you had some problems because is not standar rpc xml ?
2008-12-29 19:26 <cristi_an> udono: where is specified that the company inherits res.user
2008-12-29 19:26 <cristi_an> ?
2008-12-29 19:26 <udono> class User(OSV):
2008-12-29 19:26 <udono> _name = 'res.user'
2008-12-29 19:26 <snowch> cristi_an: yes, the client only uses netrpc so I decided to use that instead of xmlrpc.
2008-12-29 19:27 <udono> if res.user already exist, then it is inheritance
2008-12-29 19:27 <cristi_an> udono: i see
2008-12-29 19:28 <snowch> cristi_an: it's been nice breaking the application apart into self contained modules. it helps to unwind all the dependencies. python code with lots of classes per file means lots of imports, even though each class may have only a few imports.
2008-12-29 19:28 <udono> we have the convention for tryton inheritance to name the class the same then the original class (class User(OSV)) but this is convention, not restriction. But the _name attribute makes the Tryton inheritance
2008-12-29 19:29 <cristi_an> udono: i understand
2008-12-29 19:29 <cristi_an> snowch: yes coming from java i understand your point
2008-12-29 19:30 <udono> snowch: do you rebuild the trytond in java?
2008-12-29 19:30 <cristi_an> my first goal is finally to understand the application and to know each (but i mean each detail) from company party module
2008-12-29 19:31 <cristi_an> how is built ,how it works ,how can be extended, everything :)
2008-12-29 19:31 <cristi_an> udono: i would like to do that :)
2008-12-29 19:31 <snowch> udono: i've slimmed down netsvc.py, tinyserver.py and tinysocket.py. I then use jython to extract the service and method (e.g. db / list) and pass it to a spring java service.
2008-12-29 19:31 <udono> cristi_an: company module is hard to understand.
2008-12-29 19:32 <cristi_an> udono: but is is the basic not ?
2008-12-29 19:32 <udono> snowch: just for fun or real use?
2008-12-29 19:32 <udono> cristi_an: party is easy for starting, company is harder (for me)
2008-12-29 19:33 <cristi_an> well when i meant company i meant company + party :)
2008-12-29 19:33 <cristi_an> all that is installed with party module :)
2008-12-29 19:33 <snowch> udono: eventually for real use. I started trying to understand in detail the tryton/tiny code base but found it to be to difficult to work out because the code is tightly coupled. I'm now approaching it from a different angle of taking it apart piece by piece.
2008-12-29 19:34 <udono> snowch: hard work. But good luck!
2008-12-29 19:35 <snowch> udono: thanks!
2008-12-29 19:35 <udono> cristi_an: party is a dependencie of company but not vice versa.
2008-12-29 19:37 <cristi_an> udono: well i consider them one part :) since comany can't be installed as single entity (maybe i am wrong)
2008-12-29 19:37 <cristi_an> so i installed pary so i have tehm all
2008-12-29 19:37 <cristi_an> s/pary/party
2008-12-29 19:41 <udono> cristi_an: no, when you install party, then you have only party. But when installing company, then you have party too.
2008-12-29 19:43 <udono> cristi_an: sorry party needs country too, but not company.
2008-12-29 19:43 <cristi_an> udono: that's right.
2008-12-29 19:43 <cristi_an> i was wrong about that
2008-12-29 19:44 <cristi_an> i forgot how i did it
2008-12-29 20:02 <cristi_an> guys do you know a tool that can build the ER diagram out of a postgress schema ?
2008-12-29 20:04 <ikks> postgresql_autodoc
2008-12-29 20:04 <ikks> cristi_an
2008-12-29 20:04 <cristi_an> yes
2008-12-29 20:04 <cristi_an> this is a command ?
2008-12-29 20:04 <ikks> apt-get install
2008-12-29 20:04 <cristi_an> aha....
2008-12-29 20:04 <ikks> the blessing of having Debian
2008-12-29 20:04 <cristi_an> i really love ubuntu....
2008-12-29 20:04 <ikks> I mean a descendant of it...
2008-12-29 20:04 <cristi_an> just apt get.....
2008-12-29 20:05 <cristi_an> and ...bummmm you got it
2008-12-29 20:05 <cristi_an> i am not used to this kind of goodies :)
2008-12-29 20:06 <cristi_an> sh...t :) "Building dependency tree
2008-12-29 20:06 <cristi_an> Reading state information... Done
2008-12-29 20:06 <cristi_an> E: Couldn't find package postgresql_autodoc
2008-12-29 20:06 <cristi_an> "
2008-12-29 20:07 <carlos> carlos@aragorn:~$ apt-cache search postgresql autodoc
2008-12-29 20:07 <carlos> postgresql-autodoc - Utility to create a PostgreSQL database schema overview in HTML, DOT and XML
2008-12-29 20:09 <cristi_an> this is same at me to :)
2008-12-29 20:09 <cristi_an> what do i have to do next ?
2008-12-29 20:09 <cristi_an> carlos:
2008-12-29 20:11 <carlos> cristi_an: apt-get install postgresql-autodoc
2008-12-29 20:11 <carlos> you used '_' instead of '-'
2008-12-29 20:12 <cristi_an> yep...:)
2008-12-29 20:12 <cristi_an> thx a lot carlos
2008-12-29 20:12 <carlos> np
2008-12-29 20:14 <cristi_an> carlos: where can i found where it was installed in order to run it
2008-12-29 20:14 <carlos> dpkg -L postgresql-autodoc will tell you all files installed by that package
2008-12-29 20:16 <cristi_an> gr8
2008-12-29 20:25 -!- evernichon(n=evernich@AToulouse-256-1-62-68.w86-205.abo.wanadoo.fr) has joined #tryton
2008-12-29 20:26 <cristi_an> what is the sequence from address class (table as well)?
2008-12-29 20:46 <cristi_an> and also i saw sequence in party_contacts_mechanism
2008-12-29 20:46 <cristi_an> what is that used for ?
2008-12-29 20:47 <cristi_an> sequence = fields.Integer("Sequence")
2008-12-29 20:47 <cristi_an> i can't see as being a field that can be edited
2008-12-29 20:48 <cedk> cristi_an: it is for sorting
2008-12-29 20:49 <cristi_an> is described on wiki ?
2008-12-29 20:49 <cristi_an> if not can you tell me in a few words how is used for sorting plz
2008-12-29 20:51 <cedk> cristi_an: see _order in http://www.tryton.org/doc/branches/1.0/trytond/doc/models.html
2008-12-29 20:53 <CIA-10> tryton: C?dric Krier <ced@b2ck.com> default * 215:dc0df312ddfa website/ (19 files in 4 dirs): Add translation mecanism and add fr_FR translation
2008-12-29 20:53 <CIA-10> tryton: C?dric Krier <ced@b2ck.com> default * 216:12207fe37ad8 website/: merge
2008-12-29 20:54 <cristi_an> cedk: i read that before as well but how is that realted to sequence
2008-12-29 20:54 <cristi_an> cedk: "# _order: A tuple defining how the row are sorted when the underlying table is read. E.g.: [('name', 'ASC'), 'age', 'DESC']"
2008-12-29 20:57 <cedk> cristi_an: so we put sequence on _order
2008-12-29 21:00 <cristi_an> cedk: i see where self._order.insert(1, ('sequence', 'ASC'))
2008-12-29 21:00 <cristi_an> cedk: but i have to find out what this means :)
2008-12-29 21:00 <cristi_an> cedk: and how this sequence may be used ,created...etc etc
2008-12-29 21:00 <cedk> cristi_an: that means order on sequence
2008-12-29 21:01 <cristi_an> cedk: but sequence is 0 ,0,0
2008-12-29 21:01 <cristi_an> at least in my db
2008-12-29 21:01 <cedk> cristi_an: but you can change it to set an order
2008-12-29 21:02 <cristi_an> cedk: nice then ...is that hard to do ?
2008-12-29 21:02 <cedk> cristi_an: what?
2008-12-29 21:03 <cristi_an> to set an order and change the 0,0,0
2008-12-29 21:03 <cristi_an> cedk:
2008-12-29 21:03 <cedk> cristi_an: just Drag and drop
2008-12-29 21:04 <cristi_an> cedk: you are talking about the columns ?
2008-12-29 21:04 <cristi_an> w8
2008-12-29 21:04 <cristi_an> let me look in the client
2008-12-29 21:06 <cristi_an> i moved skype.addres and what i defined with drag and drop
2008-12-29 21:06 <cristi_an> and ineed sequence appeared but not incremental
2008-12-29 21:06 <CIA-10> tryton: C?dric Krier <ced@b2ck.com> default * 217:08ce7344fb9f website/lightbox.js: Fix image url in lightbox
2008-12-29 21:07 <cristi_an> it is like 7,2,6
2008-12-29 21:07 <cristi_an> i got it now
2008-12-29 21:07 <cristi_an> skpe has 7
2008-12-29 21:07 <cristi_an> in combobox
2008-12-29 21:08 <cristi_an> i was wrong:)
2008-12-29 21:08 <cristi_an> now i have like 8,7,6
2008-12-29 21:09 <cristi_an> cedk: how is that sequence built when moving items with drag and drop ?
2008-12-29 21:10 <cristi_an> from what i see experimenting a new sequence is built each time
2008-12-29 21:10 <cristi_an> i do an update
2008-12-29 21:11 <cedk> cristi_an: yes
2008-12-29 21:11 <cristi_an> and sorting then is based on tht sequence
2008-12-29 21:11 <cristi_an> that is why on that table table headers do not react to clicks
2008-12-29 21:11 <cristi_an> different kind of sorting
2008-12-29 21:17 <cristi_an> cedk: last thing today "self._order.insert(0, ('party', 'ASC'))
2008-12-29 21:17 <cristi_an> self._order.insert(1, ('sequence', 'ASC'))"
2008-12-29 21:17 <cristi_an> what means this sorting fisrt after party then after
2008-12-29 21:17 <cristi_an> sequence ?
2008-12-29 21:24 <cristi_an> cedk: is that a must because i as relation one2many so why to order a list after party if all the items has the same party.
2008-12-29 21:32 -!- udono(n=udono@dynamic-unidsl-85-197-24-142.westend.de) has joined #tryton
2008-12-29 22:48 -!- ChanServ(ChanServ@services.) has joined #tryton
2008-12-29 22:48 -!- snowch(n=snowch@82.152.13.57) has joined #tryton
2008-12-29 22:48 -!- CIA-10(n=CIA@208.69.182.149) has joined #tryton
2008-12-29 22:48 -!- carlos(n=carlos@89.7.24.44) has joined #tryton
2008-12-29 22:48 -!- cedk(n=ced@gentoo/developer/cedk) has joined #tryton
2008-12-29 22:48 -!- Timitos(n=Timitos@88.217.184.172) has joined #tryton
2008-12-29 22:48 -!- yangoon(n=mathiasb@p549F73EB.dip.t-dialin.net) has joined #tryton
2008-12-29 22:48 -!- panthera(n=daniel@unable-to-package.org) has joined #tryton
2008-12-29 22:49 -!- bechamel(n=user@85.201.86.139) has joined #tryton
2008-12-29 22:49 -!- saxa(i=1000@host242-95-static.223-217-b.business.telecomitalia.it) has joined #tryton
2008-12-29 23:41 <CIA-10> tryton: Bertrand Chenal <bch@b2ck.com> default * 218:aa361f3faf7c website/ (4 files in 2 dirs): French translation reviewed
2008-12-29 23:42 -!- ikks(n=igor@201.244.188.98) has joined #tryton
2008-12-29 23:45 <CIA-10> tryton: Bertrand Chenal <bch@b2ck.com> default * 219:ae9ada32382b website/locale/fr_FR/LC_MESSAGES/ (tryton.mo tryton.po): Better naming
2008-12-29 23:49 -!- ikks(n=igor@201.244.188.98) has joined #tryton
2008-12-29 23:52 -!- vengfulsquirrel(n=penny@wireless-216-170-122-150.digitalputty.com) has joined #tryton

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!