Odoo已知Bug
1.モジュールカテゴリ名の多言語問題:
base / module / module.py
def _update_category(self, cr, uid, mod_browse, category='Uncategorized'):
current_category = mod_browse.category_id
current_category_path = []
while current_category:
current_category_path.insert(0, current_category.name)
current_category = current_category.parent_id
categs = category.split('/')
if categs != current_category_path:
# 这里不能比较,categs获取是原文,current_category_path通过current_category.name获取,name是可翻译字段,故不能比较
cat_id = create_categories(cr, categs)
mod_browse.write({'category_id': cat_id}
2._rec_name権限の問題
_rec_nameがmany2oneフィールドの場合、display_nameを計算するために関連モデルのname_get()を呼び出す必要があるため、関連モデルの読み取りアクセス許可が必要であり、アクセス許可はここでは検証されません。
odoo / openerp / models.py 1665 ::
@api.depends(lambda self: (self._rec_name,) if self._rec_name else ())
def _compute_display_name(self):
names = dict(self.name_get()) # _rec_name可能无权限
for record in self:
record.display_name = names.get(record.id, False)
3. odoodateおよびdatetimetypeフィールドのオプションパラメーターがありません
odoo / addons / web / static / src / js / views / form_widgets.js
行:484
return new datepicker.DateTimeWidget(this);
改是:
return new datepicker.DateTimeWidget(this、this.options);
行数:533
新しいdatepicker.DateWidget(this);
改是を返します:
新しいdatepicker.DateWidget(this、this.options);を返します。