Change days into timedelta overdue
issue5718
This commit is contained in:
1 parent
ad6c3b0931
commit
e485ff3137
3 files changed
+4
-4
No files matched your search
@@ -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()
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
Reference in new issue
Block a user