Skip to content
Snippets Groups Projects
Commit 790312db authored by Jamin Shah's avatar Jamin Shah Committed by Richard Mathot
Browse files

[IMP] project: select project pricelist based on customer pricelist

Add an invisible field `pricelist_id` to project.project form view, so that when
`partner_id` is changed, `onchange_partner_id` method can also set the
pricelist properly (previously, the pricelist was not set because the
field was not in the view).
parent e3f22243
No related branches found
No related tags found
No related merge requests found
......@@ -42,6 +42,10 @@
<button class="oe_inline oe_stat_button" name="open_timesheets" type="object" attrs="{'invisible':[('invoice_on_timesheets','=',False)]}"
icon="fa-calendar" string="Timesheets"/>
</xpath>
<xpath expr='//field[@name="partner_id"]' position='after'>
<newline/>
<field name="pricelist_id" invisible="1"/>
</xpath>
</field>
</record>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment