[FIX] account: fixed incorrect calls to _(..) function
[odoo/odoo.git] / addons / account / wizard / account_use_model.py
index baf09f5..51bd3a9 100644 (file)
@@ -41,8 +41,8 @@ class account_use_model(osv.osv_memory):
                 for line in model.lines_id:
                     if line.date_maturity == 'partner':
                         if not line.partner_id:
-                            raise osv.except_osv(_('Error !'), _("Maturity date of entry line generated by model line '%s' is based on partner payment term! \
-                                                    \nPlease define partner on it!"%(line.name)))
+                            raise osv.except_osv(_('Error !'), _("Maturity date of entry line generated by model line '%s' is based on partner payment term!"\
+                                                                    "\nPlease define partner on it!")%line.name)
         pass
 
     def create_entries(self, cr, uid, ids, context=None):
@@ -124,4 +124,4 @@ class account_use_model(osv.osv_memory):
 
 account_use_model()
 
-# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
\ No newline at end of file
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: