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

Hi im trying to show a div banner under the header based on the condition of a field being empty or not in the Accounting Tab in res.partner model. and i cant seem to achieve that since the Tab() is restricted to only Accountants. Can anyone explain to me why this is happening and the work way around this.

below is my code segment.


 expr="//sheet[1]" position="before">

class="alert alert-warning mb-0" role="alert" attrs="{'invisible':['|','&',('is_fra','=',False),('is_agent','=',False),('analytic_account_id','!=',False)]}" groups="account.group_account_invoice,account.group_account_readonly,account.group_account_manager">
Analytic Account has not yet created for this contact. Please proceed to the accounting tab to create the Analytic Account.


Note that only the analytic_account_id is in the accounting tab. 

Any help would be very much appreciated. 

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 7 19
6079
3
thg 5 25
1801
1
thg 3 24
1517
2
thg 1 23
2113
1
thg 11 22
2436