Let's say, someone changed the state of a product from "Normal" to "Obsolete". Is it possible to send a message to all followers of this product for this event? (automated action?)
Update: Thank you, Alby Antony, can i write a own module for this or change the existing code?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- إدارة علاقات العملاء
- e-Commerce
- المحاسبة
- المخزون
- PoS
- Project
- MRP
لقد تم الإبلاغ عن هذا السؤال
in xml view
<field name="amount_paid" placeholder="Amount Paid" on_change="onchange_amount_paid(amount_paid)"/>
function defenition can be
def onchange_amount_paid(self, cr, uid, ids, amount_paid, context=None): res = {'value':{}}
if amount_paid:
if fee_type==1 and amount_paid<70:
warning = { 'title': ("Warning"), 'message': ('registration account minimum payment is 70'), }
return {'value': res.get('value',{}), 'warning':warning}
return {'value': res.get('value',{})}
this will validate the amount paid in onchange function. if the amount is less than 70 it will show an error
This can be done with OpenChatter and track_visibility='onchange' on specific fields.
هل أعجبك النقاش؟ لا تكن مستمعاً فقط. شاركنا!
أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!
تسجيلالمنشورات ذات الصلة | الردود | أدوات العرض | النشاط | |
---|---|---|---|---|
|
0
أغسطس 22
|
3811 | ||
|
1
مارس 15
|
3645 | ||
|
0
مارس 15
|
2652 | ||
|
0
فبراير 24
|
1030 | ||
|
64
أبريل 23
|
39525 |
you just need to update your existing code.