[MERGE] forward port of branch saas-6 up to d5df729
This commit is contained in:
Binary file not shown.
@@ -336,8 +336,9 @@ class WebsiteForum(http.Controller):
|
||||
question = post.parent_id if post.parent_id else post
|
||||
if kwargs.get('comment') and post.forum_id.id == forum.id:
|
||||
# TDE FIXME: check that post_id is the question or one of its answers
|
||||
body = tools.mail.plaintext2html(kwargs['comment'])
|
||||
post.with_context(mail_create_nosubscribe=True).message_post(
|
||||
body=kwargs.get('comment'),
|
||||
body=body,
|
||||
message_type='comment',
|
||||
subtype='mt_comment')
|
||||
return werkzeug.utils.redirect("/forum/%s/question/%s" % (slug(forum), slug(question)))
|
||||
|
||||
@@ -1082,7 +1082,7 @@
|
||||
</div>
|
||||
<div t-attf-class="form-group #{error.get('shipping_state_id') and 'has-error' or ''} col-lg-6">
|
||||
<label class="control-label label-optional" for="shipping_state_id">State / Province</label>
|
||||
<select name="shipping_state_id" class="form-control" t-att-readonly=" 'readonly' if shipping_id >= 0 else ''">
|
||||
<select name="shipping_state_id" class="form-control" t-att-disabled=" 'disabled' if shipping_id >= 0 else ''">
|
||||
<option value="">State / Province...</option>
|
||||
<t t-foreach="states or []" t-as="state">
|
||||
<option t-att-value="state.id" style="display:none;" t-att-data-country_id="state.country_id.id" t-att-selected="state.id == checkout.get('shipping_state_id')"><t t-esc="state.name"/></option>
|
||||
|
||||
Reference in New Issue
Block a user