Add model, record and records attribute on Wizard
issue9421 review309861012
This commit is contained in:
1 parent
708388893c
commit
3ec758428a
1 file changed
+1
-3
+1
-3
@@ -88,14 +88,12 @@ class ProcessDunning(metaclass=PoolMeta):
|
||||
|
||||
def transition_send_email(self):
|
||||
pool = Pool()
|
||||
Dunning = pool.get('account.dunning')
|
||||
Log = pool.get('account.dunning.email.log')
|
||||
datamanager = SMTPDataManager()
|
||||
if not pool.test:
|
||||
Transaction().join(datamanager)
|
||||
dunnings = Dunning.browse(Transaction().context['active_ids'])
|
||||
logs = []
|
||||
for dunning in dunnings:
|
||||
for dunning in self.records:
|
||||
if dunning.level.send_email:
|
||||
log = dunning.send_email(datamanager=datamanager)
|
||||
if log:
|
||||
|
||||
Reference in new issue
Block a user