diff options
Diffstat (limited to 'indoteknik_custom/views/sourcing.xml')
| -rw-r--r-- | indoteknik_custom/views/sourcing.xml | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/indoteknik_custom/views/sourcing.xml b/indoteknik_custom/views/sourcing.xml index f7e04f04..582a1b3f 100644 --- a/indoteknik_custom/views/sourcing.xml +++ b/indoteknik_custom/views/sourcing.xml @@ -100,6 +100,13 @@ groups="indoteknik_custom.group_role_merchandiser" attrs="{'invisible': [('can_convert_to_product', '=', False)]}"/> + <button name="action_reject_by_sales" + string="Reject Approval" + type="object" + class="btn-danger" + groups="indoteknik_custom.group_role_sales" + attrs="{'invisible': [('approval_sales', 'in', [False, 'approve'])]}"/> + <button name="action_reject_takeover" string="Reject Takeover" type="object" @@ -139,6 +146,7 @@ <group> <!-- <field name="leads_id"/> --> <field name="eta_sales"/> + <field name="so_id"/> <field name="is_creator_same_user" invisible="1"/> <field name="takeover_request" invisible="1"/> <field name="can_request_takeover" invisible="1"/> @@ -230,7 +238,7 @@ </page> <page string="Documents"> - <field name="product_assets" widget="pdf_viewer"/> + <field name="product_assets" widget="pdf_viewer" filename="product_assets_filename"/> </page> <page string="Cancel Reason" attrs="{'invisible': [('state', 'in', ['done'])]}"> @@ -259,6 +267,16 @@ <field name="groups_id" eval="[(4, ref('indoteknik_custom.group_role_merchandiser'))]"/> </record> + <record id="action_sourcing_job_order_send_untaken_telegram" model="ir.actions.server"> + <field name="name">Send Untaken SJO to Telegram</field> + <field name="model_id" ref="model_sourcing_job_order"/> + <field name="binding_model_id" ref="model_sourcing_job_order"/> + <field name="binding_type">action</field> + <field name="state">code</field> + <field name="code">action = records.action_send_untaken_to_telegram()</field> + <field name="groups_id" eval="[(4, ref('indoteknik_custom.group_role_merchandiser'))]"/> + </record> + <record id="action_sourcing_job_order" model="ir.actions.act_window"> <field name="name">Sourcing Job Orders</field> <field name="res_model">sourcing.job.order</field> |
