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

Many2Many Field Creating Process

By
ECP D
on 8/3/13, 4:16 PM 1,098 views

Hi

i want to create a ew filed, but i going to errors at the end, about relation field alredy exist....

Here is how i did:

Add Business Type Field Option! : Add MODEL: model description: x_res.partner.businesstypes, Model: x_res.partner.businesstypes Add field to model : x_businesstype , Type Char Add New View: (duplicate previous form or tree view!!!!) form : View name: x_res.partner.businesstypes.form, View type :Form, Object: x_res.partner.businesstypes Architecture:

<form string="Business Types" version="7.0"> <group col="4"> <field name="x_businesstype"/> </group> </form>

Tree: View name: x_res.partner.businesstypes.tree, View type: Tree, Object: x_res.partner.businesstypes Architecture: <tree string="Type of Business"> <field name="x_businesstype"/> </tree>

Create new window action: Action name: Business Types Object: x_res.partner.businesstypes, View Type: Form, View mode: tree,form

Create new Menu: menu: Business Types, Parent menu : Sales/Configuration/Address Book, Sequence : 6 Action: ir.action.act_window: Business Types

Create New Field: Field Name : x_businesstype, Field Label: Business Type, Model: res.partner, Field Type: many2many, Object Relation: x_res.partner.businesstypes Modify res.partner form View: Add New Line After use parent address.. <label for="x_businesstype"/>

<field name="x_businesstype" widget="many2many_tags" placeholder="Business Types..."/>

Thx any feedback!!

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

0 follower(s)

Stats

Asked: 8/3/13, 4:16 PM
Seen: 1098 times
Last updated: 3/16/15, 8:10 AM