Browse Source

Avoid creation of job positions in partner form

pull/226/head
Antonio Espinosa 9 years ago
committed by Jairo Llopis
parent
commit
8327e6c8c3
  1. 8
      crm_job_position/i18n/crm_job_position.pot
  2. 10
      crm_job_position/i18n/es.po
  3. 4
      crm_job_position/views/res_partner_view.xml

8
crm_job_position/i18n/crm_job_position.pot

@ -6,8 +6,8 @@ msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-05-27 09:03+0000\n"
"PO-Revision-Date: 2015-05-27 09:03+0000\n"
"POT-Creation-Date: 2015-11-16 10:18+0000\n"
"PO-Revision-Date: 2015-11-16 10:18+0000\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
@ -110,3 +110,7 @@ msgstr ""
msgid "job_position"
msgstr ""
#. module: crm_job_position
#: field:res.partner,function:0
msgid "Detailed job position"
msgstr ""

10
crm_job_position/i18n/es.po

@ -1,13 +1,13 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * crm_job_position
# * crm_job_position
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-05-27 09:03+0000\n"
"PO-Revision-Date: 2015-05-27 09:03+0000\n"
"POT-Creation-Date: 2015-11-16 10:18+0000\n"
"PO-Revision-Date: 2015-11-16 10:18+0000\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
@ -110,3 +110,7 @@ msgstr "Comercial"
msgid "job_position"
msgstr ""
#. module: crm_job_position
#: field:res.partner,function:0
msgid "Detailed job position"
msgstr "Puesto de trabajo detallado"

4
crm_job_position/views/res_partner_view.xml

@ -11,13 +11,13 @@
<field name="job_position"
placeholder="Job position"
attrs="{'invisible': [('is_company','=', True)]}"
options='{"no_open": True}'/>
options="{'no_open': True, 'no_create': True}"/>
</field>
<xpath expr="//field[@name='child_ids']/form//field[@name='function']" position="before">
<field name="job_position"
placeholder="Job position"
attrs="{'invisible': [('is_company','=', True)]}"
options='{"no_open": True}'/>
options="{'no_open': True, 'no_create': True}"/>
</xpath>
</field>
</record>

Loading…
Cancel
Save