~scigghiateam/openerp/recupero_protocolli

« back to all changes in this revision

Viewing changes to account/account.py

  • Committer: Andrea Cometa
  • Date: 2012-01-11 17:22:12 UTC
  • Revision ID: info@andreacometa.it-20120111172212-rb3506plarjrvnr3
corretto unlink su account.invoice

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
        def unlink(self, cr, uid, ids, context=None):
21
21
                # ----- Cicla gli indici per scrivere nella tabella di recupero protocolli
22
22
                for account_id in ids:
23
 
                        protocollo = self.browse(cr, uid, account_id).number
 
23
                        protocollo = self.browse(cr, uid, account_id).internal_number
24
24
                        if protocollo:
25
25
                                data = self.browse(cr, uid, account_id).date_invoice
26
26
                                self.pool.get('ir.protocolli_da_recuperare').create(cr, uid,