No one should be able to edit the form once the process is completed.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- 会計
- 在庫
- PoS
- Project
- MRP
この質問にフラグが付けられました
1
返信
3513
ビュー
Hi,
Try the below Javascript code
odoo.define('module.extension_name', function (require) {
var FormView = require('web.FormView');
FormView.include({
load_record: function() {
this._super.apply(this, arguments);
if (this.model === 'your.model') {
if (this.datarecord && (this.datarecord.state === 'state')) {
this.$buttons.find('.o_form_button_edit').css({'display':'none'});
}
else {
this.$buttons.find('.o_form_button_edit').css({'display':''});
}
}
});
});
And include the file in assets:
Regards
関連投稿 | 返信 | ビュー | 活動 | |
---|---|---|---|---|
|
1
6月 24
|
2609 | ||
|
1
4月 24
|
9482 | ||
|
1
5月 22
|
3760 | ||
|
2
6月 21
|
3021 | ||
|
1
9月 20
|
2823 |