How to button object use?
Hi,
I want to make simple calculator module as tutorial?
my main object is :
class am_calculator(
pdb.set_trace()
_name = "am.calculator"
_description = 'AM Calculator'
_columns = {
'aVal': fields.
'bVal': fields.
'ans': fields.
}
am_calculator()
My view is as follows:
<openerp>
<data>
<menuitem name="AM Calculator" id="main_
<record model="ir.ui.view" id="view_
<field name="name"
<field name="model"
<field name="type"
<field name="arch" type="xml">
</record>
<record model="
<field name="name"
<field name="res_
<field name="view_
<field name="view_
</record>
<menuitem action=
</data>
</openerp>
Question is if I put value in "aVal" ,"bVal" field , show there addition or subtractions in "ans" field
what will be code for the addition and subtraction function?
Any one help me?
Shankar
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- OpenERP Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Vinay Rana (OpenERP)
- Solved:
- Last query:
- Last reply: