Hey! In previous versions of odoo our collateral.owner model looked like this:
but now, in version 16. our view is showing additional records, i guess from base collateral.owner:
how do we limit so that only the three fields are showing?
this is the ir.ui.view:
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<record model="ir.ui.view" id="collateral_owner_list">
<field name="name">Ägare</field>
<field name="model">collateral.owner</field>
<field name="arch" type="xml">
<tree default_order="shares">
<field name="name"/>
<field name="shares" widget="percentage"/>
</tree>
</field>
</record>
</odoo>
model:
class Owner(models.Model):
_name = "collateral.owner"
_description = "Owner who owns a collateral"
_inherit = ["mail.thread", "mail.activity.mixin"]
collateral_id = fields.Many2one("collateral.collateral")
name = fields.Char(string="Namn", required=True, tracking=True)
shares = fields.Float(string="Andel", required=True, tracking=True)