I'm learning about developing modules. I saw two ways of adding fields in view.
One is like this:
https://www.odoo.com/documentation/12.0/howtos/backend.html#inheritance
<field name="arch" type="xml">
<xpath expr="//field[@name='description']" position="after">
<field name="idea_ids" string="Number of ideas"/>
</xpath>
</field>
And the second one is:
https://www.cybrosys.com/blog/adding-custom-fields-to-existing-views-in-odoo-v12
<field name="arch" type="xml">
<field name="confirmation_date" position="after">
<field name="additional_note"/>
</field>
</field>
What is the difference? What should I use?
Read more about inheritance in odoo: https://goo.gl/fGNfBY