Skip to content

Commit

Permalink
[FIX] Fixed code and removed Test button
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikul-OSI committed Apr 19, 2024
1 parent 862ec31 commit 9476616
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 24 deletions.
11 changes: 0 additions & 11 deletions connector_phone_cloudcti_event_manager/models/sale_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,6 @@ class SaleOrder(models.Model):
delivery_phone = fields.Char("Phone", related="partner_shipping_id.phone")
delivery_mobile = fields.Char("Mobile", related="partner_shipping_id.mobile")

def action_test_sticky(self):
action = {
"name": _("Partner"),
"type": "ir.actions.act_window",
"res_model": "phone.common",
"view_mode": "tree,kanban",
"target": "current",
}

return action

def cloudcti_open_outgoing_notification(self):
called_id = self._context.get("call_no")
caller_id = self.env.user.phone
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ patch(Notification.props, {
type: String,
optional: true,
validate: (t) =>
alert("here")[("warning", "danger", "success", "info", "default")].includes(
t
),
[("warning", "danger", "success", "info", "default")].includes(t),
},
});
10 changes: 0 additions & 10 deletions connector_phone_cloudcti_event_manager/views/sale_order_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,6 @@
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_form" />
<field name="arch" type="xml">
<xpath expr="//button[@name='action_draft']" position="after">
<header>
<button
string="Test"
type="object"
name="action_test_sticky"
class="oe_highlight"
/>
</header>
</xpath>
<xpath expr="//field[@name='partner_id']" position="after">
<label for="partner_phone" />
<div class="o_row">
Expand Down

0 comments on commit 9476616

Please sign in to comment.