Skip to content

Commit

Permalink
[IMP] Run pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
edescalona committed Dec 24, 2024
1 parent 96c10d6 commit 7d8ad54
Showing 1 changed file with 21 additions and 8 deletions.
29 changes: 21 additions & 8 deletions sale_rental/views/product.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,30 @@
<record id="product_normal_form_view" model="ir.ui.view">
<field name="name">rental.product.product.form</field>
<field name="model">product.product</field>
<field name="inherit_id" ref="product.product_normal_form_view"/>
<field name="inherit_id" ref="product.product_normal_form_view" />
<field name="arch" type="xml">
<group name="sale" position="after">
<group name="rental" string="Rental" invisible="type != 'service'">
<field name="rented_product_id"/>
<field name="rented_product_id" />
</group>
<group string="Rental Services" name="rental_services" invisible="type == 'service'">
<button colspan="2" type="action" name="%(sale_rental.create_rental_product_action)d"
string="Create Rental Service"/>
<field colspan="2" name="rental_service_ids" nolabel="1" readonly="1"
invisible="rental_service_ids == []"/>
<group
string="Rental Services"
name="rental_services"
invisible="type == 'service'"
>
<button
colspan="2"
type="action"
name="%(sale_rental.create_rental_product_action)d"
string="Create Rental Service"
/>
<field
colspan="2"
name="rental_service_ids"
nolabel="1"
readonly="1"
invisible="rental_service_ids == []"
/>
</group>
</group>
</field>
Expand All @@ -27,7 +40,7 @@
<record id="product_template_only_form_view" model="ir.ui.view">
<field name="name">rental.product.template.only.form</field>
<field name="model">product.template</field>
<field name="inherit_id" ref="product.product_template_only_form_view"/>
<field name="inherit_id" ref="product.product_template_only_form_view" />
<field name="arch" type="xml">
<group name="sale" position="inside">
<label
Expand Down

0 comments on commit 7d8ad54

Please sign in to comment.