HI anyone please help me how to use onchange function in openerp urgent
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Buchhaltung
- Lager
- PoS
- Project
- MRP
Diese Frage wurde gekennzeichnet
First you have to decide where you want to give onchange function and then give attribute on_change to that field,, for Eg:- let our field is sample_field
<field name="sample_field" on_change="onchange_sample_field(arg1, arg2)"/>
Here onchange_sample_field is my function name
Next step is to define that function:-
Define what you have to do in that function,, function definition Eg:-
def onchange_sample_field(self, cr, uid, ids, arg1, arg2, context=None):
function body
return result
I have preparing a vehicle management system , if customer have two or more vehicles, and how onchange the vehicles no for one customer
my py file
class instalment_receipt_entry(osv.osv):
_name = 'instalment.receipt.entry'
_columns = { 'agreement_number_id': fields.many2one('agreement.number','Agreement Number'),
'receipt_no':fields.char('Receipt Number',size=64),
}
and my xml file
<field name="agreement_number_id"/>
<field name="receipt_no"/>
how to onchange this
on which field you want onchange?
receipt_no this fields i want change
Thanks and Regards
on which field you want onchange?
--
Baiju KS
Sent by OpenERP S.A. using Odoo about Forum Post False
Diskutieren Sie gerne? Treten Sie bei, statt nur zu lesen!
Erstellen Sie heute ein Konto, um exklusive Funktionen zu nutzen und mit unserer tollen Community zu interagieren!
Registrieren
This is not a real question. Elaborate more on what you tried, what went wrong, etc. Otherwise the question will just be closed.