Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
4003 Lượt xem

Questions: 

1. How to apply TDD flow to openerp modules? Where to place tests, where is test runner?

2. How to avoid reinstalls of module, to see changes that done in models? 

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất
  1. You can do with unittest2 and save it under tests folder [1]. Or you can do the yaml test and save it under test folder [2].
  2. Argumen init or update needed if you want to update xml data or change field data (database scheme). Any changes in python script will be loaded everytime the server start.

[1] https://doc.odoo.com/trunk/server/05_test_framework/

[2] https://doc.odoo.com/6.1/developer/11_upgrade_and_migration/#yaml-data-serialization

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 5 25
1562
0
thg 3 24
1386
2
thg 11 16
5592
3
thg 2 16
16297
3
thg 3 15
9036