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

Create a Form View only for functions

By
Cole
on 4/28/15, 12:20 PM 453 views

Hello, I need a simple Form View with a button which calls a function in models.py: for example I need a View like in "Update Modules List" (in Settings).

I already created a model without fields and used it in form view so I could access to the functions inside it, but I still have the buttons like "Save" at top of the view which makes me create empty records in a table (only timestamps) if pressed.

Is there a way to remove "Save" button or there's a better solution for my problem?

Any help is appreciated.


2

Baiju

--Baiju--
3154
| 5 4 8
Kochi, India
--Baiju--
ODOO technical and functional

        I like learning new thing, especially technical thing. I am a quick learner, I can learn technical things very fast. I have good logical skill,  I have immense interest in programming.

e-mail id : baijuks@hotmail.com

Baiju
On 4/28/15, 5:27 PM

Hi,

Use wizard with Transient Model (to avoid save and create button)

For Eg:

class class_name(models.TransientModel):  

Or:

you can restrict create, delete and write access for that model after creating one record (give only read access)..

==> use the most convenient method for you according to your need....


Hope this helps........ 


Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

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

Question tools

1 follower(s)

Stats

Asked: 4/28/15, 12:20 PM
Seen: 453 times
Last updated: 4/29/15, 4:11 AM