Skip to content
Snippets Groups Projects
Commit d5cdb96d authored by Marco Folco's avatar Marco Folco
Browse files

Merge branch 'SOF-46-Remodelar_OS_prestaciones' into '12.0-stage'

[MOD] health insurance

See merge request !35
parents 106a3ccd 0e7c2a23
No related branches found
No related tags found
1 merge request!35[MOD] health insurance
No preview for this file type
......@@ -6,8 +6,8 @@ msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-08-18 18:28+0000\n"
"PO-Revision-Date: 2020-08-18 15:30-0300\n"
"POT-Creation-Date: 2020-08-18 20:28+0000\n"
"PO-Revision-Date: 2020-08-18 17:29-0300\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
......@@ -215,6 +215,13 @@ msgstr "Agrupador de obras sociales"
msgid "Insurance plan"
msgstr "Plan de obra social"
#. module: health_insurance
#: model:ir.model.fields,field_description:health_insurance.field_res_partner__health_insurance_plan_ids
#: model:ir.model.fields,field_description:health_insurance.field_res_users__health_insurance_plan_ids
#: model_terms:ir.ui.view,arch_db:health_insurance.insurance_grouper_view_form
msgid "Insurances"
msgstr "Obras sociales"
#. module: health_insurance
#: model_terms:ir.ui.view,arch_db:health_insurance.insurance_grouper_view_form
#: model_terms:ir.ui.view,arch_db:health_insurance.res_partner_insurance_plan_view_form
......@@ -274,6 +281,12 @@ msgstr "Última actualización el"
msgid "Logo"
msgstr ""
#. module: health_insurance
#: model:ir.model.fields,field_description:health_insurance.field_res_partner__main_insurance_plan_id
#: model:ir.model.fields,field_description:health_insurance.field_res_users__main_insurance_plan_id
msgid "Main Insurance"
msgstr "Obra social principal"
#. module: health_insurance
#: model_terms:ir.ui.view,arch_db:health_insurance.insurance_grouper_view_form
#: model_terms:ir.ui.view,arch_db:health_insurance.res_partner_insurance_plan_view_form
......@@ -338,13 +351,6 @@ msgstr "Teléfono:"
msgid "Plan"
msgstr ""
#. module: health_insurance
#: model:ir.model.fields,field_description:health_insurance.field_res_partner__health_insurance_plan_ids
#: model:ir.model.fields,field_description:health_insurance.field_res_users__health_insurance_plan_ids
#: model_terms:ir.ui.view,arch_db:health_insurance.insurance_grouper_view_form
msgid "Plans"
msgstr "Planes"
#. module: health_insurance
#: selection:res.partner,type:0
msgid "Private Address"
......
......@@ -39,9 +39,12 @@ class Partner(models.Model):
#Insurance fields
health_insurance_plan_ids = fields.One2many(
'health.insurance.plan',
'partner_id',
string='Plans')
'insurance_id',
string='Insurances')
main_insurance_plan_id = fields.Many2one(
'health.insurance.plan',
'Main Insurance')
can_import_roll = fields.Boolean(string='Can import roll?')
requires_plan = fields.Boolean(string='Requires plan?')
......
......@@ -31,13 +31,18 @@
</group>
</group>
<notebook>
<page name="health_insurance_plans" string="Plans" autofocus="autofocus">
<field name="health_insurance_plan_ids">
<tree editable="top">
<field name="name"/>
<field name="code"/>
</tree>
</field>
<page name="health_insurance_plans" string="Insurances" autofocus="autofocus">
<group>
<field name="main_insurance_plan_id" domain="[('id','in',health_insurance_plan_ids)]"/>
</group>
<group>
<field name="health_insurance_plan_ids">
<tree editable="top">
<field name="name"/>
<field name="code"/>
</tree>
</field>
</group>
</page>
<page string="Contacts &amp; Addresses">
<field name="child_ids" mode="kanban">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment