<?xml version="1.0" encoding="utf-8" ?>
<odoo>
    <record id="product_template_only_form_view" model="ir.ui.view">
        <field name="name">product.template.product.form</field>
        <field name="model">product.template</field>
        <field name="inherit_id" ref="product.product_template_only_form_view" />
        <field name="arch" type="xml">
            <xpath expr="//page[@name='sales']" position="inside">
                <group
                    string="Primeships"
                    name="primeships"
                    invisible="type != 'service'"
                >
                    <field name="primeship_activation" />
                    <field
                        name="primeship_duration"
                        invisible="not primeship_activation"
                    />
                </group>
            </xpath>
        </field>
    </record>
</odoo>
