mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
init hatchtec module
This commit is contained in:
@@ -4,10 +4,10 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 12.0+e-20181123\n"
|
||||
"Project-Id-Version: Odoo Server 12.0+e-20181122\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2018-11-26 16:13+0000\n"
|
||||
"PO-Revision-Date: 2018-11-26 16:13+0000\n"
|
||||
"POT-Creation-Date: 2018-11-27 17:02+0000\n"
|
||||
"PO-Revision-Date: 2018-11-27 17:02+0000\n"
|
||||
"Last-Translator: <>\n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
@@ -18,19 +18,13 @@ msgstr ""
|
||||
#. module: app_base_chinese
|
||||
#: model_terms:ir.ui.view,arch_db:app_base_chinese.app_view_partner_form
|
||||
msgid "(edit)"
|
||||
msgstr ""
|
||||
msgstr "(编辑)"
|
||||
|
||||
#. module: app_base_chinese
|
||||
#: model_terms:ir.ui.view,arch_db:app_base_chinese.app_view_partner_form
|
||||
msgid "Address"
|
||||
msgstr "地址"
|
||||
|
||||
#. module: app_base_chinese
|
||||
#: code:addons/app_base_chinese/models/account.py:16
|
||||
#, python-format
|
||||
msgid "Cannot generate an unused account code."
|
||||
msgstr "无法生成没有被使用的科目代码"
|
||||
|
||||
#. module: app_base_chinese
|
||||
#: model_terms:ir.ui.view,arch_db:app_base_chinese.app_view_partner_form
|
||||
msgid "City"
|
||||
@@ -69,7 +63,7 @@ msgstr "简称"
|
||||
#. module: app_base_chinese
|
||||
#: model_terms:ir.ui.view,arch_db:app_base_chinese.app_view_partner_form
|
||||
msgid "State"
|
||||
msgstr "省/自治区/直辖市"
|
||||
msgstr "省份"
|
||||
|
||||
#. module: app_base_chinese
|
||||
#: model_terms:ir.ui.view,arch_db:app_base_chinese.app_view_partner_form
|
||||
@@ -79,7 +73,7 @@ msgstr "街道..."
|
||||
#. module: app_base_chinese
|
||||
#: model:ir.model.fields,help:app_base_chinese.field_res_partner_category__sequence
|
||||
msgid "Used to order partner category"
|
||||
msgstr "用于排序显示"
|
||||
msgstr "显示排序"
|
||||
|
||||
#. module: app_base_chinese
|
||||
#: model_terms:ir.ui.view,arch_db:app_base_chinese.app_view_partner_form
|
||||
@@ -89,15 +83,15 @@ msgstr "邮编"
|
||||
#. module: app_base_chinese
|
||||
#: model_terms:ir.ui.view,arch_db:app_base_chinese.app_view_partner_form
|
||||
msgid "e.g. VIP001"
|
||||
msgstr "如:VIP001"
|
||||
msgstr ""
|
||||
|
||||
#. module: app_base_chinese
|
||||
#: model_terms:ir.ui.view,arch_db:app_base_chinese.app_view_partner_form
|
||||
msgid "Mobile:"
|
||||
msgstr "手机:"
|
||||
msgid "手机:"
|
||||
msgstr ""
|
||||
|
||||
#. module: app_base_chinese
|
||||
#: model_terms:ir.ui.view,arch_db:app_base_chinese.app_view_partner_form
|
||||
msgid "Tel:"
|
||||
msgstr "电话:"
|
||||
msgid "电话:"
|
||||
msgstr ""
|
||||
|
||||
|
||||
@@ -1,17 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from odoo.exceptions import UserError, ValidationError
|
||||
from odoo import api, fields, models, _
|
||||
|
||||
class AccountAccount(models.Model):
|
||||
_inherit = "account.account"
|
||||
|
||||
@api.model
|
||||
def _search_new_account_code(self, company, digits, prefix):
|
||||
for num in range(1, 100):
|
||||
new_code = str(prefix.ljust(digits - 1, '0')) + str(num)
|
||||
rec = self.search([('code', '=', new_code), ('company_id', '=', company.id)], limit=1)
|
||||
if not rec:
|
||||
return new_code
|
||||
raise UserError(_('Cannot generate an unused account code.'))
|
||||
|
||||
Reference in New Issue
Block a user