Add Refuse button to Purchase Request form view.
This commit is contained in:
parent
54dfe0da9f
commit
1d866ccac5
|
|
@ -22,6 +22,11 @@ msgid ""
|
|||
" ) يكون صفر عند قابل الاشارة"
|
||||
msgstr ""
|
||||
|
||||
#. module: initial_engagement_budget
|
||||
#: model_terms:ir.ui.view,arch_db:initial_engagement_budget.purchase_request_form
|
||||
msgid "Refuse"
|
||||
msgstr "رفض"
|
||||
|
||||
#. module: initial_engagement_budget
|
||||
#: model:ir.model.fields,field_description:initial_engagement_budget.field_account_bank_statement_line__payment_purpose
|
||||
#: model:ir.model.fields,field_description:initial_engagement_budget.field_account_move__payment_purpose
|
||||
|
|
|
|||
|
|
@ -16,8 +16,13 @@
|
|||
groups="purchase_requisition_custom.group_skip_purchase_budget"/>
|
||||
|
||||
</xpath>
|
||||
<xpath expr="//button[@name='action_refuse']" position="attributes">
|
||||
<attribute name="states">direct_manager,wait_for_send</attribute>
|
||||
<xpath expr="//button[@id='prc_request_refuse']" position="attributes">
|
||||
<attribute name="attrs">{'invisible' : [('state' , 'not in' , ('wait_for_send','waiting'))]}</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//button[@id='prc_request_refuse']" position="after">
|
||||
<button name="action_refuse" type="object" string="Refuse" id="ieb_request_refuse"
|
||||
groups="purchase_requisition_custom.group_direct_manger"
|
||||
attrs="{'invisible' : [('state' , '!=' , 'direct_manager')]}"/>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//field[@name='date']" position="after">
|
||||
|
|
@ -39,7 +44,7 @@
|
|||
attrs="{'column_invisible': [('parent.initial_engagement_activate', '!=', True)]}"/>
|
||||
</xpath>
|
||||
<xpath expr="//page[@name='purchase_request_info']/field[@name='line_ids']" position="after">
|
||||
<field name="company_currency_id" invisible="1"/>
|
||||
<field name="company_currency_id" invisible="1"/>
|
||||
<group class="oe_subtotal_footer oe_right">
|
||||
<label for="total_amount"/>
|
||||
<field name="total_amount" nolabel="1" widget="monetary"
|
||||
|
|
|
|||
Loading…
Reference in New Issue