[ADD] buttons to access to picking from claim_rma

This commit is contained in:
Yannick Vaucher
2014-02-26 12:11:38 +01:00
parent 9b76b258ca
commit c062328392
2 changed files with 11 additions and 0 deletions

View File

@@ -305,6 +305,16 @@
attrs="{'invisible': ['|',('partner_id','=', False),('claim_type','in', ['customer','other'])]}"
context="{'search_default_partner_id': [partner_id],'search_default_user_id':False}"
/>
<button name="%(act_crm_claim_rma_picking_in)d" type="action"
string="Returned Products"
attrs="{'invisible': ['|',('partner_id','=', False),('claim_type','in', ['supplier','other'])]}"
context="{'search_default_claim_id': active_id,'search_default_user_id':False}"
/>
<button name="%(act_crm_claim_rma_picking_out)d" type="action"
string="Deliveries"
attrs="{'invisible': ['|',('partner_id','=', False),('claim_type','in', ['supplier','other'])]}"
context="{'search_default_partner_id': [partner_id],'search_default_user_id':False}"
/>
</div>
</xpath>
</field>

View File

@@ -33,6 +33,7 @@
<filter string="To Invoice" name="to_invoice" icon="terp-dolar" domain="[('invoice_state', '=', '2binvoiced')]" position="after">
<separator/>
<filter string="RMA" icon="terp-accessories-archiver-minus" domain="[('claim_id', '!=', 'False')]" />
<field name="claim_id" string="RMA" invisible="True"/>
</filter>
</field>
</record>