~acsone-openerp/account-financial-tools/account_credit_control_portal_portal_lp1248906

« back to all changes in this revision

Viewing changes to account_credit_control/wizard/credit_control_marker.py

  • Committer: Joel Grand-Guillaume
  • Author(s): nicolas.bessi at camptocamp
  • Date: 2013-09-18 11:37:52 UTC
  • mfrom: (109.2.47 port-of-credit-control)
  • Revision ID: joel.grandguillaume@camptocamp.com-20130918113752-19pzw705wiu5k98z
[MRG] Port of credit control to version 7.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
19
19
#
20
20
##############################################################################
21
 
from openerp.osv.orm import  TransientModel, fields
22
 
from openerp.osv.osv import except_osv
 
21
from openerp.osv import orm, fields
23
22
from openerp.tools.translate import _
24
23
 
25
24
 
26
 
class CreditControlMarker(TransientModel):
 
25
class CreditControlMarker(orm.TransientModel):
27
26
    """Change the state of lines in mass"""
28
27
 
29
28
    _name = 'credit.control.marker'
81
80
        form = self.browse(cr, uid, wiz_id, context)
82
81
 
83
82
        if not form.line_ids:
84
 
            raise except_osv(_('Error'), _('No credit control lines selected.'))
 
83
            raise orm.except_orm(_('Error'), _('No credit control lines selected.'))
85
84
 
86
85
        line_ids = [l.id for l in form.line_ids]
87
86