Files
odoo_source/addons/purchase_requisition/wizard/purchase_requisition_create_alternative.xml
T
niyasraphy a57b79a309 [FIX] purchase_requisition: warning field visibility condition
activate warnings from purchase settings and open any purchase order and click the create alternatives button from alternatives page. in the next wizard, Warning Messages field is visible always, upon checking the view, it seems the visibility condition given is wrong and thus it get visible always.

closes odoo/odoo#105977

X-original-commit: 40ec1fe8fbaf97faccda7dcd87e308277275bae4
Signed-off-by: Tiffany Chang <tic@odoo.com>
2022-11-18 09:57:48 +01:00

30 lines
1.4 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<record id="purchase_requisition_create_alternative_form" model="ir.ui.view">
<field name="name">Create Alternative</field>
<field name="model">purchase.requisition.create.alternative</field>
<field name="arch" type="xml">
<form string="Create Alternative">
<group>
<field name="origin_po_id" invisible="1"/>
<group>
<field name="partner_id"/>
</group>
<group>
<field name="copy_products"/>
</group>
<group groups="purchase.group_warning_purchase" attrs="{'invisible': [('purchase_warn_msg', '=', '')]}">
<field name="purchase_warn_msg"/>
</group>
</group>
<footer>
<button name="action_create_alternative" string="Create Alternative" data-hotkey="q" type="object" colspan="1" class="btn-primary"/>
<button string="Cancel" data-hotkey="x" special="cancel" colspan="1" class="btn-secondary"/>
</footer>
</form>
</field>
</record>
</data>
</odoo>