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.

6

how do I set the default value for a field from the web interface?

By
Alexandre Fayolle - Camptocamp
on 2/5/13, 8:37 AM 13,614 views

In v6.1, the link to set a default value was in the contextual menu of the model. Where has this feature gone in v7?

This question has been included in the official documentation.
16

Guewen Baconnier - Software Developer, Camptocamp

--Guewen Baconnier - Software Developer, Camptocamp--
2658
| 6 7 8
Lausanne, Switzerland
--Guewen Baconnier - Software Developer, Camptocamp--

Guewen works at Camptocamp as an Odoo developer since 2010. He is the lead developer of the Odoo Connector framework and the Magento Connector. He is a delegate member of the OCA, a committer and an active contributor to the OCA projects.

 

Guewen Baconnier - Software Developer, Camptocamp
On 2/5/13, 8:48 AM

First, you have to activate the 'developer mode'.

  1. Click on your name on the upper right corner
  2. Click on 'About OpenERP'
  3. Click on 'Activate the developer mode'

See 'How can I activate the developer mode' for more details.

Now, you should see a selection box on the top of each form (above the edit/create buttons). An entry of this selection box is 'Set Defaults'.

You need to display the form view of a record to see it. The selected record should have the value you want as a default.

In the 'Set Defaults' form, you are able to choose the value from the current form which you want as a default value. You can also choose if it is applicable to all users or only to you.

About the debug mode activation via the url:

The =true isn't mandatory anymore.

You can, as it was in v6.1, just add before the #

?debug

See the Question: How can I activate the developer mode?

Camptocamp SA
on 2/5/13, 9:51 AM

This solution does not seem to work. In the current version, that box does not show at all. I still see the normal breadcrumb, but there's no selection box. [Install date: 31 december 2015, nightly build]

Loïc Lavoie
on 12/31/15, 11:17 AM

Thanks Guewen. Your solution works very well to set defaults. please advise how do you set defaults for Order.Line (Purchase or Sales Order).

Navin Shettigar
on 11/7/16, 6:50 AM
This question has been included in the official documentation.
0
Achref Mhadhbi
On 8/8/15, 9:04 PM

@Guewen Baconnier

How Can I define default Accounts Receivable and Accounts Payable values when creating a partner? These fields are required during partner creation.

I activate in mode developer

I see a selection box on the top of each form (above the edit/create buttons). An entry of this selection box is 'Set Defaults'.

but I didn't see the record by default account Receivable or account Payable,

Please How can I define the default record to account Receivable or account Payable.

This question has been included in the official documentation.
0
Peter Langenberg
On 6/19/14, 2:03 PM

Maybe one thing extra ... I also had the problem this week, but it was in the POS on the odoo platform and there you don't have your name to click on ... 

I did it this way : 

xxx..odoo.com/pos/web?debug=/#action=pos.ui

This question has been included in the official documentation.
0

Yannick Vaucher

--Yannick Vaucher--
1699
| 5 7 9
Lausanne, Switzerland
--Yannick Vaucher--
Yannick Vaucher
On 2/5/13, 9:29 AM

About the debug mode activation via the url:

The =true isn't mandatory anymore.

You can, as it was in v6.1, just add before the #

?debug

See the Question: How can I activate the developer mode?

This question has been included in the official documentation.
0

Nicolas Bessi

--Nicolas Bessi--
1590
| 5 7 8
Lausanne, Switzerland
--Nicolas Bessi--
Nicolas Bessi
On 2/5/13, 8:55 AM

Guewen is right, thanks for the comment. Company filter is now parts of condition.

This bug has been fixed: https://bugs.launchpad.net/openerp-web/+bug/1042766

Camptocamp SA, Guewen Baconnier - Software Developer, Camptocamp
on 2/5/13, 9:12 AM
This question has been included in the official documentation.
0
Antonio M. Vigliotti
On 6/19/14, 1:13 PM

You can add ?debug via url but this option sometimes does not work properly.

It is simple if you are on top menu, but if you selected any view, probably you cannot insert this option

 

Antonio Maria Vigliotti

 

This question has been included in the official documentation.
0

Kevin McMenamin

--Kevin McMenamin--
804
| 5 2 6
Auckland, New Zealand
--Kevin McMenamin--
Kevin McMenamin
On 4/17/13, 6:58 PM

Yes that works but are we supposed to give users the access to this option given what else they can do using the same functionality?

Please create an other question like what does the developer mode.

Camptocamp SA
on 4/22/13, 2:40 PM

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

2 follower(s)

Stats

Asked: 2/5/13, 8:37 AM
Seen: 13614 times
Last updated: 8/10/15, 6:12 PM