show refuse
This commit is contained in:
parent
7b06f79c84
commit
ab762b2880
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -44,6 +44,11 @@
|
|||
<field name="implied_ids" eval="[(4, ref('purchase_requisition_custom.view_purchase_request'))]"/>
|
||||
<field name="category_id" ref="purchase_requisition_custom.module_category_purchase_request"/>
|
||||
</record>
|
||||
<record id="group_refuse_purchase" model="res.groups">
|
||||
<field name="name">Purchase Order Refuse</field>
|
||||
<field name="implied_ids" eval="[(4, ref('purchase_requisition_custom.view_purchase_request'))]"/>
|
||||
<field name="category_id" ref="purchase_requisition_custom.module_category_purchase_request"/>
|
||||
</record>
|
||||
<!-- Quotation group -->
|
||||
<record id="group_quotation_purchase_requisition" model="res.groups">
|
||||
<field name="name">Quotation Purchase Requisition</field>
|
||||
|
|
|
|||
|
|
@ -17,8 +17,7 @@
|
|||
<button name="action_confirm" groups="purchase_requisition_custom.group_direct_manger"
|
||||
type="object" string="Approve" states="direct_manager" class="oe_highlight"/>
|
||||
|
||||
<button name="action_refuse" type="object" string="Refuse"
|
||||
groups="purchase_requisition_custom.group_direct_manger" states="direct_manager"/>
|
||||
|
||||
|
||||
<button name="create_requisition"
|
||||
groups="purchase.group_purchase_user,purchase.group_purchase_manager" type="object"
|
||||
|
|
@ -30,6 +29,10 @@
|
|||
class="oe_highlight" groups="purchase.group_purchase_manager"
|
||||
attrs="{'invisible' : ['|',('state' , '!=' , 'waiting'),('purchase_create' , '=' , True)]}"/>
|
||||
|
||||
<button name="action_refuse" type="object" string="Refuse"
|
||||
groups="purchase_requisition_custom.group_direct_manger,purchase_requisition_custom.group_refuse_purchase"
|
||||
attrs="{'invisible' : [('state' , 'not in' , ('direct_manager','waiting'))]}"/>
|
||||
|
||||
<button name="action_done" type="object" string="Done" class="oe_stat_button"
|
||||
groups="purchase.group_purchase_manager" states="waiting"/>
|
||||
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue