← Back to team overview

openerp-india team mailing list archive

[Bug 1222394] Re: Employee : Jounral_id field must have a domain for journal type

 

** Tags added: invoicing useability

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1222394

Title:
  Employee : Jounral_id field must have a domain for journal type

Status in OpenERP Addons (modules):
  Confirmed

Bug description:
  tested on runbot 7-0-19466

  I am reading the change http://bazaar.launchpad.net/~openerp/openobject-addons/7.0/revision/9317
  I found there should be something wrong at

   line 233      elif journal_type == 'general' and product_id:

  I doubt can we assume all timesheet line with analytic journal type
  'general'

  then I did a test:

  on runbot 7-0-19466

  change the employee administrator's journal from "timesheet journal"
  to "Purchase" (no exception raised)

  make a timesheet line for Administrator, mark invoice 100%

  invoice on this timesheet, the unit price is 30, from the cost of
  "service", In this case, it should be 75 from list price of "service"

  possible solution:

  my advise is in this elseif leg, check the journal_type='purchase'
  first and look it as Expense line, put the timesheet logic in else
  leg, remove the   journal_type == 'general'  condition because it is
  not always true for timesheet

  another solution should be , add a domain on journal_id field of
  Employee form, make it filter to only [('type','=','general')]
  analytic journals.

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1222394/+subscriptions


References