Merge lp:~unifield-team/unifield-addons/uf_869_change_text into lp:unifield-addons

Proposed by Duy VO
Status: Merged
Merged at revision: 4526
Proposed branch: lp:~unifield-team/unifield-addons/uf_869_change_text
Merge into: lp:unifield-addons
Diff against target: 13 lines (+2/-1)
1 file modified
stock/stock.py (+2/-1)
To merge this branch: bzr merge lp:~unifield-team/unifield-addons/uf_869_change_text
Reviewer Review Type Date Requested Status
UniField Dev Team Pending
Review via email: mp+94242@code.launchpad.net

Description of the change

JF, just one hard-coded word in the message, so it would not be necessary to create a hook method for that.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'stock/stock.py'
2--- stock/stock.py 2012-01-10 07:45:18 +0000
3+++ stock/stock.py 2012-02-22 18:14:24 +0000
4@@ -2698,7 +2698,8 @@
5 'location_dest_id': location_id,
6 })
7 move_ids.append(self._inventory_line_hook(cr, uid, line, value))
8- message = _('Inventory') + " '" + inv.name + "' "+ _("is done.")
9+ # Changed the text of the following line to "is confirmed" instead of "is done" due to the state value
10+ message = _('Inventory') + " '" + inv.name + "' "+ _("is confirmed.")
11 self.log(cr, uid, inv.id, message)
12 self.write(cr, uid, [inv.id], {'state': 'confirm', 'move_ids': [(6, 0, move_ids)]})
13 return True

Subscribers

People subscribed via source and target branches

to all changes: