Odoo Help

0

0
1 Answer
1
Avatar

Ray Carnes

--Ray Carnes--
20733
| 10 7 11
Greater Los Angeles, 美国
--Ray Carnes--

Business Analyst

OpenERP 6.1, 7.0; Odoo 8.0, 9.0, 10.0, 11.0 and 12.0.

Completed Odoo Functional and Technical Training.

Functional Areas:

  • CRM/Sales

  • Inventory

  • Manufacturing

  • Accounting

  • Purchasing

Major Skills:

  • Business Process Reengineering

  • Efficiency Consulting

  • User Needs and GAP Analysis;

  • Functional and Technical Design;

  • Prototyping and Proof of Concepts;

  • Requirements Specifications;

  • Agile Implementation;

  • Data Migration;

  • Configuration & Customization (UI and code);

  • Integration - Odoo and non Odoo Applications and Services;

  • Training and Knowledge Transfer;

  • Go Live Support;

  • Helpdesk;

  • Version Upgrades and Migration.

  • Accounting Expert.

I have over 20 years of experience empowering and enabling users with enterprise information systems that make a real and measurable difference in their ability to proactively manage their businesses and organizations. 

I am a skilled Communicator and I only take the serious things seriously!

Ray Carnes
2017/4/3 下午10:06

If all you want to do is store the rep, and the rep is already in your system (ideally as an employee), then you can just add a field to store that information.

The instructions that follow are upgrade safe, meaning this change will persist during database upgrades (including to the next version of Odoo)


1.  Activate Developer Mode

2.  Navigate to Settings --> Technical --> Database Structure --> Models

3.  Search for and open the Sales Order model 

4.  Click EDIT, scroll to the bottom, click Add an Item

5.  Give the new field a name, something like x_outside_sales_rep

6.  Give it a Field Label, something like Outside Sales Rep

7.  The Field Type would be many2one

8.  The Object Relation would be hr.employee (if reps are stored as Employees) or res.partner (if reps are stored as Contacts)



9.  Click Save and Close, then Save


This adds the field to the Database.


10.  Navigate to Settings --> Technical --> User Interface --> Views

11.  Search for and open the sale.order.form view

12.  From the Action menu, select Duplicate

13.  Change the View Name to sale.order.form.custom

14.  Click Save then Edit

15.  Change the View Inheritance mode to Extension View

16.  Change Inherited View to sale.order.form

17.  Delete the contents of Architecture and replace with:

<data>
    <field name="user_id" position="after">
        <field name="x_outside_sales_rep"/>
    </field>
</data>



18.  Click Save


This adds the field to the User Interface.




EDIT: I realized you were asking to store this information on the Customer record - in step 11 just use res.partner.form (base.view_partner_form) instead.

2 Comments
Joshua Johnson
2017/4/5 上午5:47

Thanks again Ray. Are there folks out there that can be hired to do tasks like this? I'm also wanting to bring in my ship to addresses from quickbooks and looks like that may have a similar correction method.

Ray Carnes
2017/4/5 上午10:25

https://www.odoo.com/partners - I would recommend calling a few Partners to find one you are comfortable working with.

Ask a Question
Keep Informed
1 follower(s)
About This Community

This platform 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.

Register
Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now