factures: designation est un unicode (si possible)
This commit is contained in:
parent
d23bda8bd2
commit
8b3832355e
4 changed files with 40 additions and 18 deletions
|
@ -457,7 +457,7 @@ class Dialog(machine.Dialog, blacklist.Dialog):
|
|||
|
||||
def box_choose_item(tags):
|
||||
choices = []
|
||||
for code, article in gestion.config.factures.items.items():
|
||||
for code, article in gestion.config.factures.ITEMS.items():
|
||||
choices.append((code, u"%s%s" % (article['designation'], (u' (%s€)' % article['pu']) if article['pu'] != '*' else ""), 1 if code in tags else 0))
|
||||
return self.dialog.checklist(
|
||||
text="",
|
||||
|
@ -564,5 +564,5 @@ class Dialog(machine.Dialog, blacklist.Dialog):
|
|||
output=tags,
|
||||
cancel_cont=cont,
|
||||
error_cont=self_cont,
|
||||
codes_todo=[([self.dialog.DIALOG_OK], choose_item, [proprio, tags, copy.deepcopy(gestion.config.factures.items), self_cont])]
|
||||
codes_todo=[([self.dialog.DIALOG_OK], choose_item, [proprio, tags, copy.deepcopy(gestion.config.factures.ITEMS), self_cont])]
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue