ok i have this scenario if the credit limit of any customer is exceed we got the little notification on the top of sale order i have set this condition on the confirm button using studio
[["partner_credit_warning","!=",False]]
and only sale/Admin can approve this
here is Screen short
https://drive.google.com/file/d/1lZ2OCZjz4SrM3hJPQ9TVVifak_pGcpbN/view?usp=sharing
problem is that this thing work fine in the demo odoo + in online 15 days db but this condition is not working in my local db it just let it confirm so no error in logs.
my local db version is odoo16.0 e
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- 客戶關係
- e-Commerce
- 會計
- 庫存
- PoS
- Project
- MRP
此問題已被標幟
2
回覆
945
瀏覽次數
I have solved this problem by replacing the studio module with the new code and it work fine now
Hi
Try the following code in your custom module
<record id="view_order_inherit_custom_form" model="ir.ui.view" style="color:#d5b778;">> <field name="name">sale.order.form style="color:#d5b778;"></field> <field name="model">sale.order</field> <field name="inherit_id" ref="sale.view_order_form" /> <field name="arch" type="xml"> <xpath expr="[@name='action_confirm']" position="attributes"> <attribute name="attrs">{'invisible': ['|',('state', 'not in', ['sent']),('partner_credit_warning','!=',False)]}</attribute> </xpath> </field></record>
Regards
i didn't created any custom module working on the orginal code all the things in my question is done using studio in demo /local
相關帖文 | 回覆 | 瀏覽次數 | 活動 | |
---|---|---|---|---|
|
1
11月 22
|
2453 | ||
|
1
4月 24
|
2114 | ||
|
2
2月 24
|
2545 | ||
|
2
7月 23
|
1601 | ||
|
1
3月 24
|
922 |