mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 23:45:44 +07:00
[FIX] runbot_merge: tracking author is already a res.partner
Not sure why it didn't break tests in 16...
This commit is contained in:
parent
0a17454838
commit
3d33d0406e
@ -1460,9 +1460,7 @@ For your own safety I've ignored *everything in your entire comment*.
|
|||||||
if newhead:
|
if newhead:
|
||||||
authors = self.env.cr.precommit.data.get(f'mail.tracking.author.{self._name}', {})
|
authors = self.env.cr.precommit.data.get(f'mail.tracking.author.{self._name}', {})
|
||||||
for p in self:
|
for p in self:
|
||||||
if pid := authors.get(p.id):
|
if not (writer := authors.get(p.id)):
|
||||||
writer = self.env['res.partner'].browse(pid)
|
|
||||||
else:
|
|
||||||
writer = self.env.user.partner_id
|
writer = self.env.user.partner_id
|
||||||
p.unstage("updated by %s", writer.github_login or writer.name)
|
p.unstage("updated by %s", writer.github_login or writer.name)
|
||||||
# this can be batched
|
# this can be batched
|
||||||
|
Loading…
Reference in New Issue
Block a user