diff options
| author | Christophe Simonis <chs@odoo.com> | 2016-06-03 11:29:49 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2016-06-03 11:29:49 +0200 |
| commit | 30864b6d008748a70fc686722d312de6055219c8 (patch) | |
| tree | eec97d98ce9d68f3124dbe9f28d9b7d45265e7b7 /addons | |
| parent | d11c7d140192335a664f6b38f9c220131ca41ed5 (diff) | |
| parent | 5419485e72e1537cb116ada3520edbaa8c4e931d (diff) | |
[MERGE] forward port of branch 9.0 up to 5419485
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/account/wizard/account_invoice_refund.py | 3 | ||||
| -rw-r--r-- | addons/base_import/static/src/xml/import.xml | 4 | ||||
| -rw-r--r-- | addons/l10n_lu/scripts/tax.xls | bin | 259072 -> 259072 bytes | |||
| -rw-r--r-- | addons/product_extended/product_extended_view.xml | 2 | ||||
| -rw-r--r-- | addons/website_forum/controllers/main.py | 3 | ||||
| -rw-r--r-- | addons/website_sale/views/templates.xml | 2 |
6 files changed, 8 insertions, 6 deletions
diff --git a/addons/account/wizard/account_invoice_refund.py b/addons/account/wizard/account_invoice_refund.py index 638b0e1fc1e..adfa6538c95 100644 --- a/addons/account/wizard/account_invoice_refund.py +++ b/addons/account/wizard/account_invoice_refund.py @@ -98,7 +98,8 @@ class AccountInvoiceRefund(models.TransientModel): 'invoice_line_ids': invoice_lines, 'tax_line_ids': tax_lines, 'date': date, - 'name': description + 'name': description, + 'origin': inv.origin }) for field in ('partner_id', 'account_id', 'currency_id', 'payment_term_id', 'journal_id'): diff --git a/addons/base_import/static/src/xml/import.xml b/addons/base_import/static/src/xml/import.xml index f173263e187..b67aba5c027 100644 --- a/addons/base_import/static/src/xml/import.xml +++ b/addons/base_import/static/src/xml/import.xml @@ -413,8 +413,8 @@ <t t-if="error.moreinfo" t-raw="info(error.moreinfo)"/> </t> <t t-extend="ListView.buttons"> - <t t-if='widget.options.import_enabled' t-jquery="button.o_list_button_add" t-operation="after"> - <button type="button" class="btn btn-sm btn-default o_list_button_import"> + <t t-jquery="button.o_list_button_add" t-operation="after"> + <button t-if='widget.options.import_enabled' type="button" class="btn btn-sm btn-default o_list_button_import"> Import </button> </t> diff --git a/addons/l10n_lu/scripts/tax.xls b/addons/l10n_lu/scripts/tax.xls Binary files differindex a807833848f..0a3a0182728 100644 --- a/addons/l10n_lu/scripts/tax.xls +++ b/addons/l10n_lu/scripts/tax.xls diff --git a/addons/product_extended/product_extended_view.xml b/addons/product_extended/product_extended_view.xml index 1428d2e7293..f9b6a85bc6e 100644 --- a/addons/product_extended/product_extended_view.xml +++ b/addons/product_extended/product_extended_view.xml @@ -6,6 +6,7 @@ <field name="model">product.template</field> <field name="priority">3</field> <field name="inherit_id" ref="product.product_template_only_form_view" /> + <field name="groups_id" eval="[(4, ref('mrp.group_mrp_user'))]"/> <field name="arch" type="xml"> <div name="standard_price_uom" position="after"> <button name="%(action_view_compute_price_wizard)d" @@ -19,4 +20,3 @@ </record> </data> </openerp> - diff --git a/addons/website_forum/controllers/main.py b/addons/website_forum/controllers/main.py index 7539e8b66ce..b3d307d9175 100644 --- a/addons/website_forum/controllers/main.py +++ b/addons/website_forum/controllers/main.py @@ -337,8 +337,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))) diff --git a/addons/website_sale/views/templates.xml b/addons/website_sale/views/templates.xml index 09cddf05e27..3d246c04e5f 100644 --- a/addons/website_sale/views/templates.xml +++ b/addons/website_sale/views/templates.xml @@ -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> |
