|
|
@ -82,10 +82,6 @@ |
|
|
|
<xpath expr="//button[@name='%(purchase.act_res_partner_2_purchase_order)d']" position="attributes"> |
|
|
|
<attribute name="invisible">company_type == 'person'</attribute> |
|
|
|
</xpath> |
|
|
|
<!-- Invisible the smart button Vendor Bill on patient --> |
|
|
|
<xpath expr="//button[@name='%(purchase.act_res_partner_2_supplier_invoices)d']" position="attributes"> |
|
|
|
<attribute name="invisible">company_type == 'person'</attribute> |
|
|
|
</xpath> |
|
|
|
<!-- Invisible the smart button On-Time Rate on patient --> |
|
|
|
<xpath expr="//button[@icon='fa-truck']" position="attributes"> |
|
|
|
<attribute name="invisible">company_type == 'person'</attribute> |
|
|
@ -113,4 +109,17 @@ |
|
|
|
</xpath> |
|
|
|
</field> |
|
|
|
</record> |
|
|
|
|
|
|
|
<record id="dental_patients_view_form" model="ir.ui.view"> |
|
|
|
<field name="name">partner_view_buttons.inherit.dental.clinical.management</field> |
|
|
|
<field name="model">res.partner</field> |
|
|
|
<field name="inherit_id" ref="account.partner_view_buttons" /> |
|
|
|
<field name="arch" type="xml"> |
|
|
|
<!-- Invisible the smart button Vendor Bill on patient --> |
|
|
|
<xpath expr="//button[@name='%(account.res_partner_action_supplier_bills)d']" position="attributes">--> |
|
|
|
<attribute name="invisible">company_type == 'person'</attribute> |
|
|
|
</xpath> |
|
|
|
</field> |
|
|
|
</record> |
|
|
|
|
|
|
|
</odoo> |