diff --git a/addons/account_followup/account_followup.py b/addons/account_followup/account_followup.py index bf504d0b743..c798c703f37 100644 --- a/addons/account_followup/account_followup.py +++ b/addons/account_followup/account_followup.py @@ -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"), diff --git a/addons/account_followup/account_followup_demo.xml b/addons/account_followup/account_followup_demo.xml index 9680a2b6b39..2bf627de9b7 100644 --- a/addons/account_followup/account_followup_demo.xml +++ b/addons/account_followup/account_followup_demo.xml @@ -10,6 +10,7 @@ Level 0 : 15 net days + 0 days 15 @@ -26,6 +27,7 @@ Best Regards, Level 1 : 30 net days + 1 days 30 @@ -47,6 +49,7 @@ Best Regards, Level 2 : 45 days end of month + 2 end_of_month 45 diff --git a/addons/account_followup/test/account_followup.yml b/addons/account_followup/test/account_followup.yml index ae0b2e89bec..c69fdb112c6 100644 --- a/addons/account_followup/test/account_followup.yml +++ b/addons/account_followup/test/account_followup.yml @@ -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