Skip to content

Commit

Permalink
[MERGE] forward port branch saas-11.3 up to ec5e27b
Browse files Browse the repository at this point in the history
  • Loading branch information
KangOl committed Apr 24, 2018
2 parents ddf601d + ec5e27b commit b192431
Show file tree
Hide file tree
Showing 123 changed files with 1,898 additions and 778 deletions.
9 changes: 7 additions & 2 deletions addons/account/i18n/pt_BR.po
Expand Up @@ -17,7 +17,7 @@
# Luiz Carlos de Lima <luiz.carlos@akretion.com.br>, 2016
# Ademílson F. Tonato <apraqueisso@gmail.com>, 2016
# Kayky de Brito <kayky_debritodossantos@hotmail.com>, 2016
# THIAGO MACÊDO <thiago95macedo@gmail.com>, 2016
# Thiago MACÊDO <thiago95macedo@gmail.com>, 2016
# Manel Tinoco <maneltinoco@gmail.com>, 2016
# Fábio Novais <fabionovais@aptu.com.br>, 2016
# zimbora <alexandre.ruffer@tkobr.com>, 2016
Expand All @@ -30,13 +30,14 @@
# mariana rodrigues <mariana12v@gmail.com>, 2017
# Raphael Rodrigues <raphael0608@gmail.com>, 2018
# Hildeberto Abreu Magalhães <hildeberto@gmail.com>, 2018
# Diego Bittencourt <diegomb86@gmail.com>, 2018
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server saas~11.2\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-03-22 14:10+0000\n"
"PO-Revision-Date: 2018-03-22 14:10+0000\n"
"Last-Translator: Hildeberto Abreu Magalhães <hildeberto@gmail.com>, 2018\n"
"Last-Translator: Diego Bittencourt <diegomb86@gmail.com>, 2018\n"
"Language-Team: Portuguese (Brazil) (https://www.transifex.com/odoo/teams/41243/pt_BR/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
Expand Down Expand Up @@ -7260,6 +7261,8 @@ msgid ""
"Please install a chart of accounts or create a miscellaneous journal before "
"proceeding."
msgstr ""
"Por favor instale o plano de contas ou crie um lançamento contábil variado "
"antes de proceder"

#. module: account
#: model:ir.ui.view,arch_db:account.view_account_form
Expand Down Expand Up @@ -10601,6 +10604,8 @@ msgid ""
"You cannot change the currency of the company since some journal items "
"already exist"
msgstr ""
"Você não pode alterar a moeda da empresa desde que já exista algum "
"lançamento contábil"

#. module: account
#: code:addons/account/models/account.py:271
Expand Down
21 changes: 11 additions & 10 deletions addons/account/i18n/zh_CN.po
Expand Up @@ -47,13 +47,14 @@
# e2f_cn c5 <jarvisn@ecinnovations.com>, 2018
# sunny sun <sunxiaoxia@inspur.com>, 2018
# John Lin <linyinhuan@139.com>, 2018
# Maie <m@maie.name>, 2018
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server saas~11.2\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-03-22 14:10+0000\n"
"PO-Revision-Date: 2018-03-22 14:10+0000\n"
"Last-Translator: John Lin <linyinhuan@139.com>, 2018\n"
"Last-Translator: Maie <m@maie.name>, 2018\n"
"Language-Team: Chinese (China) (https://www.transifex.com/odoo/teams/41243/zh_CN/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
Expand Down Expand Up @@ -1175,17 +1176,17 @@ msgstr "添加退款单"
#. module: account
#: model:ir.actions.act_window,help:account.action_account_journal_form
msgid "Add a journal"
msgstr ""
msgstr "添加一个日记账"

#. module: account
#: model:ir.actions.act_window,help:account.action_account_form
msgid "Add a new account"
msgstr ""
msgstr "添加一个新账户"

#. module: account
#: model:ir.actions.act_window,help:account.account_tag_action
msgid "Add a new tag"
msgstr ""
msgstr "添加一个新标签"

#. module: account
#: selection:account.cash.rounding,strategy:0
Expand Down Expand Up @@ -1219,7 +1220,7 @@ msgstr "额外的备注..."
#: selection:account.tax,type_tax_use:0
#: selection:account.tax.template,type_tax_use:0
msgid "Adjustment"
msgstr ""
msgstr "调整"

#. module: account
#: model:ir.model.fields,field_description:account.field_tax_adjustments_wizard__tax_id
Expand Down Expand Up @@ -1452,12 +1453,12 @@ msgstr "总额"
#. module: account
#: model:ir.model.fields,field_description:account.field_account_invoice_line__price_total
msgid "Amount (with Taxes)"
msgstr ""
msgstr "金额 (含税)"

#. module: account
#: model:ir.model.fields,field_description:account.field_account_invoice_line__price_subtotal
msgid "Amount (without Taxes)"
msgstr ""
msgstr "金额 (不含税)"

#. module: account
#: model:ir.model.fields,field_description:account.field_account_bank_statement_line__amount_currency
Expand Down Expand Up @@ -2909,7 +2910,7 @@ msgstr ""
#. module: account
#: model:ir.actions.act_window,help:account.action_invoice_tree1
msgid "Create a customer invoice"
msgstr ""
msgstr "创建一个客户发票"

#. module: account
#: selection:account.invoice.refund,filter_refund:0
Expand Down Expand Up @@ -2955,7 +2956,7 @@ msgstr ""
#. module: account
#: model:ir.actions.act_window,help:account.action_tax_form
msgid "Create a new tax"
msgstr ""
msgstr "创建一个新的税项"

#. module: account
#: model:ir.actions.act_window,help:account.action_invoice_in_refund
Expand Down Expand Up @@ -5778,7 +5779,7 @@ msgstr "负债"
#. module: account
#: model:ir.model.fields,field_description:account.field_account_invoice_report__nbr
msgid "Line Count"
msgstr ""
msgstr "行数"

#. module: account
#: model:ir.model.fields,help:account.field_account_invoice__move_id
Expand Down
5 changes: 4 additions & 1 deletion addons/account/models/account_invoice.py
Expand Up @@ -553,7 +553,10 @@ def invoice_print(self):
"""
self.ensure_one()
self.sent = True
return self.env.ref('account.account_invoices').report_action(self)
if self.user_has_groups('account.group_account_invoice'):
return self.env.ref('account.account_invoices').report_action(self)
else:
return self.env.ref('account.account_invoices_without_payment').report_action(self)

@api.multi
def action_invoice_sent(self):
Expand Down
4 changes: 2 additions & 2 deletions addons/account/models/chart_template.py
Expand Up @@ -853,7 +853,7 @@ def _create_tax_templates_from_rates(self, company_id):

@api.multi
def existing_accounting(self, company_id):
model_to_check = ['account.move.line', 'account.invoice', 'account.move', 'account.payment', 'account.bank.statement']
model_to_check = ['account.move.line', 'account.invoice', 'account.payment', 'account.bank.statement']
for model in model_to_check:
if len(self.env[model].search([('company_id', '=', company_id.id)])) > 0:
return True
Expand Down Expand Up @@ -888,7 +888,7 @@ def execute(self):
accounting_props.unlink()

# delete account, journal, tax, fiscal position and reconciliation model
models_to_delete = ['account.reconcile.model', 'account.fiscal.position', 'account.tax', 'account.journal']
models_to_delete = ['account.reconcile.model', 'account.fiscal.position', 'account.tax', 'account.move', 'account.journal']
for model in models_to_delete:
res = self.env[model].search([('company_id', '=', self.company_id.id)])
if len(res):
Expand Down
1 change: 1 addition & 0 deletions addons/account/models/reconciliation_widget.py
Expand Up @@ -338,6 +338,7 @@ def get_data_for_manual_reconciliation(self, res_type, res_ids=None, account_typ
partner_id = is_partner and row['partner_id'] or None
rec_prop = self._get_move_line_reconciliation_proposition(account.id, partner_id)
row['reconciliation_proposition'] = self._prepare_move_lines(rec_prop, target_currency=currency)
row['company_id'] = account.company_id.id
return rows

@api.model
Expand Down
1 change: 1 addition & 0 deletions addons/account/views/account_report.xml
Expand Up @@ -11,6 +11,7 @@
file="account.report_invoice_with_payments"
attachment="(object.state in ('open','paid')) and ('INV'+(object.number or '').replace('/','')+'.pdf')"
print_report_name="(object._get_printed_report_name())"
groups="account.group_account_invoice"
/>

<report
Expand Down
5 changes: 3 additions & 2 deletions addons/account_check_printing/i18n/pt_BR.po
Expand Up @@ -9,13 +9,14 @@
# falexandresilva <falexandresilva@gmail.com>, 2016
# danimaribeiro <danimaribeiro@gmail.com>, 2016
# Rodrigo de Almeida Sottomaior Macedo <rmsolucoeseminformatic4@gmail.com>, 2017
# Diego Bittencourt <diegomb86@gmail.com>, 2018
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server saas~11.2\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-03-22 14:10+0000\n"
"PO-Revision-Date: 2018-03-22 14:10+0000\n"
"Last-Translator: Rodrigo de Almeida Sottomaior Macedo <rmsolucoeseminformatic4@gmail.com>, 2017\n"
"Last-Translator: Diego Bittencourt <diegomb86@gmail.com>, 2018\n"
"Language-Team: Portuguese (Brazil) (https://www.transifex.com/odoo/teams/41243/pt_BR/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
Expand Down Expand Up @@ -86,7 +87,7 @@ msgstr "Impressão de Cheque"
#. module: account_check_printing
#: model:ir.model.fields,field_description:account_check_printing.field_account_journal__check_printing_payment_method_selected
msgid "Check Printing Payment Method Selected"
msgstr ""
msgstr "Verifique a impressão do método de pagamento selecionada"

#. module: account_check_printing
#: model:ir.model.fields,field_description:account_check_printing.field_res_config_settings__account_check_printing_margin_right
Expand Down
3 changes: 1 addition & 2 deletions addons/account_check_printing/models/account_payment.py
Expand Up @@ -11,7 +11,7 @@ class AccountRegisterPayments(models.TransientModel):
_inherit = "account.register.payments"

check_amount_in_words = fields.Char(string="Amount in Words")
check_manual_sequencing = fields.Boolean(related='journal_id.check_manual_sequencing')
check_manual_sequencing = fields.Boolean(related='journal_id.check_manual_sequencing', readonly=1)
# Note: a check_number == 0 means that it will be attributed when the check is printed
check_number = fields.Integer(string="Check Number", readonly=True, copy=False, default=0,
help="Number of the check corresponding to this payment. If your pre-printed check are not already numbered, "
Expand All @@ -34,7 +34,6 @@ def _prepare_payment_vals(self, invoices):
res = super(AccountRegisterPayments, self)._prepare_payment_vals(invoices)
if self.payment_method_id == self.env.ref('account_check_printing.account_payment_method_check'):
res.update({
'check_amount_in_words': self.currency_id.amount_to_text(res['amount']) if self.multi else self.check_amount_in_words,
'check_manual_sequencing': self.check_manual_sequencing,
})
return res
Expand Down
5 changes: 3 additions & 2 deletions addons/account_payment/i18n/pt_BR.po
Expand Up @@ -9,13 +9,14 @@
# danimaribeiro <danimaribeiro@gmail.com>, 2017
# mariana rodrigues <mariana12v@gmail.com>, 2018
# Raphael Rodrigues <raphael0608@gmail.com>, 2018
# Diego Bittencourt <diegomb86@gmail.com>, 2018
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server saas~11.2\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-03-22 14:10+0000\n"
"PO-Revision-Date: 2018-03-22 14:10+0000\n"
"Last-Translator: Raphael Rodrigues <raphael0608@gmail.com>, 2018\n"
"Last-Translator: Diego Bittencourt <diegomb86@gmail.com>, 2018\n"
"Language-Team: Portuguese (Brazil) (https://www.transifex.com/odoo/teams/41243/pt_BR/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
Expand Down Expand Up @@ -236,4 +237,4 @@ msgstr "Transações"
#. module: account_payment
#: model:ir.ui.view,arch_db:account_payment.payment_confirmation_status
msgid "Your payment has been authorized."
msgstr ""
msgstr "Seu pagamento foi autorizado."
11 changes: 9 additions & 2 deletions addons/analytic/i18n/pt_BR.po
Expand Up @@ -9,13 +9,14 @@
# Martin Trigaux, 2016
# Luiz Carlos de Lima <luiz.carlos@akretion.com.br>, 2016
# falexandresilva <falexandresilva@gmail.com>, 2018
# Diego Bittencourt <diegomb86@gmail.com>, 2018
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server saas~11.2\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-03-22 14:10+0000\n"
"PO-Revision-Date: 2018-03-22 14:10+0000\n"
"Last-Translator: falexandresilva <falexandresilva@gmail.com>, 2018\n"
"Last-Translator: Diego Bittencourt <diegomb86@gmail.com>, 2018\n"
"Language-Team: Portuguese (Brazil) (https://www.transifex.com/odoo/teams/41243/pt_BR/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
Expand Down Expand Up @@ -146,7 +147,7 @@ msgstr "Saldo"
#. module: analytic
#: model:ir.ui.view,arch_db:analytic.view_account_analytic_account_kanban
msgid "Balance:"
msgstr ""
msgstr "Saldo:"

#. module: analytic
#: model:ir.actions.act_window,name:analytic.action_analytic_account_form
Expand Down Expand Up @@ -298,6 +299,8 @@ msgid ""
" analytic accounts. You can track costs and revenues to analyse\n"
" your margins easily."
msgstr ""
"No Odoo, ordens de vendas e projetos são implementados usando\n"
"o analisador de contas. Você pode rastrear os custos e receitas para analisar suas margens facilmente."

#. module: analytic
#: model:ir.model.fields,field_description:analytic.field_account_analytic_account____last_update
Expand Down Expand Up @@ -388,6 +391,10 @@ msgid ""
" (fixed price invoices), on timesheets (based on the work done) or\n"
" on expenses (e.g. reinvoicing of travel costs)."
msgstr ""
"Receitas serão criadas automaticamente quando você cria uma fatura\n"
"para o cliente. As faturas podem ser criadas baseadas em ordens de venda\n"
"(faturas com preço fixo), no apontamento de horas (baseado no trabalho feito) ou \n"
"nas despesas (ex. reembolso de viagem)."

#. module: analytic
#: model:ir.model.fields,field_description:analytic.field_account_analytic_group__parent_right
Expand Down
5 changes: 3 additions & 2 deletions addons/analytic/i18n/zh_CN.po
Expand Up @@ -8,13 +8,14 @@
# Martin Trigaux, 2018
# liAnGjiA <liangjia@qq.com>, 2018
# 老窦 北京 <2662059195@qq.com>, 2018
# Maie <m@maie.name>, 2018
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server saas~11.2\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-03-22 14:10+0000\n"
"PO-Revision-Date: 2018-03-22 14:10+0000\n"
"Last-Translator: 老窦 北京 <2662059195@qq.com>, 2018\n"
"Last-Translator: Maie <m@maie.name>, 2018\n"
"Language-Team: Chinese (China) (https://www.transifex.com/odoo/teams/41243/zh_CN/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
Expand All @@ -37,7 +38,7 @@ msgstr ""
#. module: analytic
#: model:ir.actions.act_window,help:analytic.account_analytic_tag_action
msgid "Add a new tag"
msgstr ""
msgstr "添加一个新标签"

#. module: analytic
#: model:ir.model.fields,field_description:analytic.field_account_analytic_line__amount
Expand Down
9 changes: 9 additions & 0 deletions addons/base_import_module/models/ir_module.py
Expand Up @@ -24,6 +24,13 @@ class IrModule(models.Model):

imported = fields.Boolean(string="Imported Module")

@api.depends('name')
def _get_latest_version(self):
imported_modules = self.filtered(lambda m: m.imported and m.latest_version)
for module in imported_modules:
module.installed_version = module.latest_version
super(IrModule, self - imported_modules)._get_latest_version()

@api.multi
def _import_module(self, module, path, force=False):
known_mods = self.search([])
Expand All @@ -32,6 +39,8 @@ def _import_module(self, module, path, force=False):

terp = load_information_from_description_file(module, mod_path=path)
values = self.get_values_from_terp(terp)
if 'version' in terp:
values['latest_version'] = terp['version']

unmet_dependencies = set(terp['depends']).difference(installed_mods)

Expand Down
7 changes: 4 additions & 3 deletions addons/contacts/i18n/zh_CN.po
Expand Up @@ -5,13 +5,14 @@
# Translators:
# Jeffery CHEN Fan <jeffery9@gmail.com>, 2016
# Martin Trigaux, 2017
# Maie <m@maie.name>, 2018
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server saas~11.2\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-03-22 14:10+0000\n"
"PO-Revision-Date: 2018-03-22 14:10+0000\n"
"Last-Translator: Martin Trigaux, 2017\n"
"Last-Translator: Maie <m@maie.name>, 2018\n"
"Language-Team: Chinese (China) (https://www.transifex.com/odoo/teams/41243/zh_CN/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
Expand Down Expand Up @@ -65,7 +66,7 @@ msgstr "国家组"
#. module: contacts
#: model:ir.actions.act_window,help:contacts.action_contacts
msgid "Create a contact in your address book"
msgstr ""
msgstr "在你的地址簿中创建一个联系人"

#. module: contacts
#: model:ir.ui.menu,name:contacts.menu_country_state_partner
Expand All @@ -80,7 +81,7 @@ msgstr "定位"
#. module: contacts
#: model:ir.actions.act_window,help:contacts.action_contacts
msgid "Odoo helps you to easily track all activities related to a customer."
msgstr ""
msgstr "Odoo 帮助您轻松跟进与客户相关的所有活动。"

#. module: contacts
#: model:ir.ui.menu,name:contacts.res_partner_industry_menu
Expand Down

0 comments on commit b192431

Please sign in to comment.