Page 1 of 1

Prolongation doesn't work

PostPosted: Wed May 05, 2010 10:26 pm
by mjcerutti
I'm working on this scenario:

OS: Windows
OpenERP Server 5.0.3
OpenERP Client 5.0.3

Methodology:
Model: inv.agreement
Filter: state=="running"
Calculation line:
Calulation over 1 product with this parameters:
Secuence: 1
Product Type: Service
Advanced:
obj = self.pool.get('inv.agreement')
res_list = []
for cur_object in obj.browse(cr, uid, obj_ids, {}):
result = True
res_list.append(result)
Description: desc = convert_date(self, now().strftime('%Y-%m-%d'))
Quantity: quant=1

Service:
Analytic Journal: Timesheet Journal
Sale Pricelist: Precio de lista para clientes Argentina (ARS)
Invoicing based on: Périod
Inteval unit: Month
Invoice every: 1
Methodology: [The methodology]
Workteam: None

Template
Payment: In Advance
Repeat missed: checked
Analytic Acount: [Blank]
Interval Unit: 6
Prolongation:
Prolongation: prolongation
Number of units: 1
Inteval unit: Year

------------------------------------------------------------------------

Ok, this is more or less the scenario.
What I want to do is this: my partner have and agreement for one year, minumun, and after the initial period the agreement auto prolongs for another year meanwhile the partner wants the service.

When I create the agreement the first twelve invoice are generated and the invoice log works correctly. After that period, the agreement doesn't prolong and no other invoice logs are created.
This is a strange issue, cause sometimes it does correctly his job and sometimes does not.
I'm trying restarting the server, but it does't has any effect. The prolong just does't work.

Another thing is, when I go back to the methodology, the quantity expression and description expression are blank.

I've been testing the invoicing module on 5.0.9 server, but it was not working properly neither.

I really apreciate your help.

Thanks in advance.

Re: Prolongation doesn't work

PostPosted: Wed May 05, 2010 11:24 pm
by mjcerutti
Please, don't hit me. I'm so stupid.

The cron Prolong Check was setted to run... two year in future.
This is beacuse i was testing the module I didn't check the cron job.

But !!... I'm still having troubles with the calculation lines in methodoly expresion and OpenERP 5.0.9

Appologies, and thanks again.

Re: Prolongation doesn't work

PostPosted: Mon May 10, 2010 1:53 pm
by sraps
Could you describe the problem with calculation rules in more detail...

Kaspars

Re: Prolongation doesn't work

PostPosted: Tue May 11, 2010 10:34 pm
by mjcerutti
Sorry scraps. I already change my server back to 5.0.3

The calculation lines were quite simple:
Only one calulation line over 1 product with this parameters:
Secuence: 1
Product Type: Service
Advanced:
obj = self.pool.get('inv.agreement')
res_list = []
for cur_object in obj.browse(cr, uid, obj_ids, {}):
result = True
res_list.append(result)
Description: desc = convert_date(self, now().strftime('%Y-%m-%d'))
Quantity: quant=1

Now I have another trouble (Server 5.0.3): The invoice lines are duplicated.

I have a methodology with one calculation line like I described before. Then I create a service based on that methodology. Then I create a contract for one partner.
The first invoice lines are fine: 1 product, 1 invoice line. But in the second invoice the lines for that product appears duplicated.

Re: Prolongation doesn't work

PostPosted: Wed Nov 27, 2013 8:05 am
by zingzong707
The cron Prolong Check was setted to run... two year in future. This is beacuse i was testing the module I didn't check the cron job. whats that mean?