Ashvin Rathod (OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/trunk-account_followups_rules_add_test_ara-ara
 into lp:openobject-addons.

Requested reviews:
  OpenERP Core Team (openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-account_followups_rules_add_test_ara-ara/+merge/67030

Hello,

==> Add a boolean field(test) on the wizard: If tick, it doesn't increase the 
followup level of partners

==> Fix: many2many field partner_ids gives error

==> Missing access rule of account followup is already fixed in 
lp:~openerp-dev/openobject-addons/trunk-bug-788139-mtr branch

Thanks,
ara

-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-account_followups_rules_add_test_ara-ara/+merge/67030
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-account_followups_rules_add_test_ara-ara.
=== modified file 'account_followup/wizard/account_followup_print.py'
--- account_followup/wizard/account_followup_print.py	2011-03-17 17:33:16 +0000
+++ account_followup/wizard/account_followup_print.py	2011-07-06 12:32:32 +0000
@@ -115,12 +115,13 @@
     _name = 'account.followup.print.all'
     _description = 'Print Followup & Send Mail to Customers'
     _columns = {
-        'partner_ids': fields.many2many('account_followup.stat.by.partner', 'partner_stat_rel', 'osv_memory_id', 'partner_id', 'Partners', required=True, domain="[('account_id.type', '=', 'receivable'), ('account_id.reconcile', '=', True), ('reconcile_id','=', False), ('state', '!=', 'draft'), ('account_id.active', '=', True), ('debit', '>', 0)]"),
+        'partner_ids': fields.many2many('account_followup.stat.by.partner', 'partner_stat_rel', 'osv_memory_id', 'partner_id', 'Partners', required=True),
         'email_conf': fields.boolean('Send email confirmation'),
         'email_subject': fields.char('Email Subject', size=64),
         'partner_lang': fields.boolean('Send Email in Partner Language', help='Do not change message text, if you want to send email in partner language, or configure from company'),
         'email_body': fields.text('Email body'),
-        'summary': fields.text('Summary', required=True, readonly=True)
+        'summary': fields.text('Summary', required=True, readonly=True),
+        'test': fields.boolean('Test File', help='Check if you want to print follow ups without changing follow ups level.')
     }
     def _get_summary(self, cr, uid, context=None):
         if context is None:
@@ -316,7 +317,7 @@
         data['followup_id'] = 'followup_id' in context and context['followup_id'] or False
         date = 'date' in context and context['date'] or data['date']
         for id in to_update.keys():
-            if to_update[id]['partner_id'] in data['partner_ids']:
+            if to_update[id]['partner_id'] in data['partner_ids'] and not data['test']:
                 cr.execute(
                     "UPDATE account_move_line "\
                     "SET followup_line_id=%s, followup_date=%s "\

=== modified file 'account_followup/wizard/account_followup_print_view.xml'
--- account_followup/wizard/account_followup_print_view.xml	2011-01-14 00:11:01 +0000
+++ account_followup/wizard/account_followup_print_view.xml	2011-07-06 12:32:32 +0000
@@ -86,6 +86,7 @@
                             <page string="Email Settings">
                                 <field name="email_conf" colspan="4"/>
                                 <field name="partner_lang" colspan="4"/>
+                                <field name="test" colspan="4"/>
                                 <field name="email_subject" colspan="4"/>
                                 <separator string="Email body" colspan="4" />
                                 <field name="email_body" colspan="4" nolabel="1"/>

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to