Merge pull request #3189 from expsa/younes_dev_odex25_purchase
changer visiblity for action_budget action_skip_budget button in purc…
This commit is contained in:
commit
6ca3d9e41f
|
|
@ -109,7 +109,7 @@
|
|||
<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">
|
||||
|
|
@ -117,8 +117,8 @@
|
|||
</button>
|
||||
</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'/>
|
||||
<field invisible="1" readonly="1" name='res_model'/>
|
||||
<field invisible="1" readonly="1" name='res_id'/>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//div[hasclass('oe_button_box')]" position="inside">
|
||||
|
|
@ -130,9 +130,7 @@
|
|||
</xpath>
|
||||
<field name="partner_id" position="attributes">
|
||||
<attribute name="options">{'no_create': True, 'no_open': True}</attribute>
|
||||
<attribute name="domain">['&',('supplier_rank','>', 0),'|', ('company_id', '=', False),
|
||||
('company_id', '=', company_id)]
|
||||
</attribute>
|
||||
<attribute name="domain">['&',('supplier_rank','>', 0),'|', ('company_id', '=', False), ('company_id', '=', company_id)]</attribute>
|
||||
</field>
|
||||
<xpath expr="/form/header/button[@name='action_rfq_send']" position="after">
|
||||
<field name="parent_state" invisible="1"/>
|
||||
|
|
@ -172,9 +170,7 @@
|
|||
<!-- <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">
|
||||
|
|
@ -193,8 +189,7 @@
|
|||
<attribute name="groups">purchase.group_purchase_manager</attribute>
|
||||
<attribute name="states">""</attribute>
|
||||
<attribute name="attrs">
|
||||
{'invisible':[('state','in',('wait','wait_for_send','sign','sent','to
|
||||
approve','waiting','purchase','cancel'))]}
|
||||
{'invisible':[('state','in',('wait','wait_for_send','sign','sent','to approve','waiting','purchase','cancel'))]}
|
||||
</attribute>
|
||||
</xpath>
|
||||
<xpath expr="/form/header/button[@id='bid_confirm']" position="attributes">
|
||||
|
|
@ -308,8 +303,7 @@
|
|||
</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"/>
|
||||
|
|
@ -333,25 +327,24 @@
|
|||
<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>
|
||||
|
||||
<xpath expr="//div[@name='button_box']//button[@name='%(purchase_requisition.action_purchase_requisition_list)d']"
|
||||
position="replace">
|
||||
<xpath expr="//div[@name='button_box']//button[@name='%(purchase_requisition.action_purchase_requisition_list)d']" position="replace">
|
||||
<button name="action_purchase_orders_view" type="object" class="oe_stat_button" icon="fa-list-alt"
|
||||
attrs="{'invisible': [('state', '=', 'draft')]}">
|
||||
attrs="{'invisible': [('state', '=', 'draft')]}">
|
||||
<field name="order_count" widget="statinfo" string="RFQs/Orders"/>
|
||||
</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"
|
||||
|
|
@ -438,8 +431,7 @@
|
|||
<attribute name="invisible">1</attribute>
|
||||
</xpath>
|
||||
<xpath expr="/form/header/field[@name='state']" position="replace">
|
||||
<field name="state" widget="statusbar" statusbar_visible="draft,in_progress,done"
|
||||
attrs="{'invisible': [('is_quantity_copy', '=', 'none')]}"/>
|
||||
<field name="state" widget="statusbar" statusbar_visible="draft,in_progress,done" attrs="{'invisible': [('is_quantity_copy', '=', 'none')]}"/>
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='date_end']" position="before">
|
||||
<!-- <field name="agreement_name" attrs="{'readonly': [('state','!=', 'draft')]}"/>-->
|
||||
|
|
@ -473,8 +465,7 @@
|
|||
<attribute name="attrs">{
|
||||
'readonly': [('state','in',('cancel','checked','done','waiting'))],
|
||||
'required': [('type_exclusive', '=', 'multiple')]
|
||||
}
|
||||
</attribute>
|
||||
}</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='ordering_date']" position="attributes">
|
||||
<attribute name="required">1</attribute>
|
||||
|
|
@ -486,10 +477,7 @@
|
|||
</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