Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

cannot find create function [Closed]

By
shafeequemonp
on 2/28/14, 12:44 AM 800 views

The Question has been closed for reason: duplicate question

by
Serpent Consulting Services Pvt. Ltd.
on 03/07/2014 12:40:27

It might be a simple question for you..i am new to openerp and i need to override the save button inside WAREHOUSE->DELIVERYORDERS->PRODUCTINLINE(i.e:additem) ,unfortunately i couldn't find the 'def create()' and 'def write()' functions in STOCK_PICKING_OUT class .i had already searched the functions inside openerp-7.0->addons->stock->stock.py ,but those functions are not there .can anyone help me to find the particular file

2

Sudhir Arya (SA)

--Sudhir Arya (SA)--
10150
| 6 8 8
Ahmedabad, India
--Sudhir Arya (SA)--

Working as an OpenERP/Odoo developer and a Team Leader 

Top 5 Odoo contributor On Stackoverflow

LinkedIn

Blog

Stackoverflow

Sudhir Arya (SA)
On 2/28/14, 4:08 PM

Hi Shafeeq,

This link Override Save Button may help you.

0

Nehal

--Nehal--
2090
| 5 2 8
Ahmadabad, India
--Nehal--
Nehal
On 2/28/14, 2:01 AM

Hi,

You can find the create/write method in openerp/osv/orm.py file. You can override the create/write method based on your requirement instead of changing the main method from orm.py.

There are some examples in existing modules where these methods are overridden. e.g. Account, CRM, HR, HR Holidays.

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

Asked: 2/28/14, 12:44 AM
Seen: 800 times
Last updated: 3/16/15, 8:10 AM