Merge pull request #3726 from expsa/ENS-3556
[FIX] project_base: add projects_ids to view
This commit is contained in:
commit
b3c2ed2a35
|
|
@ -164,6 +164,9 @@
|
|||
<field name="model">sale.order</field>
|
||||
<field name="inherit_id" ref="sale.view_order_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//header" position="inside">
|
||||
<field name="project_ids" invisible="1"/>
|
||||
</xpath>
|
||||
<xpath expr="//button[@name='%(sale.action_view_sale_advance_payment_inv)d'][1]" position="attributes">
|
||||
<attribute name="attrs">{'invisible': ['|',('project_ids', '!=', []),('invoice_status', '!=', 'to invoice')]}
|
||||
</attribute>
|
||||
|
|
@ -185,7 +188,7 @@
|
|||
<field name="name">Invoice Request</field>
|
||||
<field name="res_model">project.invoice</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
<field name="context">{'search_default_project': 1}}</field>
|
||||
<field name="context">{'search_default_project': 1}</field>
|
||||
</record>
|
||||
|
||||
<menuitem action="action_project_invoice" id="menu_project_invoice" name="Invoice Request" parent="project.menu_main_pm" sequence="9" groups="account.group_account_manager,project.group_project_manager,project_base.group_project_department_manager"/>
|
||||
|
|
|
|||
Loading…
Reference in New Issue