Recommend + Select and Refuse Buttons
This commit is contained in:
parent
b248d0b778
commit
b41ef67c41
|
|
@ -91,9 +91,13 @@
|
|||
<xpath expr="/tree[1]/field[@name='origin']" position="attributes">
|
||||
<attribute name="invisible">1</attribute>
|
||||
</xpath>
|
||||
<!-- <field name="partner_id" position="after">-->
|
||||
<!-- <field name="recommendation_order" string="Recommend Order"/>-->
|
||||
<!-- </field>-->
|
||||
|
||||
<xpath expr="/tree[1]/field[@name='partner_id']" position="after">
|
||||
<field name="recommendation_order" string="Recommend Order"/>
|
||||
</xpath>
|
||||
<!-- <field name="partner_id" position="after">-->
|
||||
<!-- <field name="recommendation_order" string="Recommend Order"/>-->
|
||||
<!-- </field>-->
|
||||
</field>
|
||||
</record>
|
||||
|
||||
|
|
@ -105,17 +109,17 @@
|
|||
<field name="inherit_id" ref="purchase.purchase_order_form"/>
|
||||
<field eval="100" name="priority"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//div[@name='button_box']" position="inside">
|
||||
<xpath expr="//div[@name='button_box']" position="inside">
|
||||
<button name="get_attachments" type="object"
|
||||
class="oe_stat_button"
|
||||
icon="fa-file-text-o">
|
||||
<field name="attach_no" widget="statinfo" string="Documents"/>
|
||||
</button>
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='payment_term_id']" position="after">
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='payment_term_id']" position="after">
|
||||
<field invisible="1" readonly="1" name='res_model'/>
|
||||
<field invisible="1" readonly="1" name='res_id'/>
|
||||
</xpath>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//div[hasclass('oe_button_box')]" position="inside">
|
||||
<button class="oe_stat_button" name="open_confirmation" type="object" string="Budget Confirmation"
|
||||
|
|
@ -140,11 +144,15 @@
|
|||
attrs="{'invisible':['|',('requisition_id','=',False),'|',('state','not in',('to approve')),('is_purchase_budget','=',False)]}"/>
|
||||
|
||||
<button type="object" name="action_select" groups="purchase_requisition_custom.committe_member"
|
||||
attrs="{'invisible':['|',('state','in',['draft','done','purchase','wait_for_send','sent','waiting','cancel']),('already_voted','=',True)]}"
|
||||
attrs="{'invisible':['|',('state','in',['done','purchase','waiting','cancel']),('already_voted','=',True)]}"
|
||||
string="Select"/>
|
||||
<button type="object" name="action_refuse" groups="purchase_requisition_custom.committe_member"
|
||||
attrs="{'invisible':['|',('state','in',['draft','done','purchase','wait_for_send','sent','waiting','cancel']),('already_voted','=',True)]}"
|
||||
attrs="{'invisible':['|',('state','in',['done','purchase','waiting','cancel']),('already_voted','=',True)]}"
|
||||
string="Refuse"/>
|
||||
<button type="object" name="action_recommend"
|
||||
confirm="Are you sure you want to process ?"
|
||||
attrs="{'invisible':['|',
|
||||
('recommendation_order','=', True),('purchase_commitee', '=', False)]}" string="Recommend"/>
|
||||
|
||||
<button type="object" name="action_unsign"
|
||||
groups="purchase_requisition_custom.group_unsign_purchase_order" string="UnSign"
|
||||
|
|
@ -153,12 +161,15 @@
|
|||
states="budget_rejected"/>
|
||||
<button type="object" name="action_budget" string="Send To Budget Check" class="oe_highlight"
|
||||
attrs="{'invisible':['|',('requisition_id','!=',False),'|',('state','not in',('wait','sent')),('is_purchase_budget','=',False)]}"/>
|
||||
<button name="action_skip_budget" type="object" string="Skip Budget" attrs="{'invisible':['|',('requisition_id','!=',False),'|',('state','not in',('wait','sent')),('is_purchase_budget','=',False)]}"
|
||||
<button name="action_skip_budget" type="object" string="Skip Budget"
|
||||
attrs="{'invisible':['|',('requisition_id','!=',False),'|',('state','not in',('wait','sent')),('is_purchase_budget','=',False)]}"
|
||||
groups="purchase_requisition_custom.group_skip_purchase_budget"/>
|
||||
<!-- <button name="button_draft" states="cancel" string="Set to Draft" type="object"/>-->
|
||||
</xpath>
|
||||
<xpath expr="//button[@name='button_approve']" position="replace">
|
||||
<button name="button_approve" type="object" attrs="{'invisible':['|',('requisition_id','!=',False),('state','not in',('to approve'))]}" string="Approve Order" class="oe_highlight" groups="purchase.group_purchase_manager"/>
|
||||
<button name="button_approve" type="object"
|
||||
attrs="{'invisible':['|',('requisition_id','!=',False),('state','not in',('to approve'))]}"
|
||||
string="Approve Order" class="oe_highlight" groups="purchase.group_purchase_manager"/>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//button[@name='button_draft']" position="after">
|
||||
|
|
@ -290,7 +301,8 @@
|
|||
</xpath>
|
||||
<!-- i edit here readonly="1"-->
|
||||
<xpath expr="//notebook//page[1]" position="after">
|
||||
<page string="Committe Members" groups="purchase_requisition_custom.committe_member" attrs="{'invisible':[('requisition_id','=', False)]}">
|
||||
<page string="Committe Members" groups="purchase_requisition_custom.committe_member"
|
||||
attrs="{'invisible':[('requisition_id','=', False)]}">
|
||||
<field name="committe_members">
|
||||
<tree>
|
||||
<field name="user_id"/>
|
||||
|
|
@ -314,17 +326,17 @@
|
|||
<xpath expr="//form" position="attributes">
|
||||
<attribute name="delete">0</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//div[@name='button_box']" position="inside">
|
||||
<xpath expr="//div[@name='button_box']" position="inside">
|
||||
<button name="get_attachments" type="object"
|
||||
class="oe_stat_button"
|
||||
icon="fa-file-text-o">
|
||||
<field name="attach_no" widget="statinfo" string="Documents"/>
|
||||
</button>
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='name']" position="after">
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='name']" position="after">
|
||||
<field invisible="1" readonly="1" name='res_model'/>
|
||||
<field invisible="1" readonly="1" name='res_id'/>
|
||||
</xpath>
|
||||
</xpath>
|
||||
<!-- header modificaton -->
|
||||
<xpath expr="/form/header/button[@name='action_open']" position="after">
|
||||
<button type="object" groups="purchase_requisition_custom.group_accept_purchase_requisition"
|
||||
|
|
@ -454,7 +466,10 @@
|
|||
</xpath>
|
||||
<xpath expr="//notebook/page[1]/field[@name='line_ids']/tree[1]/field[@name='account_analytic_id']"
|
||||
position="replace">
|
||||
<field name="account_analytic_id" attrs="{'column_invisible':[('parent.is_purchase_budget','=',False)]}" domain="['|', ('company_id', '=', False), ('company_id', '=', parent.company_id)]" groups="analytic.group_analytic_accounting"/>
|
||||
<field name="account_analytic_id"
|
||||
attrs="{'column_invisible':[('parent.is_purchase_budget','=',False)]}"
|
||||
domain="['|', ('company_id', '=', False), ('company_id', '=', parent.company_id)]"
|
||||
groups="analytic.group_analytic_accounting"/>
|
||||
</xpath>
|
||||
<xpath expr="//notebook/page[1]/field[@name='line_ids']/tree[1]/field[@name='account_analytic_id']"
|
||||
position="after">
|
||||
|
|
|
|||
Loading…
Reference in New Issue