← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 530681] Re: [trunk - base_calendar] exrule field without functionality [IMP]

 

** Branch unlinked: lp:~openerp-dev/openobject-addons/uco-dev-addons1

-- 
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/530681

Title:
  [trunk - base_calendar] exrule field without functionality [IMP]

Status in OpenERP Modules (addons):
  Confirmed

Bug description:
  Hi,

  I'm interesting in base_calendar module, it's great. I found some bugs.
  For example the field exrule isn't implemented, this field is very useful because in dateutil rules you can set exceptions with a rule. I'm implemented this functionality with this field. I attached an improvement. Please take a look to file and maybe can improve my source, but the functionality it's ok  and it's works. 

  If I set exrule fields to:
  FREQ=WEEKLY;BYDAY=SA,SU;INTERVAL=1;UNTIL=20040326220000Z I avoid
  weekends in recursion set for example
  FREQ=DAILY;INTERVAL=1;UNTIL=20040326235959Z start in 2004-03-15
  19:00:00.

  Maybe could create a wizard to set exrule field as custom rule wizard.

  Then in my attachment I fixed a bug in compute_rule_string() if freq
  was None, because res_obj and obj isn't defined and the functionality
  is in function caller.