[imp] docstring for a function field trigger

This commit is contained in:
Leonardo Pistone
2014-03-07 11:20:21 +01:00
parent 063812d7c4
commit fb9f6f4c32

View File

@@ -160,7 +160,14 @@ class AccountBankStatement(Model):
return profile_ids[0] if profile_ids else False
def _get_statement_from_profile(self, cr, uid, profile_ids, context=None):
"""Weirdness warning! self is another class."""
"""Stored function field trigger.
Weirdness warning: we are in the class account.bank.statement, but
when the ORM calls this, self is an account.statement.profile.
Returns a list of account.bank.statement ids to recompute.
"""
triggered = []
for profile in self.browse(cr, uid, profile_ids, context=context):
triggered += [st.id for st in profile.bank_statement_ids]