def _more_form_options(self, form_options): """ Add invoice specific form options to the options returned to the end user :param dict form_options: The options returned to the end user :returns: The form_options with new elements """ form_options.update({ "payment_conditions": json_payment_conditions(self.request), }) return form_options
def _more_form_options(self, form_options): """ Add estimation specific form options to the options returned to the end user :param dict form_options: The options returned to the end user :returns: The form_options with new elements """ form_options.update({ "payment_conditions": json_payment_conditions(self.request), 'deposits': DEPOSIT_OPTIONS, "payment_times": PAYMENT_TIMES_OPTIONS, "payment_displays": PAYMENT_DISPLAY_OPTIONS, }) return form_options