[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).
This commit is contained in:
jas
2014-12-18 15:00:03 +01:00
committed by Richard Mathot
parent e3f22243e7
commit 790312dbf9
@@ -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>