Skip to content

Commit

Permalink
Merge remote-tracking branch 'odoo/10.0' into 10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
OCA-git-bot committed Feb 14, 2017
2 parents fc33d21 + c1c519a commit 49a9573
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 13 deletions.
2 changes: 1 addition & 1 deletion addons/account/data/invoice_action_data.xml
Expand Up @@ -79,7 +79,7 @@ from ${object.company_id.name}.
</span>
</td>
<td valign="middle" align="right">
<img src="/logo.png" style="padding: 0px; margin: 0px; height: auto; width: 80px;" alt="${company.name}">
<img src="/logo.png?company=${company.id}" style="padding: 0px; margin: 0px; height: auto; width: 80px;" alt="${company.name}">
</td>
</tr>
</table>
Expand Down
18 changes: 16 additions & 2 deletions addons/account/i18n/account.pot
Expand Up @@ -6,8 +6,8 @@ msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-02-03 14:29+0000\n"
"PO-Revision-Date: 2017-02-03 14:29+0000\n"
"POT-Creation-Date: 2017-02-14 10:20+0000\n"
"PO-Revision-Date: 2017-02-14 10:20+0000\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
Expand Down Expand Up @@ -8655,6 +8655,13 @@ msgstr ""
msgid "This label will be displayed on report to show the balance computed for the given comparison filter."
msgstr ""

#. module: account
#. openerp-web
#: code:addons/account/static/src/xml/account_reconciliation.xml:273
#, python-format
msgid "This move's amount is higher than the transaction's amount. Click to register a partial payment and keep the payment balance open."
msgstr ""

#. module: account
#: model:ir.model.fields,help:account.field_accounting_report_debit_credit
msgid "This option allows you to get more details about the way your balances are computed. Because it is space consuming, we do not allow to use it while doing a comparison."
Expand Down Expand Up @@ -8944,6 +8951,13 @@ msgstr ""
msgid "Undistributed Profits/Losses"
msgstr ""

#. module: account
#. openerp-web
#: code:addons/account/static/src/xml/account_reconciliation.xml:278
#, python-format
msgid "Undo the partial reconciliation."
msgstr ""

#. module: account
#: model:ir.model.fields,field_description:account.field_account_invoice_line_price_unit
#: model:ir.ui.view,arch_db:account.report_invoice_document
Expand Down
10 changes: 8 additions & 2 deletions addons/account/static/src/xml/account_reconciliation.xml
Expand Up @@ -269,9 +269,15 @@
</table>
</t>

<t t-name="icon_do_partial_reconciliation"><i class="do_partial_reconcile_button fa fa-exclamation-triangle" data-content="This move's amount is higher than the transaction's amount. Click to register a partial payment and keep the payment balance open."></i></t>
<t t-name="icon_do_partial_reconciliation">
<t t-set="message_content">This move's amount is higher than the transaction's amount. Click to register a partial payment and keep the payment balance open.</t>
<i class="do_partial_reconcile_button fa fa-exclamation-triangle" t-att-data-content="message_content"></i>
</t>

<t t-name="icon_undo_partial_reconciliation"><i class="undo_partial_reconcile_button fa fa-exclamation-triangle" data-content="Undo the partial reconciliation."></i></t>
<t t-name="icon_undo_partial_reconciliation">
<t t-set="message_content">Undo the partial reconciliation.</t>
<i class="undo_partial_reconcile_button fa fa-exclamation-triangle" t-att-data-content="message_content"></i>
</t>

<!-- manual reconciliation -->

Expand Down
2 changes: 1 addition & 1 deletion addons/mrp/wizard/mrp_product_produce_views.xml
Expand Up @@ -17,7 +17,7 @@
<field name="product_uom_id" readonly="1"/>
</div>
<field name="product_tracking" invisible="1"/>
<field name="lot_id" required="1" attrs="{'invisible': [('product_tracking', '=', 'none')]}" domain="[('product_id','=',product_id)]" context="{'default_product_id': product_id}"/>
<field name="lot_id" attrs="{'invisible': [('product_tracking', '=', 'none')], 'required': [('product_tracking', '!=', 'none')]}" domain="[('product_id','=',product_id)]" context="{'default_product_id': product_id}"/>
</group>
</group>
<group>
Expand Down
2 changes: 1 addition & 1 deletion addons/sale/data/mail_template_data.xml
Expand Up @@ -80,7 +80,7 @@ from ${object.company_id.name}.
</span>
</td>
<td valign="middle" align="right">
<img src="/logo.png" style="padding: 0px; margin: 0px; height: auto; width: 80px;" alt="${company.name}">
<img src="/logo.png?company=${company.id}" style="padding: 0px; margin: 0px; height: auto; width: 80px;" alt="${company.name}">
</td>
</tr>
</table>
Expand Down
3 changes: 3 additions & 0 deletions addons/sale/views/sale_views.xml
Expand Up @@ -664,6 +664,9 @@
<xpath expr="//page/field[@name='invoice_line_ids']/tree/field[@name='product_id']" position="after">
<field name="layout_category_id" groups="sale.group_sale_layout"/>
</xpath>
<xpath expr="//field[@name='discount']" position="attributes">
<attribute name="groups">sale.group_discount_per_so_line</attribute>
</xpath>
</data>
</field>
</record>
Expand Down
19 changes: 13 additions & 6 deletions addons/web/controllers/main.py
Expand Up @@ -1091,12 +1091,19 @@ def company_logo(self, dbname=None, **kw):
# create an empty registry
registry = odoo.modules.registry.Registry(dbname)
with registry.cursor() as cr:
cr.execute("""SELECT c.logo_web, c.write_date
FROM res_users u
LEFT JOIN res_company c
ON c.id = u.company_id
WHERE u.id = %s
""", (uid,))
company = int(kw['company']) if kw and kw.get('company') else False
if company:
cr.execute("""SELECT logo_web, write_date
FROM res_company
WHERE id = %s
""", (company,))
else:
cr.execute("""SELECT c.logo_web, c.write_date
FROM res_users u
LEFT JOIN res_company c
ON c.id = u.company_id
WHERE u.id = %s
""", (uid,))
row = cr.fetchone()
if row and row[0]:
image_base64 = str(row[0]).decode('base64')
Expand Down

0 comments on commit 49a9573

Please sign in to comment.