IRC logs of #tryton for Saturday, 2013-02-16

chat.freenode.net #tryton log beginning Sat Feb 16 00:00:01 CET 2013
2013-02-16 02:18 -!- ciupicri(~ciupicri@unaffiliated/ciupicri) has left #tryton
2013-02-16 11:57 <basman> hi
2013-02-16 11:57 <basman> I need help
2013-02-16 12:47 <cedk> basman: don't ask to ask, just ask
2013-02-16 12:55 <basman> Okay, I'm connecting to the demo profile via tryton client
2013-02-16 12:55 <basman> when I press pay for an invoice, I get error message saying that "debit account is missing on journal"
2013-02-16 12:55 <basman> what is the issue ?
2013-02-16 13:08 <cedk> basman: the journal you are using for payment doesn't have a default debit account
2013-02-16 13:10 <basman> I can't configure accounts and journal on demo DB, but, suppose I installed tryton on my server machine, and used the minimal chart of accounts when setting up new company, then will I get the same message when I try to pay an invoice ?
2013-02-16 13:11 <cedk> basman: you can configure if you use the admin user
2013-02-16 13:15 <basman> How I could customize the invoice default format ?
2013-02-16 13:17 <cedk> basman: I guess you mean the report (odt file) ?
2013-02-16 13:18 <basman> Yes I think so
2013-02-16 13:19 <cedk> basman: it is in Adminstration>UI>Action>Reports
2013-02-16 13:19 <basman> where I could find that file and will I be able to modify it's default format ?
2013-02-16 13:20 <cedk> basman: it is an odt file containing template tags for relatorio
2013-02-16 13:21 <cedk> basman: you can customize it and if you install unoconv you can convert it to almost any format supported by OpenOffice
2013-02-16 13:22 <basman> Could I just add logo picture normally, how to install unoconv and activate it ?
2013-02-16 13:24 <cedk> basman: you can add picture like you do to any odt file
2013-02-16 13:24 <cedk> basman: to install unoconv see with your OS package manager
2013-02-16 13:26 <basman> I saw, there is configuration switches for unoconv in trytond.conf. however, when I removed the # sign to activate it and after that when I ran trytond, I got an error
2013-02-16 13:34 <cedk> basman: can not help without the error message
2013-02-16 13:37 <basman> Okay, I tried to pay the invoice I got the same message saying that "default debit account is missing", now what should be the default debit account for Cash Journal?
2013-02-16 13:38 <basman> Main cash, main expense, main receivable, main payaple ....etc?
2013-02-16 13:43 <cedk> basman: usually I use cash
2013-02-16 13:43 <cedk> basman: but it depends of the accounting rule you are following
2013-02-16 13:45 <basman> I'm not an accounting specialist, that's why I don't know, what you use for default credit account then ?
2013-02-16 14:36 <basman> mmmm
2013-02-16 14:40 <cedk> basman: I use cash for demo
2013-02-16 14:40 <basman> for debit and credit ?
2013-02-16 14:41 <cedk> basman: both
2013-02-16 14:41 <basman> Main Cash
2013-02-16 14:42 <cedk> basman: yes
2013-02-16 14:42 <basman> So, for Cash Journal, you use "Main Cash" account for debit and credit as well
2013-02-16 14:42 <basman> Okay
2013-02-16 14:42 <cedk> basman: but for the demo server, it is not important which account you use
2013-02-16 14:43 <basman> what about production use?
2013-02-16 14:43 <cedk> basman: ask your accountant
2013-02-16 14:44 <basman> There must be a default option
2013-02-16 14:44 <basman> I don't have an accountant
2013-02-16 14:45 <basman> I'm trying to learn accounting principles :D
2013-02-16 14:46 <basman> So, I could use Tryton on my own without the help of an accountant
2013-02-16 14:57 <cedk> basman: if you can find the anwser by yourself, go for it
2013-02-16 14:57 <cedk> basman: but I can not help you because I'm not an accountant and I even don't know from which country you are
2013-02-16 14:58 <cedk> basman: after that if you don't care about the accounting and just want to use Tryton for invoicing, so just take cash account
2013-02-16 15:11 <basman> I'm talking from UAE
2013-02-16 15:12 <cedk> basman: UAE?
2013-02-16 15:12 <basman> Yes
2013-02-16 15:12 <basman> United Arab Emirates
2013-02-16 15:14 <cedk> basman: don't know anything about accounting there
2013-02-16 15:15 <basman> Okay thanks brother
2013-02-16 15:15 <coeps> Hi, I would like to refer in an object to the creating user. How can I access the current user or is there maybe an example someone can point me to.
2013-02-16 15:16 <cedk> coeps: Transaction().user
2013-02-16 15:20 <coeps> cedk: thanks
2013-02-16 15:23 <cedk> coeps: it gives you the id
2013-02-16 22:22 <coeps> If I want it to be impossible to delete a record. Is it save just to overwrite classmethod delete with the only command return?
2013-02-16 22:24 <cedk> coeps: better to raise an error message
2013-02-16 22:25 <cedk> coeps: or just make ir.model.access not deletable
2013-02-16 22:33 <coeps> cedk: But with model.access an admin could still edit this permissions. Its a simple accounting module, at least the German law requires that it is *impossible* to delete the record. So I probably have to go for the error message. Do you know a standardmodule, where this is implemented (its easier than trying :))
2013-02-16 22:36 <cedk> coeps: no
2013-02-16 22:36 <cedk> coeps: but don't try to be too strict
2013-02-16 22:37 <cedk> coeps: implementing such rule will lead to issue, I'm pretty sure
2013-02-16 22:38 <cedk> coeps: also why not use the account module?
2013-02-16 22:39 <cedk> coeps: perhaps this could help: http://hg.tryton.org/modules/account_invoice/file/0c5f8b14ac30/invoice.py#l958
2013-02-16 22:45 <coeps> cedk: cool thanks. In Germany we have to "official" ways to do accounting. The proper way, like accounting does it, or a very simple way. For my usecase, a kindergarden, I need a very simple edition. And I still use it for learning python properly.
2013-02-16 22:45 <coeps> cedk: not python, tryton... I know python

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