Commit 4d290375 authored by Luca Cristaldi's avatar Luca Cristaldi

fix creation of consuption line

parent 693551e9
from trytond.model import ModelView, fields, Workflow
from trytond.pool import PoolMeta
from trytond.pool import PoolMeta,Pool
from trytond.pyson import Eval
__all__ = ['Subscription']
......@@ -34,9 +34,9 @@ class Subscription(metaclass=PoolMeta):
if (line.next_consumption_date is None
and not line.consumed):
if subscription.include:
subscription.next_invoice_date = (subscription.invoice_start_date or subscription.start_date)
line.next_consumption_date = (subscription.invoice_start_date or subscription.start_date)
line.next_consumption_date = (line.compute_next_consumption_date())
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment