Odoo Help

0

0
2 Answers
0
Avatar

subbarao

--subbarao--

1299
| 5 2 8
Chennai, India
--subbarao--


subbarao
2018/10/04 9:12
hole_number is the Many2one then try the following code 
(I think the problem hole_number is mandatory field on python code and it's readonly on xml)

<record model="ir.ui.view" id="score_card_form_view">
            <field name="name">Score Card</field>
            <field name="model">golf_online_ph.score_card</field>
            <field name="arch" type="xml">
                <form>
                    <sheet>
                        <group string="Score Card">
                            <field name="round_id" />
                            <field name="player_id" />
                            <field name="round_holes">
                                <tree editable="top" >
                                    <field name="hole_number" invisible="1"/>
                                    <field name="score_value"/>
                                </tree>
                            </field>
                        </group>
                    </sheet>
                </form>
            </field>
        </record>
0
Nikhil Agarwal
2018/10/04 8:55

Your view is correct, can you post the code for model file for the same? It seems the manytomany/onetomany field is incorrect

Ask a Question
Keep Informed
1 follower(s)
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 eLearning platform and experience all Odoo Apps through learning videos, use cases and quizzes.

Test it now