← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 732603] [NEW] Closed analytics accounts are availables in exepenses lines

 

Public bug reported:

hi!

In 5.0.15 server version ...

I've just seen that closed analytics accoutns are availables in
hr_expense views. It's very annoying I think.

So I change the view code for analytic_account field in hr_expense_view.xml .
diff command return
14c14
<                     <field domain="[('type','=','normal')]" name="analytic_account"/>
---
>                     <field domain="[('type','=','normal'),('state','!=','close')]" name="analytic_account"/>
65c65
<                                     <field domain="[('type','=','normal')]" name="analytic_account"/>
---
>                                     <field domain="[('type','=','normal'),('state','!=','close')]" name="analytic_account"/>

** Affects: openobject-addons
     Importance: Undecided
         Status: New


** Tags: 5.0.15 addons analytic domain expense

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/732603

Title:
  Closed analytics accounts are availables in exepenses lines

Status in OpenERP Modules (addons):
  New

Bug description:
  hi!

  In 5.0.15 server version ...

  I've just seen that closed analytics accoutns are availables in
  hr_expense views. It's very annoying I think.

  So I change the view code for analytic_account field in hr_expense_view.xml .
  diff command return
  14c14
  <                     <field domain="[('type','=','normal')]" name="analytic_account"/>
  ---
  >                     <field domain="[('type','=','normal'),('state','!=','close')]" name="analytic_account"/>
  65c65
  <                                     <field domain="[('type','=','normal')]" name="analytic_account"/>
  ---
  >                                     <field domain="[('type','=','normal'),('state','!=','close')]" name="analytic_account"/>



Follow ups

References