Skip to content

Commit

Permalink
[IMP]connector_pms: make it installable
Browse files Browse the repository at this point in the history
  • Loading branch information
DarioLodeiros committed Nov 7, 2024
1 parent d1b643d commit d508663
Show file tree
Hide file tree
Showing 9 changed files with 46 additions and 46 deletions.
10 changes: 5 additions & 5 deletions connector_pms/views/pms_availability_plan_rule_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
<field name="name">pms.availability.plan.rule.connector.form</field>
<field name="model">pms.availability.plan.rule</field>
<field name="inherit_id" ref="pms.availability_plan_rule_view_form" />
<field
name="groups_id"
eval="[(4, ref('connector.group_connector_manager'))]"
/>
<field name="arch" type="xml">
<xpath expr="/form">
<notebook>
<page string="Connectors" name="connector" />
<page
string="Connectors"
name="connector"
groups="connector.group_connector_manager"
/>
</notebook>
</xpath>
</field>
Expand Down
10 changes: 5 additions & 5 deletions connector_pms/views/pms_availability_plan_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
<field name="name">pms.availability.plan.connector.form</field>
<field name="model">pms.availability.plan</field>
<field name="inherit_id" ref="pms.availability_view_form" />
<field
name="groups_id"
eval="[(4, ref('connector.group_connector_manager'))]"
/>
<field name="arch" type="xml">
<xpath expr="//field[@name='rule_ids']" position="after">
<notebook>
<page name="rules" string="Rules" />
<page string="Connectors" name="connector" />
<page
string="Connectors"
name="connector"
groups="connector.group_connector_manager"
/>
</notebook>
</xpath>
<page name="rules" position="inside">
Expand Down
10 changes: 5 additions & 5 deletions connector_pms/views/pms_board_service_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@
<field name="name">pms.board.service.connector.form</field>
<field name="model">pms.board.service</field>
<field name="inherit_id" ref="pms.pms_board_service_form" />
<field
name="groups_id"
eval="[(4, ref('connector.group_connector_manager'))]"
/>
<field name="arch" type="xml">
<xpath expr="/form">
<!-- change the invisible attribute to 0 when used
in submodules -->
<notebook>
<page string="Connectors" name="connector" />
<page
string="Connectors"
name="connector"
groups="connector.group_connector_manager"
/>
</notebook>
</xpath>
</field>
Expand Down
10 changes: 5 additions & 5 deletions connector_pms/views/pms_folio_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
<field name="name">pms.folio.connector.form</field>
<field name="model">pms.folio</field>
<field name="inherit_id" ref="pms.pms_folio_view_form" />
<field
name="groups_id"
eval="[(4, ref('connector.group_connector_manager'))]"
/>
<field name="arch" type="xml">
<xpath expr="//notebook">
<!-- change the invisible attribute to 0 when used
in submodules -->
<page string="Connectors" name="connector" />
<page
string="Connectors"
name="connector"
groups="connector.group_connector_manager"
/>
</xpath>
</field>
</record>
Expand Down
12 changes: 6 additions & 6 deletions connector_pms/views/pms_property_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
<field name="name">pms.property.connector.form</field>
<field name="model">pms.property</field>
<field name="inherit_id" ref="pms.pms_property_views_form" />
<field
name="groups_id"
eval="[(4, ref('connector.group_connector_manager'))]"
/>
<field name="arch" type="xml">
<xpath expr="//notebook">
<xpath expr="//notebook" position="inside">
<!-- change the invisible attribute to 0 when used
in submodules -->
<page string="Connectors" name="connector" />
<page
string="Connectors"
name="connector"
groups="connector.group_connector_manager"
/>
</xpath>
</field>
</record>
Expand Down
10 changes: 5 additions & 5 deletions connector_pms/views/pms_room_type_class_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@
<field name="name">pms.room.type.class.connector.form</field>
<field name="model">pms.room.type.class</field>
<field name="inherit_id" ref="pms.pms_room_type_class_view_form" />
<field
name="groups_id"
eval="[(4, ref('connector.group_connector_manager'))]"
/>
<field name="arch" type="xml">
<!-- <xpath expr="/form/sheet/notebook">-->
<!-- &lt;!&ndash; change the invisible attribute to 0 when used-->
Expand All @@ -20,7 +16,11 @@
<!-- change the invisible attribute to 0 when used
in submodules -->
<notebook>
<page string="Connectors" name="connector" />
<page
string="Connectors"
name="connector"
groups="connector.group_connector_manager"
/>
</notebook>
</xpath>
</field>
Expand Down
10 changes: 5 additions & 5 deletions connector_pms/views/pms_room_type_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
<field name="name">pms.room.type.connector.form</field>
<field name="model">pms.room.type</field>
<field name="inherit_id" ref="pms.pms_room_type_view_form" />
<field
name="groups_id"
eval="[(4, ref('connector.group_connector_manager'))]"
/>
<field name="arch" type="xml">
<xpath expr="/form/sheet/notebook">
<!-- change the invisible attribute to 0 when used
in submodules -->
<page string="Connectors" name="connector" />
<page
string="Connectors"
name="connector"
groups="connector.group_connector_manager"
/>
</xpath>
</field>
</record>
Expand Down
10 changes: 5 additions & 5 deletions connector_pms/views/product_pricelist_item_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
<field name="name">product.pricelist.item.connector.form</field>
<field name="model">product.pricelist.item</field>
<field name="inherit_id" ref="pms.product_pricelist_item_view_form" />
<field
name="groups_id"
eval="[(4, ref('connector.group_connector_manager'))]"
/>
<field name="arch" type="xml">
<xpath expr="/form/sheet">
<notebook>
<page string="Connectors" name="connector" />
<page
string="Connectors"
name="connector"
groups="connector.group_connector_manager"
/>
</notebook>
</xpath>
</field>
Expand Down
10 changes: 5 additions & 5 deletions connector_pms/views/product_pricelist_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
<field name="name">product.pricelist.connector.form</field>
<field name="model">product.pricelist</field>
<field name="inherit_id" ref="product.product_pricelist_view" />
<field
name="groups_id"
eval="[(4, ref('connector.group_connector_manager'))]"
/>
<field name="arch" type="xml">
<xpath expr="/form/sheet/notebook">
<!-- change the invisible attribute to 0 when used
in submodules -->
<page string="Connectors" name="connector" />
<page
string="Connectors"
name="connector"
groups="connector.group_connector_manager"
/>
</xpath>
</field>
</record>
Expand Down

0 comments on commit d508663

Please sign in to comment.