~camptocamp/c2c-financial-addons/trunk

« back to all changes in this revision

Viewing changes to account_statement_base_completion/statement.py

  • Committer: Alexandre Fayolle @ camptocamp
  • Date: 2012-08-13 12:15:30 UTC
  • mfrom: (30.1.1 c2c-financial-addons-trunk)
  • Revision ID: alexandre.fayolle@camptocamp.com-20120813121530-9z0o3evkthnnz2ml
[MRG] from fix_spelling branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
 
39
39
class AccountStatementProfil(Model):
40
40
    """
41
 
    Extend the class to add rules per profil that will match at least the partner,
 
41
    Extend the class to add rules per profile that will match at least the partner,
42
42
    but it could also be used to match other values as well.
43
43
    """
44
44
    
45
 
    _inherit = "account.statement.profil"
 
45
    _inherit = "account.statement.profile"
46
46
    
47
47
    _columns={
48
48
        # @Akretion : For now, we don't implement this features, but this would probably be there:
114
114
    _columns={
115
115
        'sequence': fields.integer('Sequence', help="Lower means paresed first."),
116
116
        'name': fields.char('Name', size=128),
117
 
        'profile_ids': fields.many2many('account.statement.profil', 
 
117
        'profile_ids': fields.many2many('account.statement.profile', 
118
118
            rel='as_rul_st_prof_rel', 
119
119
            string='Related statement profiles'),
120
120
        'function_to_call': fields.selection(_get_functions, 'Method'),
297
297
            
298
298
            ...}
299
299
        """
300
 
        profile_obj = self.pool.get('account.statement.profil')
 
300
        profile_obj = self.pool.get('account.statement.profile')
301
301
        st_obj = self.pool.get('account.bank.statement.line')
302
302
        res={}
303
303
        errors_stack = []