Update point of sale plugin for menu hook

This commit is contained in:
tkhaew 2013-11-23 16:20:14 +07:00
parent 9d4b564fc3
commit 118ac5a4b0

View file

@ -251,7 +251,7 @@ class Plugin(BasePlugin):
item.setFlags(Qt.ItemIsSelectable | Qt.ItemIsUserCheckable | Qt.ItemIsEnabled | Qt.ItemIsDragEnabled)
def receive_menu(self, menu):
def receive_menu(self, menu, addr):
menu.addAction(_("Request amount"), self.edit_amount)
menu.addAction(_("Show Invoice"), lambda: self.toggle_QR_window(True))