Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions purchase_view_adj/views/purchase_order_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,33 @@
<xpath expr="//field[@name='picking_type_id']" position="attributes">
<attribute name="widget">selection</attribute>
</xpath>
<!--<xpath expr="//button[contains(@name,'button_confirm') and contains(@states,'draft')]" position="attributes">-->
<!-- <attribute name="groups">purchase.group_purchase_manager</attribute>-->
<!--</xpath>-->
<!--<xpath expr="//button[contains(@name,'print_quotation') and contains(@states,'draft')]" position="attributes">-->
<!-- <attribute name="groups">purchase.group_purchase_manager</attribute>-->
<!--</xpath>-->
<!--<xpath expr="//button[contains(@name,'action_rfq_send') and contains(@states,'draft')]" position="attributes">-->
<!-- <attribute name="groups">purchase.group_purchase_manager</attribute>-->
<!--</xpath>-->
<!--<xpath expr="//button[contains(@name,'action_rfq_send') and contains(@states,'sent')]" position="attributes">-->
<!-- <attribute name="groups">purchase.group_purchase_manager</attribute>-->
<!--</xpath>-->

Comment on lines +11 to +23

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<!--<xpath expr="//button[contains(@name,'button_confirm') and contains(@states,'draft')]" position="attributes">-->
<!-- <attribute name="groups">purchase.group_purchase_manager</attribute>-->
<!--</xpath>-->
<!--<xpath expr="//button[contains(@name,'print_quotation') and contains(@states,'draft')]" position="attributes">-->
<!-- <attribute name="groups">purchase.group_purchase_manager</attribute>-->
<!--</xpath>-->
<!--<xpath expr="//button[contains(@name,'action_rfq_send') and contains(@states,'draft')]" position="attributes">-->
<!-- <attribute name="groups">purchase.group_purchase_manager</attribute>-->
<!--</xpath>-->
<!--<xpath expr="//button[contains(@name,'action_rfq_send') and contains(@states,'sent')]" position="attributes">-->
<!-- <attribute name="groups">purchase.group_purchase_manager</attribute>-->
<!--</xpath>-->

<xpath expr="//field[@name='partner_ref']" position="after">
<field
name="x_purchase_ax_no"
attrs="{'invisible':[['state','in',['draft','sent']]]}"
/>
</xpath>

<xpath expr="//field[@name='taxes_id']" position="after">
<field name="x_purchase_budget_id" optional="show" />
</xpath>

<xpath expr="//field[@name='picking_type_id']" position="after">
<field name="x_subsidy_summary" />
</xpath>
<xpath
expr="//field[@name='order_line']/tree/field[@name='name']"
position="attributes"
Expand Down
Loading