changeset 5146:bfafb37a7063

Solve task #16194: Include a list in the insurance Plan Product policies
author Luis Falcon <falcon@gnuhealth.org>
date Mon, 16 May 2022 18:30:20 +0100
parents 626f36f83990
children dddacbe73a88
files tryton/health/health_view.xml tryton/health_insurance/view/gnuhealth_insurance_plan_product_policy_tree.xml
diffstat 2 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tryton/health/health_view.xml
+++ b/tryton/health/health_view.xml
@@ -1093,12 +1093,21 @@
             <field name="name">gnuhealth_insurance_plan</field>
         </record>
 
+       <record model="ir.action.act_window" id="gnuhealth_action_insurance_plan">
+            <field name="name">Insurance Plans</field>
+            <field name="res_model">gnuhealth.insurance.plan</field>
+        </record>
+
         <record model="ir.ui.view" id="gnuhealth_insurance_plan_tree">
             <field name="model">gnuhealth.insurance.plan</field>
             <field name="type">tree</field>
             <field name="name">gnuhealth_insurance_plan_tree</field>
         </record>
 
+        <menuitem name="Insurance Plans" action="gnuhealth_action_insurance_plan"
+            parent="gnuhealth_conf_insurances" sequence="1"
+            id="gnuhealth_conf_edit_insurance_plan" icon="gnuhealth-list"/>
+
 
  <!-- Insurances companies -->
 
--- a/tryton/health_insurance/view/gnuhealth_insurance_plan_product_policy_tree.xml
+++ b/tryton/health_insurance/view/gnuhealth_insurance_plan_product_policy_tree.xml
@@ -1,5 +1,5 @@
 <?xml version="1.0"?>
-<tree>
+<tree editable="1">
     <field name="plan" expand="1"/>
     <field name="product" expand="1"/>
     <field name="product_category" expand="1"/>