Change days into timedelta overdue

issue5718
This commit is contained in:
Cédric Krier committed 2016-09-10 12:22:00 +02:00
1 parent ad6c3b0931
commit e485ff3137
3 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -89,10 +89,10 @@ Create dunning procedure::
>>> Procedure = Model.get('account.dunning.procedure')
>>> procedure = Procedure(name='Procedure Fee')
>>> level = procedure.levels.new()
>>> level.days = 5
>>> level.overdue = datetime.timedelta(5)
>>> level.fee = fee
>>> level = procedure.levels.new()
>>> level.days = 10
>>> level.overdue = datetime.timedelta(10)
>>> level.fee = fee_pc
>>> procedure.save()
+1 -1
View File
@@ -2,7 +2,7 @@
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<data>
<xpath expr="/form/field[@name='days']" position="after">
<xpath expr="/form/field[@name='overdue']" position="after">
<label name="fee"/>
<field name="fee"/>
</xpath>
+1 -1
View File
@@ -2,7 +2,7 @@
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<data>
<xpath expr="/tree/field[@name='days']" position="after">
<xpath expr="/tree/field[@name='overdue']" position="after">
<field name="fee" expand="1"/>
</xpath>
</data>