Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
3207 Lượt xem

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:

Ảnh đại diện
Huỷ bỏ
Tác giả

anyone?

Tác giả

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

Tác giả Câu trả lời hay nhất

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>
```
Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Can you share the full xml please

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
4
thg 2 25
16064
0
thg 1 24
169
0
thg 10 23
1606
1
thg 11 23
5375
0
thg 6 23
1978