Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Accounting
  • Inventory
  • PoS
  • Project
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

Error while printing a tree: Can't render view base.view_partner_form for model: res.partner

Subscribe

Get notified when there's activity on this post

This question has been flagged
treeviewtreetree_view
1 Reply
4671 Views
Avatar
Selverine

Hi all,


I am trying to print a tree in my view, but I not able to find the reason of the error.

Is it because my table is in another folder?


Please find below the code:

Inside my xml:

<field name="daily_action">  
                  <tree string="partner_id">
                        <field name="partner_id"/>
                         <field name="date_action"/>
                         <field name="action"/>
                         <field name="titre"/>
                         <field name="text"/>
                         <field name="numero"/>
                   </tree>

</field>

Inside my .py

 'daily_action': fields.one2many('daily.action', 'partner_id', 'Daily Action'),

And the daily.action table ( in another .py, in another folder)

class daily_action(osv.osv):
    _name = 'daily.action'
    _description = 'Daily Action'
    _columns = {
        'partner_id': fields.many2one('res.partner', 'Partner Id', required=True),
        'date_action': fields.date('Date', required=False, readonly=False, select=True),
        'action': fields.char('action', size=128, required=False, translate=False),
        'titre': fields.char('titre', size=128, required=False, translate=False),
        'text': fields.text('texte', size=128, required=False, translate=False),
        'numero': fields.text('texte', size=128, required=False, translate=False),
 
    }    _defaults = {
        'date_action': fields.date.context_today,
        'partner_id': lambda self, cr, uid, context: context.get('partner_id', False),
    }
daily_action()

Here the error:

2016-04-13 12:43:10,569 7809 ERROR HG_1 openerp.addons.base.ir.ir_ui_
view: Can't render view base.view_partner_form for model: res.partnerTraceback (most recent call last):  File "/opt/HG_test/openerp/openerp/
addons/base/ir/ir_ui_view.py", line 126, in _check_render_view    fvg = self.pool.get(view.model).
fields_view_get(cr, uid, view_id=
\view.id
, view_type=view.type, context=context)  File "/opt/HG_test/openerp/openerp/
addons/base/res/res_partner.
py", line 350, in fields_view_get    res = super(res_partner,self).
fields_view_get(cr, user, view_id, view_type, context, toolbar=toolbar, submenu=submenu)  File "/opt/HG_test/openerp/openerp/
osv/orm.py", line 2272, in fields_view_get    xarch, xfields = self.__view_look_dom_arch(cr, user, result['arch'], view_id, context=ctx)  File "/opt/HG_test/openerp/openerp/
osv/orm.py", line 1925, in __view_look_dom_arch    fields_def = self.__view_look_dom(cr, user, node, view_id, False, fields, context=context)  File "/opt/HG_test/openerp/openerp/
osv/orm.py", line 1871, in __view_look_dom    fields.update(self.__view_
look_dom(cr, user, f, view_id, in_tree_view, model_fields, context))  File "/opt/HG_test/openerp/openerp/
osv/orm.py", line 1871, in __view_look_dom    fields.update(self.__view_
look_dom(cr, user, f, view_id, in_tree_view, model_fields, context))  File "/opt/HG_test/openerp/openerp/
osv/orm.py", line 1871, in __view_look_dom    fields.update(self.__view_
look_dom(cr, user, f, view_id, in_tree_view, model_fields, context))  File "/opt/HG_test/openerp/openerp/
osv/orm.py", line 1871, in __view_look_dom    fields.update(self.__view_
look_dom(cr, user, f, view_id, in_tree_view, model_fields, context))  File "/opt/HG_test/openerp/openerp/
osv/orm.py", line 1788, in __view_look_dom    xarch, xfields = relation.__view_look_dom_arch(
cr, user, f, view_id, ctx)


Someone has an idea what is wrong with my tree?


Many thanks,


Selverine

0
Avatar
Discard
Avatar
Selverine
Author Best Answer

A little up for the hope ;-).


I have the impression that the problem is due to the fact that my table is declare in another folder.

May I need to do something special?


Many thanks,


Selverine

0
Avatar
Discard
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Sign up
Related Posts Replies Views Activity
Show a field from many2many relationship in a tree view Solved
treeview tree many2many tree_view
Avatar
Avatar
Avatar
Avatar
4
Jun 25
12375
Open tree view by default in tree without view_mode form
tree tree_view
Avatar
Avatar
Avatar
2
Sep 21
12504
how to add a button/field on the header of "tree" view? Solved
treeview tree_view
Avatar
Avatar
Avatar
9
May 21
28148
Navigate to different form view from the tree view
treeview form tree form_view tree_view
Avatar
0
Jun 24
1799
display full name in tree view
treeview display tree tree_view treeviews
Avatar
0
May 22
1051
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now