[account] subscription wizard generates entries with wrong date

Bug #500591 reported by invitu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Undecided
Unassigned

Bug Description

Hello

When generating the subscription entries using account/wizard/wizard_subscription_generate.py , the entry line dates, entry dates and entry period are set to current date/period.
If we need to generate subscription entries "a posteriori" for subscriptions, it should take the subscription line date and corresponding period

Regards

Related branches

Revision history for this message
invitu (invitu) wrote :

Here is a small patch that only fixes a syntax error

*** account/wizard/wizard_subscription_generate.py 2009-12-26 09:18:32.000000000 -1000
--- account/wizard/wizard_subscription_generate.py_new 2009-12-26 09:18:20.000000000 -1000
***************
*** 30,36 ****

  _subscription_form = '''<?xml version="1.0"?>
  <form string="%s">
! <seperator string="Generate entries before:" colspan="4"/>
      <field name="date"/>
  </form>''' % ('Subscription Compute',)

--- 30,36 ----

  _subscription_form = '''<?xml version="1.0"?>
  <form string="%s">
! <separator string="Generate entries before:" colspan="4"/>
      <field name="date"/>
  </form>''' % ('Subscription Compute',)

Changed in openobject-addons:
status: New → Confirmed
Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Thank you for reporting.
It has been fixed by revision 2515 <email address hidden>.

Changed in openobject-addons:
status: Confirmed → Fix Released
Revision history for this message
invitu (invitu) wrote :

Could you also fix the small spelling error on line 33 ?

seperator --> separator

thx

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Yes Good man,

Thank you for reporting.

Corrected by revision 2516 <email address hidden>.

Revision history for this message
invitu (invitu) wrote :

Hello

I just have tested the wizard, the entry date and the entry period are still set to current date.

For example, if I confirm a subscription on december,30th that should generate an entry for november,1st (the subscription line date is generated for november,1st), date is set to december 30th and period is set to 12/2009 for both entry and entry lines.

The date should be set to november,1st and period to 11/2009 for both entry and entry lines

Regards

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Hello Invitu,

There is some confusion.

Can you please make it clear for these cases?

Subscription is having 12 lines with dates(1stjan 2010,1st feb 2010,....,1st dec 2010)
I go to The wizard of creation of subscription entries.

1. I enter a date 3rd jan 2010. This will create an account move for the subscription line 1st jan 2010. so When we look at Subscription line 1st jan 2010,Entry will appear with period jan 2010 and date 1st jan.

Tell me if you have any query.

2. I enter a date 3rd april 2010. This will check for the subscription lines with no account moves( from 1st jan to 3rd april).It will find 3 lines (1st Feb , 1sr March, 1st April). This will create account moves for these 3 subscription lines.
so When we look at Subscription line:
A. 1st feb 2010,Entry will appear with period feb 2010 and date 1st feb.
B. 1st mar 2010,Entry will appear with period mar 2010 and date 1st mar.
C. 1st April 2010,Entry will appear with period april 2010 and date 1st apr.

As per what you say, it should create entries for previous month (dec 30 craetes entry for nov. )? Clarify this please.

Thank you.

Changed in openobject-addons:
status: Fix Released → Incomplete
Revision history for this message
invitu (invitu) wrote :

Hello Jay

I am SORRY

I did not pull correctly your commit.

Everything is ok

Sorry again for inconvenience

Regards

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

No need to say sorry.
Thank you for your response. Keep posting.

Changed in openobject-addons:
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.