[IMP]account_followup: Add Sequence Fields to account_followup
authoraag (OpenERP) <aag@tinyerp.co.in>
Mon, 9 May 2011 10:06:20 +0000 (15:36 +0530)
committeraag (OpenERP) <aag@tinyerp.co.in>
Mon, 9 May 2011 10:06:20 +0000 (15:36 +0530)
bzr revid: aag@tinyerp.co.in-20110509100620-lhkd3cvw3h1zqqq0

addons/account_followup/account_followup.py
addons/account_followup/account_followup_demo.xml
addons/account_followup/test/account_followup.yml

index bf504d0..c798c70 100644 (file)
@@ -41,6 +41,7 @@ class followup_line(osv.osv):
     _description = 'Follow-Up Criteria'
     _columns = {
         'name': fields.char('Name', size=64, required=True),
+        'sequence': fields.integer('Sequence', help="Gives the sequence order when displaying a list of follow-up lines."),
         'delay': fields.integer('Days of delay'),
         'start': fields.selection([('days','Net Days'),('end_of_month','End of Month')], 'Type of Term', size=64, required=True),
         'followup_id': fields.many2one('account_followup.followup', 'Follow Ups', required=True, ondelete="cascade"),
index 9680a2b..2bf627d 100644 (file)
@@ -10,6 +10,7 @@
 
         <record id="demo_followup_line1" model="account_followup.followup.line">
             <field name="name">Level 0 : 15 net days</field>
+            <field name="sequence">0</field>
             <field name="start">days</field>
             <field name="delay">15</field>
             <field name="followup_id" ref="demo_followup1"/>
@@ -26,6 +27,7 @@ Best Regards,
 
         <record id="demo_followup_line2" model="account_followup.followup.line">
             <field name="name">Level 1 : 30 net days</field>
+            <field name="sequence">1</field>
             <field name="start">days</field>
             <field name="delay">30</field>
             <field name="followup_id" ref="demo_followup1"/>
@@ -47,6 +49,7 @@ Best Regards,
 
         <record id="demo_followup_line3" model="account_followup.followup.line">
             <field name="name">Level 2 : 45 days end of month</field>
+            <field name="sequence">2</field>
             <field name="start">end_of_month</field>
             <field name="delay">45</field>
             <field name="followup_id" ref="demo_followup1"/>
index ae0b2e8..c69fdb1 100644 (file)
@@ -6,6 +6,7 @@
     followup_line:
       - delay: 15
         name: 'level 0: 15 days'
+        sequence: 0
         start: days
         description: Dear %(partner_name)s,\n\nException made if there was a mistake
           of ours, it seems that the following amount staid unpaid. Please, take appropriate
@@ -15,6 +16,7 @@
           (+32).10.68.94.39.\n\nBest Regards,\n
       - delay: 30
         name: 'level1: 30 days'
+        sequence: 1
         start: days
         description: Dear %(partner_name)s,\n\nException made if there was a mistake
           of ours, it seems that the following amount staid unpaid. Please, take appropriate
@@ -24,6 +26,7 @@
           (+32).10.68.94.39.\n\nBest Regards,\n
       - delay: 45
         name: 'level 2: 45 days'
+        sequence: 2
         start: days
         description: Dear %(partner_name)s,\n\nException made if there was a mistake
           of ours, it seems that the following amount staid unpaid. Please, take appropriate