Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
3222 Visualizzazioni

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:

Avatar
Abbandona
Autore

anyone?

Autore

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

Autore Risposta migliore

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>
```
Avatar
Abbandona
Risposta migliore

Can you share the full xml please

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
4
feb 25
16126
0
gen 24
169
0
ott 23
1610
1
nov 23
5385
0
giu 23
2006