Hello
In my bespoke system, I like to have a hyperlink on issues to a forum question if applicable. Open ERP does not seem to provide the field or link function.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hello
In my bespoke system, I like to have a hyperlink on issues to a forum question if applicable. Open ERP does not seem to provide the field or link function.
You need to add a Custom Field to Project Issues.
First, log in as Administrator
and make sure the Technical Features
are enabled.
In the Settings
menu:
Users
, find and open "Administrator", and in the Access Rightstab check
Technical Features`.Second, create the custom field in the database:
Technical
-> Database Structure
, find and edit the "Project Issue" model Fields
tab, "Add an Item"x_url
Hyperlink
char
200
Save & Close
the "Create Fields" dialogFinally, add the field to the form:
Technical
-> User Interface
, find and edit the "Project Issue Tracker Form"In the Architecture
text, find and replace:
<group groups="base.group_user">
<field name="user_id"/>
with
<group groups="base.group_user">
<field name="x_url" widget="url"/>
<field name="user_id"/>
And it's done. Now go to Project Issues and you'll see the new field available.
For fields that are not URLs just remove the "widget=...". Just write: <field name="my_field_name"/>
. See all attributes a field can have inn the official docs.
Fantastic, thanks a lot. That showed me a little that its nice and open and can be changed.
How do I add fields that are not url fields and have them appear with a larger box (like description). Set type to char size 400 or text. But what should the widget be in xml architecture for this type of field? <field name="x_url" widget="url"/>
For fields that are not URLs just remove the "widget=...". Just write: <field name="my_field_name"/>
. - just added this to the answer.
Daniel, thanks. How can I however increase the size of the data entry field?
Changing the field's size
in the Database Structure
should be enough. I chose 200, but you can change that to whatever size.
Sorry I meant on the form view rather than in the database structure
In the form you only need to tell where you want to place the field, and optionally add some display attributes, such as the widget to use. The size and type is defined in the database structure. If for some reason the size change isn't taking effect, try restarting the OpenERP server.