How to test the sever logic?

Asked by shanky

Hi ,

I started to simple customize module, I create the view with help previous default module in addons floder.
But yet not understand in the sever/ business logic function takes parameter argument and returned value by some default function likes:
ids2 = self.search(cr, uid, [('parent_id', 'child_of', ids)], context=context)

I not get what value stored in "ids2" variable

how do u test or debug your logic?
Thanks

Question information

Language:
English Edit question
Status:
Solved
For:
Odoo Server (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Solved by:
Vinay Rana (OpenERP)
Solved:
Last query:
Last reply:
Revision history for this message
Vinay Rana (OpenERP) (vra-openerp) said :
#1

Hello Shankar,

You need to check the base framework file code of openERP server(server/bin/osv folder). Use 'print' statement after calling any framework function so you will easily getting what the function return in server terminal.

Hope this will help you.

Thanks.

Revision history for this message
shanky (shankar-shinde-deactivatedaccount) said :
#2

Dear vra(openerp),
    Thank you for your good suggetsion. I tried and it is working.
Regards,
   Shankar

On Tue, 20 Apr 2010 05:06:01 -0000, "vra (openerp)" wrote:
Your question #107848 on OpenObject Server changed:
  > https://answers.launchpad.net/openobject-server/ question/107848
  >
  > Status: Open => Answered
  >
  > vra (openerp) proposed the following answer:
  > Hello Shankar,
  >
  > You need to check the base framework file code of openERP
  > server(server/bin/osv folder). Use 'print' statement after calling any
  > framework function so you will easily getting what the function return
  > in server terminal.
  >
  > Hope this will help you.
  >
  > Thanks.
  >
  > --
  > If this answers your question, please go to the following page to let us
  > know that it is solved:
  > https://answers.launchpad.net/openobject-server/ question/107848/
confirm?answer_id=0
  >
  > If you still need help, you can reply to this email or go to the
  > following page to enter your feedback:
  > https://answers.launchpad.net/openobject-server/ question/107848
  >
  > You received this question notification because you are a direct
  > subscriber of the question.
  >
  >

Revision history for this message
Best Vinay Rana (OpenERP) (vra-openerp) said :
#3

Hello Shanker,

Can you please close this Question if your problem is solved?

Thanks.

Revision history for this message
shanky (shankar-shinde-deactivatedaccount) said :
#4

problem get solved.
 shankar

Revision history for this message
shanky (shankar-shinde-deactivatedaccount) said :
#5

Thanks vra (openerp), that solved my question.