Odoo Help

1

How to add field in Legend < Sequence Form >

By
heru
on 12/16/14, 6:30 PM 1,034 views

Hi, i want to question,

How to add field in Legend :

code default odoo (xml) :

<record id="sequence_view" model="ir.ui.view">

            <field name="model">ir.sequence</field>

            <field name="arch" type="xml">

                <form string="Sequences">

                  <sheet>

                    <group col="4">

                        <field name="name"/>

                        <field name="code"/>

                        <field name="company_id" groups="base.group_multi_company"/>

                        <field name="active" groups="base.group_no_one"/>

                    </group>

                    <notebook>

                    <page string="Sequence">

                        <group col="4">

                            <field name="prefix"/>

                            <field name="suffix"/>

                            <field name="padding"/>

                            <field name="number_increment"/>

                            <field name="number_next_actual"/>

                            <field name="implementation"/>

                        </group>

                        <group col="3" string="Legend (for prefix, suffix)">

                            <group>

                                <label colspan="2" string="Current Year with Century: %%(year)s"/>

                                <label colspan="2" string="Current Year without Century: %%(y)s"/>

                                <label colspan="2" string="Month: %%(month)s"/>

                                <label colspan="2" string="Day: %%(day)s"/>

                            </group>

....

How to add field 'kode cabang' after  '<label colspan="2" string="Day: %%(day)s"/>' ?

thanks ...

0
heru
On 12/16/14, 9:18 PM

ok , thanks Ivan ...

0

Ivan

--Ivan--
3255
| 5 3 6
Jakarta, Indonesia
--Ivan--
Ivan
On 12/16/14, 8:12 PM

For the label, you can simply inherit the view and then add the label.  But adding the label would not make 'kode cabang' available to be used for sequence numbering you need to inherit modify ir.sequence some of its methods to suit your needs.

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 12/16/14, 6:30 PM
Seen: 1034 times
Last updated: 3/16/15, 8:10 AM