Skip to content

Commit

Permalink
Merging from upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
peter committed Jan 20, 2019
1 parent 266cd05 commit d0381c1
Show file tree
Hide file tree
Showing 168 changed files with 2,987 additions and 1,206 deletions.
30 changes: 28 additions & 2 deletions addons/account/i18n/account.pot
Expand Up @@ -6,8 +6,8 @@ msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-12-19 08:20+0000\n"
"PO-Revision-Date: 2018-12-19 08:20+0000\n"
"POT-Creation-Date: 2019-01-09 10:31+0000\n"
"PO-Revision-Date: 2019-01-09 10:31+0000\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
Expand Down Expand Up @@ -175,11 +175,27 @@ msgstr ""
msgid "<em>Draft Invoice</em>"
msgstr ""

#. module: account
#: model_terms:ir.ui.view,arch_db:account.account_move_line_view_kanban
#: model_terms:ir.ui.view,arch_db:account.view_account_move_kanban
msgid "<i class=\"fa fa-clock-o\" aria-label=\"Date\" role=\"img\" title=\"Date\"/>"
msgstr ""

#. module: account
#: model_terms:ir.ui.view,arch_db:account.view_account_payment_kanban
msgid "<i class=\"fa fa-clock-o\" role=\"img\" aria-label=\"Date\" title=\"Date\"/>"
msgstr ""

#. module: account
#: model_terms:ir.ui.view,arch_db:account.portal_invoice_page
msgid "<i class=\"fa fa-download\"/> Download"
msgstr ""

#. module: account
#: model_terms:ir.ui.view,arch_db:account.account_journal_dashboard_kanban_view
msgid "<i class=\"fa fa-ellipsis-v\" aria-label=\"Selection\" role=\"img\" title=\"Selection\"/>"
msgstr ""

#. module: account
#: model_terms:ir.ui.view,arch_db:account.portal_invoice_page
msgid "<i class=\"fa fa-fw fa-comments\"/><b>Send message</b>"
Expand Down Expand Up @@ -225,6 +241,16 @@ msgstr ""
msgid "<span class=\"badge badge-pill badge-warning\"><i class=\"fa fa-fw fa-remove\" aria-label=\"Cancelled\" title=\"Cancelled\" role=\"img\"/><span class=\"d-none d-md-inline\"> Cancelled</span></span>"
msgstr ""

#. module: account
#: model_terms:ir.ui.view,arch_db:account.res_config_settings_view_form
msgid "<span class=\"fa fa-lg fa-building-o\" title=\"Values set here are company-specific.\" aria-label=\"Values set here are company-specific.\" groups=\"base.group_multi_company\" role=\"img\"/>"
msgstr ""

#. module: account
#: model_terms:ir.ui.view,arch_db:account.res_config_settings_view_form
msgid "<span class=\"fa fa-lg fa-building-o\" title=\"Values set here are company-specific.\"/>"
msgstr ""

#. module: account
#: model_terms:ir.ui.view,arch_db:account.invoice_supplier_form
msgid "<span class=\"o_form_label\" attrs=\"{'invisible': ['|',('state','!=','draft'), ('type','!=','in_invoice')]}\">Draft Bill</span>\n"
Expand Down
8 changes: 4 additions & 4 deletions addons/account/models/account_invoice.py
Expand Up @@ -772,12 +772,12 @@ def _onchange_partner_id(self):
msg = _('Cannot find a chart of accounts for this company, You should configure it. \nPlease go to Account Configuration.')
raise RedirectWarning(msg, action.id, _('Go to the configuration panel'))

if type in ('out_invoice', 'out_refund'):
account_id = rec_account.id
payment_term_id = p.property_payment_term_id.id
else:
if type in ('in_invoice', 'in_refund'):
account_id = pay_account.id
payment_term_id = p.property_supplier_payment_term_id.id
else:
account_id = rec_account.id
payment_term_id = p.property_payment_term_id.id

delivery_partner_id = self.get_delivery_partner_id()
fiscal_position = self.env['account.fiscal.position'].get_fiscal_position(self.partner_id.id, delivery_id=delivery_partner_id)
Expand Down
2 changes: 1 addition & 1 deletion addons/account/models/account_journal_dashboard.py
Expand Up @@ -360,7 +360,7 @@ def open_action(self):
action['view_id'] = False
if self.type == 'purchase':
new_help = self.env['account.invoice'].with_context(ctx).complete_empty_list_help()
action.update({'help': action.get('help', '') + new_help})
action.update({'help': (action.get('help') or '') + new_help})
return action

@api.multi
Expand Down
2 changes: 1 addition & 1 deletion addons/account/report/account_aged_partner_balance.py
Expand Up @@ -28,7 +28,7 @@ def _get_partner_move_lines(self, account_type, date_from, target_move, period_l
ctx = self._context
periods = {}
date_from = fields.Date.from_string(date_from)
start = date_from - relativedelta(days=1)
start = date_from
for i in range(5)[::-1]:
stop = start - relativedelta(days=period_length)
period_name = str((5-(i+1)) * period_length + 1) + '-' + str((5-i) * period_length)
Expand Down
6 changes: 5 additions & 1 deletion addons/account/static/src/scss/account_reconciliation.scss
Expand Up @@ -289,6 +289,10 @@
overflow: auto;
border: 1px solid #ddd;
border-radius: 0 0 5px 5px;
> div.quick_add > .o_reconcile_models {
max-height: 54px;
overflow: auto;
}
}
.quick_add {
margin-bottom: 7px;
Expand Down Expand Up @@ -357,4 +361,4 @@
}
}
}
}
}
1 change: 0 additions & 1 deletion addons/account/tests/test_account_customer_invoice.py
Expand Up @@ -158,7 +158,6 @@ def test_customer_invoice_tax(self):

invoice = self.env['account.invoice'].create(dict(
name="Test Customer Invoice",
reference_type="none",
payment_term_id=payment_term.id,
journal_id=journalrec.id,
partner_id=partner3.id,
Expand Down
1 change: 0 additions & 1 deletion addons/account/wizard/account_invoice_send_views.xml
Expand Up @@ -83,7 +83,6 @@
view_type="form"
context="{
'default_template_id': ref('account.email_template_edi_invoice'),
'default_is_print': False,
'mark_invoice_as_sent': True,
}"
groups="account.group_account_invoice"/>
Expand Down
4 changes: 2 additions & 2 deletions addons/account_payment/controllers/payment.py
Expand Up @@ -77,11 +77,11 @@ def invoice_pay_token(self, invoice_id, pm_id=None, **kwargs):
vals = {
'payment_token_id': token.id,
'type': 'server2server',
'return_url': success_url,
'return_url': _build_url_w_params(success_url, params),
}

tx = invoice_sudo._create_payment_transaction(vals)
PaymentProcessing.add_payment_transaction(tx)

params['success'] = 'pay_invoice'
return request.redirect(_build_url_w_params(success_url, params))
return request.redirect('/payment/process')
9 changes: 7 additions & 2 deletions addons/base_automation/i18n/base_automation.pot
Expand Up @@ -6,8 +6,8 @@ msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-10-08 06:49+0000\n"
"PO-Revision-Date: 2018-10-08 06:49+0000\n"
"POT-Creation-Date: 2019-01-09 10:31+0000\n"
"PO-Revision-Date: 2019-01-09 10:31+0000\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
Expand Down Expand Up @@ -242,6 +242,11 @@ msgstr ""
msgid "Delay type"
msgstr ""

#. module: base_automation
#: model:ir.model,name:base_automation.model_ir_demo
msgid "Demo"
msgstr ""

#. module: base_automation
#: model:ir.model.fields,field_description:base_automation.field_base_automation__display_name
#: model:ir.model.fields,field_description:base_automation.field_base_automation_lead_test__display_name
Expand Down
11 changes: 8 additions & 3 deletions addons/base_vat/i18n/base_vat.pot
Expand Up @@ -4,17 +4,22 @@
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server saas~11.5\n"
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-09-21 13:17+0000\n"
"PO-Revision-Date: 2018-09-21 13:17+0000\n"
"POT-Creation-Date: 2019-01-09 10:31+0000\n"
"PO-Revision-Date: 2019-01-09 10:31+0000\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: base_vat
#: model_terms:ir.ui.view,arch_db:base_vat.res_config_settings_view_form
msgid "<span class=\"fa fa-lg fa-building-o\" title=\"Values set here are company-specific.\" aria-label=\"Values set here are company-specific.\" groups=\"base.group_multi_company\" role=\"img\"/>"
msgstr ""

#. module: base_vat
#: model:ir.model,name:base_vat.model_res_company
msgid "Companies"
Expand Down
48 changes: 44 additions & 4 deletions addons/crm/i18n/crm.pot
Expand Up @@ -6,8 +6,8 @@ msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-10-08 06:48+0000\n"
"PO-Revision-Date: 2018-10-08 06:48+0000\n"
"POT-Creation-Date: 2019-01-09 10:31+0000\n"
"PO-Revision-Date: 2019-01-09 10:31+0000\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
Expand Down Expand Up @@ -54,6 +54,41 @@ msgstr ""
msgid "<b>Invite coworkers</b> via email.<br/><i>Enter one email per line.</i>"
msgstr ""

#. module: crm
#: model_terms:ir.ui.view,arch_db:crm.crm_case_form_view_oppor
msgid "<i class=\"fa fa-ban\" style=\"color: red;\" role=\"img\" title=\"This email is blacklisted for mass mailing\" aria-label=\"Blacklisted\" attrs=\"{'invisible': ['|', ('is_blacklisted', '=', False), ('partner_address_email', '!=', False)]}\" groups=\"base.group_user\"/>"
msgstr ""

#. module: crm
#: model_terms:ir.ui.view,arch_db:crm.crm_case_form_view_oppor
msgid "<i class=\"fa fa-ban\" style=\"color: red;\" role=\"img\" title=\"This email is blacklisted for mass mailing\" aria-label=\"Blacklisted\" attrs=\"{'invisible': ['|', ('partner_is_blacklisted', '=', False), ('partner_address_email', '=', False)]}\" groups=\"base.group_user\"/>"
msgstr ""

#. module: crm
#: model_terms:ir.ui.view,arch_db:crm.crm_case_form_view_leads
msgid "<i class=\"fa fa-ban\" style=\"color: red;\" role=\"img\" title=\"This email is blacklisted for mass mailing\" aria-label=\"Blacklisted\" attrs=\"{'invisible': [('is_blacklisted', '=', False)]}\" groups=\"base.group_user\"/>"
msgstr ""

#. module: crm
#: model_terms:ir.ui.view,arch_db:crm.view_crm_lead_kanban
msgid "<i class=\"fa fa-comments\" aria-label=\"Messages\" role=\"img\"/>"
msgstr ""

#. module: crm
#: model_terms:ir.ui.view,arch_db:crm.crm_case_kanban_view_leads
msgid "<i class=\"fa fa-comments\" aria-label=\"Unread messages\" role=\"img\"/>"
msgstr ""

#. module: crm
#: model_terms:ir.ui.view,arch_db:crm.crm_lead_partner_kanban_view
msgid "<i class=\"fa fa-fw fa-calendar\" aria-label=\"Meetings\" role=\"img\" title=\"Meetings\"/>"
msgstr ""

#. module: crm
#: model_terms:ir.ui.view,arch_db:crm.crm_lead_partner_kanban_view
msgid "<i class=\"fa fa-fw fa-star\" aria-label=\"Favorites\" role=\"img\" title=\"Favorites\"/>"
msgstr ""

#. module: crm
#: code:addons/crm/models/crm_team.py:139
#, python-format
Expand Down Expand Up @@ -127,6 +162,7 @@ msgid "Activities Done Target"
msgstr ""

#. module: crm
#: model_terms:ir.ui.view,arch_db:crm.view_crm_case_leads_filter
#: model_terms:ir.ui.view,arch_db:crm.view_crm_case_opportunities_filter
msgid "Activities Todo"
msgstr ""
Expand Down Expand Up @@ -859,12 +895,13 @@ msgid "Format phone numbers based on national conventions"
msgstr ""

#. module: crm
#: code:addons/crm/models/crm_lead.py:606
#: code:addons/crm/models/crm_lead.py:613
#, python-format
msgid "From %s : %s"
msgstr ""

#. module: crm
#: model_terms:ir.ui.view,arch_db:crm.view_crm_case_leads_filter
#: model_terms:ir.ui.view,arch_db:crm.view_crm_case_opportunities_filter
msgid "Future Activities"
msgstr ""
Expand Down Expand Up @@ -1091,12 +1128,13 @@ msgid "Last Updated on"
msgstr ""

#. module: crm
#: model_terms:ir.ui.view,arch_db:crm.view_crm_case_leads_filter
#: model_terms:ir.ui.view,arch_db:crm.view_crm_case_opportunities_filter
msgid "Late Activities"
msgstr ""

#. module: crm
#: code:addons/crm/models/crm_lead.py:913
#: code:addons/crm/models/crm_lead.py:920
#: selection:crm.activity.report,lead_type:0
#: selection:crm.lead,type:0
#: model:ir.model.fields,field_description:crm.field_crm_activity_report__lead_id
Expand Down Expand Up @@ -1956,6 +1994,7 @@ msgid "Show Lead Menu"
msgstr ""

#. module: crm
#: model_terms:ir.ui.view,arch_db:crm.view_crm_case_leads_filter
#: model_terms:ir.ui.view,arch_db:crm.view_crm_case_opportunities_filter
msgid "Show all opportunities for which the next action date is before today"
msgstr ""
Expand Down Expand Up @@ -2206,6 +2245,7 @@ msgid "Today"
msgstr ""

#. module: crm
#: model_terms:ir.ui.view,arch_db:crm.view_crm_case_leads_filter
#: model_terms:ir.ui.view,arch_db:crm.view_crm_case_opportunities_filter
msgid "Today Activities"
msgstr ""
Expand Down
4 changes: 4 additions & 0 deletions addons/crm/models/crm_lead.py
Expand Up @@ -1204,6 +1204,10 @@ def message_new(self, msg_dict, custom_values=None):
if msg_dict.get('priority') in dict(crm_stage.AVAILABLE_PRIORITIES):
defaults['priority'] = msg_dict.get('priority')
defaults.update(custom_values)

# assign right company
if 'company_id' not in defaults and 'team_id' in defaults:
defaults['company_id'] = self.env['crm.team'].browse(defaults['team_id']).company_id.id
return super(Lead, self).message_new(msg_dict, custom_values=defaults)

def _message_post_after_hook(self, message, *args, **kwargs):
Expand Down

0 comments on commit d0381c1

Please sign in to comment.