|
|
@ -4,7 +4,7 @@ |
|
|
|
# |
|
|
|
msgid "" |
|
|
|
msgstr "" |
|
|
|
"Project-Id-Version: Odoo Server 13.0\n" |
|
|
|
"Project-Id-Version: Odoo Server 14.0\n" |
|
|
|
"Report-Msgid-Bugs-To: \n" |
|
|
|
"Last-Translator: \n" |
|
|
|
"Language-Team: \n" |
|
|
@ -14,14 +14,24 @@ msgstr "" |
|
|
|
"Plural-Forms: \n" |
|
|
|
|
|
|
|
#. module: partner_identification |
|
|
|
#: code:addons/partner_identification/models/res_partner_id_category.py:0 |
|
|
|
#, python-format |
|
|
|
#: model_terms:ir.ui.view,arch_db:partner_identification.view_partner_id_category_form |
|
|
|
msgid "" |
|
|
|
"\n" |
|
|
|
"# Python code. Use failed = True to specify that the id number is not valid.\n" |
|
|
|
"# Use failed = True to specify that the id number is not valid.\n" |
|
|
|
"# You can use the following variables :\n" |
|
|
|
"# - self: browse_record of the current ID Category browse_record\n" |
|
|
|
"# - id_number: browse_record of ID number to validate" |
|
|
|
"# - id_number: browse_record of ID number to validate\n" |
|
|
|
"\n" |
|
|
|
"<b><i># Sample 1: ID number only contains digits</i></b>\n" |
|
|
|
"if not id_number.name.isdigit():\n" |
|
|
|
" failed = True\n" |
|
|
|
"else:\n" |
|
|
|
" failed = False\n" |
|
|
|
"\n" |
|
|
|
"<b><i># Sample 2: Length of ID number cannot exceed 10 chars</i></b>\n" |
|
|
|
"failed = len(id_number.name) > 10 and True or False\n" |
|
|
|
"\n" |
|
|
|
"<b><i># Sample 3: ID number must start with the category code</i></b>\n" |
|
|
|
"failed = not id_number.name.startswith(self.code) and True or False" |
|
|
|
msgstr "" |
|
|
|
|
|
|
|
#. module: partner_identification |
|
|
@ -76,6 +86,7 @@ msgid "Created on" |
|
|
|
msgstr "" |
|
|
|
|
|
|
|
#. module: partner_identification |
|
|
|
#: model:ir.model.fields,field_description:partner_identification.field_res_partner__display_name |
|
|
|
#: model:ir.model.fields,field_description:partner_identification.field_res_partner_id_category__display_name |
|
|
|
#: model:ir.model.fields,field_description:partner_identification.field_res_partner_id_number__display_name |
|
|
|
msgid "Display Name" |
|
|
@ -103,6 +114,7 @@ msgid "Expired" |
|
|
|
msgstr "" |
|
|
|
|
|
|
|
#. module: partner_identification |
|
|
|
#: model:ir.model.fields,field_description:partner_identification.field_res_partner__id |
|
|
|
#: model:ir.model.fields,field_description:partner_identification.field_res_partner_id_category__id |
|
|
|
#: model:ir.model.fields,field_description:partner_identification.field_res_partner_id_number__id |
|
|
|
msgid "ID" |
|
|
@ -152,6 +164,7 @@ msgid "Issued on" |
|
|
|
msgstr "" |
|
|
|
|
|
|
|
#. module: partner_identification |
|
|
|
#: model:ir.model.fields,field_description:partner_identification.field_res_partner____last_update |
|
|
|
#: model:ir.model.fields,field_description:partner_identification.field_res_partner_id_category____last_update |
|
|
|
#: model:ir.model.fields,field_description:partner_identification.field_res_partner_id_number____last_update |
|
|
|
msgid "Last Modified on" |
|
|
@ -225,6 +238,11 @@ msgstr "" |
|
|
|
msgid "Place of Issuance" |
|
|
|
msgstr "" |
|
|
|
|
|
|
|
#. module: partner_identification |
|
|
|
#: model_terms:ir.ui.view,arch_db:partner_identification.view_partner_id_category_form |
|
|
|
msgid "Python Validation Code:" |
|
|
|
msgstr "" |
|
|
|
|
|
|
|
#. module: partner_identification |
|
|
|
#: model:ir.model.fields,help:partner_identification.field_res_partner_id_category__validation_code |
|
|
|
msgid "Python code called to validate an id number." |
|
|
|