|
@ -7,6 +7,7 @@ class NewMemberCardWizard(models.TransientModel): |
|
|
needed and the eater/worker that is concerned. |
|
|
needed and the eater/worker that is concerned. |
|
|
""" |
|
|
""" |
|
|
_name = 'membercard.new.wizard' |
|
|
_name = 'membercard.new.wizard' |
|
|
|
|
|
_description = "Member Card" |
|
|
|
|
|
|
|
|
def _get_default_partner(self): |
|
|
def _get_default_partner(self): |
|
|
return self.env.context['active_id'] |
|
|
return self.env.context['active_id'] |
|
@ -22,9 +23,10 @@ class NewMemberCardWizard(models.TransientModel): |
|
|
client._new_card(self.new_comment, self.env.uid, barcode=self.force_barcode) |
|
|
client._new_card(self.new_comment, self.env.uid, barcode=self.force_barcode) |
|
|
client.member_card_to_be_printed = True |
|
|
client.member_card_to_be_printed = True |
|
|
|
|
|
|
|
|
class RequestMemberCardPrintingWizard(models.TransientModel): |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class RequestMemberCardPrintingWizard(models.TransientModel): |
|
|
_name = 'membercard.requestprinting.wizard' |
|
|
_name = 'membercard.requestprinting.wizard' |
|
|
|
|
|
_description = "Member Card - Request Print Wizard" |
|
|
|
|
|
|
|
|
def _get_selected_partners(self): |
|
|
def _get_selected_partners(self): |
|
|
return self.env.context['active_ids'] |
|
|
return self.env.context['active_ids'] |
|
@ -36,9 +38,10 @@ class RequestMemberCardPrintingWizard(models.TransientModel): |
|
|
def request_printing(self): |
|
|
def request_printing(self): |
|
|
self.partner_ids.write({'member_card_to_be_printed' : True}) |
|
|
self.partner_ids.write({'member_card_to_be_printed' : True}) |
|
|
|
|
|
|
|
|
class SetAsPrintedWizard(models.TransientModel): |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class SetAsPrintedWizard(models.TransientModel): |
|
|
_name = 'membercard.set_as_printed.wizard' |
|
|
_name = 'membercard.set_as_printed.wizard' |
|
|
|
|
|
_description = "Member card - Set as printed wizard" |
|
|
|
|
|
|
|
|
def _get_selected_partners(self): |
|
|
def _get_selected_partners(self): |
|
|
return self.env.context['active_ids'] |
|
|
return self.env.context['active_ids'] |
|
|