rananabeel052
8/2/2019 - 5:01 AM

Add a field in tree view

<record id="view_acco_tomer_validator" model="ir.ui.view">
            <field name="model">sale.order</field>
            <field name="inherit_id" ref="externalidOfForm"/>
            <field name="arch" type="xml">
                <xpath expr="//tree/field[@name='name']" position="after">
                    <field name="month"/>
                </xpath>
            </field>
  </record>
month = fields.Selection(string="Month", selection=[('january', 'January'), ('february	', 'February'),
                                                        ('march	', 'March'), ('april', 'April'),
                                                        ('may', 'May'), ('june', 'June'),
                                                        ('july	', 'July'), ('august', 'August'),
                                                        ('september', 'September'), ('october', 'October'),
                                                        ('november', 'November'), ('december', 'December')])