Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
3205 Vizualizări

hello, I've defined a boolean field like:

is_paid = fields.Boolean(groups="sales_team.group_sale_manager", string='Paid', default=False)


and in the xml like:

<xpath expr="//page[@name='other_information']" position="inside">
<group col="2">
<field name="is_paid" />
<label for="is_paid"/>


and once i load the view and click it, it disappears, I've tried doing a hard refresh but the problem persists and there are no Js console errors shown

Can any body give some help please? :thanks:

Imagine profil
Abandonează
Autor

anyone?

Autor

I've tried on an Odoo 13 installation I have and its working fine there, so it may be a bug with v14...

Autor Cel mai bun răspuns

Sure, the full XML is:
```

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="paid_sale_order_form_view" model="ir.ui.view">
<field name="name">sale.order.form.inherit.sale</field>
<field name="model">sale.order</field>
<field name="priority">5</field>
<field name="inherit_id" ref="sale.view_order_form"/>
<field name="arch" type="xml">
<xpath expr="//page[@name='other_information']" position="inside">
<group col="2">
<field name="is_paid" />
<label for="is_paid"/>
</group>
</xpath>
</field>
</record>
</odoo>
```
Imagine profil
Abandonează
Cel mai bun răspuns

Can you share the full xml please

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
4
feb. 25
16064
0
ian. 24
169
0
oct. 23
1606
1
nov. 23
5375
0
iun. 23
1978