Odoo Help

0

1
1 答案
8
头像

Nilmar Shereef 阿拉伯联合酋长国

--Nilmar Shereef--
9649
| 6 5 10
AUH, 阿拉伯联合酋长国
--Nilmar Shereef--

Python Developer. Odoo Techno Functional Consultant.

Nilmar Shereef 阿拉伯联合酋长国
2016/12/18 下午11:10

copy=False
If you put copy=False to a field, When you duplicate a record, That value is not copied to duplicating (Newly created)record.

ondelete='cascade'

If you put this to a Many2one field, the deletion of record will cause to deletion of one2one records according to that record.
Eg:

When you delete a Sale Order, It will delete sale order lines also.

Index=True

you can speed the database search performance. However, you should be careful not to add indexes on too many fields because the size of the database can rapidly increase. What means, you should carefully detect the most searchable fields and to create indexes for them only.

Hope it may help you :)

2 注释
E.M. 西班牙
2016/12/19 上午3:46

Thanks, it helps.

Nilmar Shereef 阿拉伯联合酋长国
2016/12/20 上午12:15

Happy To help you. :)

提问
Writer
433
E.M.
Keep Informed
2 关注者(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 E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now