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
    • Property 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
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 when configuring the document layout

Subscribe

Get notified when there's activity on this post

This question has been flagged
enterprisefedora
2 Replies
2971 Views
Avatar
Joseph Veliz Castañeda

I have odoo15 enterprice installed on fedora 34, but when configuring the document layout I get an error:



Rastreo (llamadas recientes más última):
  Archivo "/usr/lib/python3.9/site-packages/odoo/api.py", línea 886, en get
    devolver field_cache[registro._ids[0]]
Error de clave: 

Durante el manejo de la excepción anterior, ocurrió otra excepción:

Rastreo (llamadas recientes más última):
  Archivo "/usr/lib/python3.9/site-packages/odoo/fields.py", línea 1057, en __get__
    valor = env.cache.get(registro, propio)
  Archivo "/usr/lib/python3.9/site-packages/odoo/api.py", línea 889, en get
    aumentar CacheMiss (registro, campo)
odoo.exceptions.CacheMiss: 'base.document.layout(,).vista previa'

Durante el manejo de la excepción anterior, ocurrió otra excepción:

Rastreo (llamadas recientes más última):
  Archivo "/usr/lib/python3.9/site-packages/odoo/addons/web/models/base_document_layout.py", línea 290, en _compile_scss
    devuelve libsass.compile(
AttributeError: el objeto 'NoneType' no tiene atributo 'compilar'

La excepción anterior fue la causa directa de la siguiente excepción:

Rastreo (llamadas recientes más última):
  Archivo "/usr/lib/python3.9/site-packages/odoo/addons/base/models/ir_http.py", línea 237, en _dispatch
    resultado = solicitud.despacho()
  Archivo "/usr/lib/python3.9/site-packages/odoo/http.py", línea 688, en despacho
    resultado = self._call_function(**self.params)
  Archivo "/usr/lib/python3.9/site-packages/odoo/http.py", línea 360, en _call_function
    devuelve llamada_marcada(self.db, *args, **kwargs)
  Archivo "/usr/lib/python3.9/site-packages/odoo/service/model.py", línea 94, en contenedor
    return f(dbname, *args, **kwargs)
  Archivo "/usr/lib/python3.9/site-packages/odoo/http.py", línea 349, enchecked_call
    resultado = self.endpoint(*a, **kw)
  Archivo "/usr/lib/python3.9/site-packages/odoo/http.py", línea 917, en __call__
    return self.method(*args, **kw)
  Archivo "/usr/lib/python3.9/site-packages/odoo/http.py", línea 536, en response_wrap
    respuesta = f(*argumentos, **kw)
  Archivo "/usr/lib/python3.9/site-packages/odoo/addons/web/controllers/main.py", línea 1348, en call_kw
    return self._call_kw(modelo, método, argumentos, kwargs)
  Archivo "/usr/lib/python3.9/site-packages/odoo/addons/web/controllers/main.py", línea 1340, en _call_kw
    devuelve call_kw(solicitud.env[modelo], método, argumentos, kwargs)
  Archivo "/usr/lib/python3.9/site-packages/odoo/api.py", línea 464, en call_kw
    resultado = _call_kw_multi(método, modelo, argumentos, kwargs)
  Archivo "/usr/lib/python3.9/site-packages/odoo/api.py", línea 451, en _call_kw_multi
    resultado = método(recs, *args, **kwargs)
  Archivo "/usr/lib/python3.9/site-packages/odoo/models.py", línea 6486, en onchange
    snapshot1 = Instantánea (registro, árbol de nombres)
  Archivo "/usr/lib/python3.9/site-packages/odoo/models.py", línea 6268, en __init__
    self.fetch(nombre)
  Archivo "/usr/lib/python3.9/site-packages/odoo/models.py", línea 6278, en búsqueda
    self[nombre] = registro[nombre]
  Archivo "/usr/lib/python3.9/site-packages/odoo/models.py", línea 5885, en __getitem__
    return self._fields[key].__get__(self, type(self))
  Archivo "/usr/lib/python3.9/site-packages/odoo/fields.py", línea 1106, en __get__
    self.compute_value(recs)
  Archivo "/usr/lib/python3.9/site-packages/odoo/fields.py", línea 1265, en compute_value
    records._compute_field_value(self)
  Archivo "/usr/lib/python3.9/site-packages/odoo/models.py", línea 4255, en _compute_field_value
    getattr(self, campo.computar)()
  Archivo "/usr/lib/python3.9/site-packages/odoo/addons/web/models/base_document_layout.py", línea 121, en _compute_preview
    preview_css = markupsafe.Markup(self._get_css_for_preview(styles, Wizard_with_logo.id))
  Archivo "/usr/lib/python3.9/site-packages/odoo/addons/web/models/base_document_layout.py", línea 270, en _get_css_for_preview
    código_css = self._compile_scss(scss)
  Archivo "/usr/lib/python3.9/site-packages/odoo/addons/web/models/base_document_layout.py", línea 298, en _compile_scss
    excepto libsass.CompileError como e:
Excepción

La excepción anterior fue la causa directa de la siguiente excepción:

Rastreo (llamadas recientes más última):
  Archivo "/usr/lib/python3.9/site-packages/odoo/http.py", línea 644, en _handle_exception
    devuelve super (JsonRequest, self)._handle_exception (excepción)
  Archivo "/usr/lib/python3.9/site-packages/odoo/http.py", línea 302, en _handle_exception
    generar excepción.with_traceback (Ninguno) de new_cause
AttributeError: el objeto 'NoneType' no tiene el atributo 'CompileError'
please I hope you help me, thanks


0
Avatar
Discard
Avatar
Sudhir Arya (ERP Harbor Consulting Services)
Best Answer

Based on the error, it seems "libsass" is not installed properly. Please re-install it and try again.

3
Avatar
Discard
Gusto

libsass.compile: Error says that libsass is None

Rastreo (llamadas recientes más última):
Archivo "/usr/lib/python3.9/site-packages/odoo/addons/web/models/base_document_layout.py", línea 290, en _compile_scss
devuelve libsass.compile(
AttributeError: el objeto 'NoneType' no tiene atributo 'compilar'

Avatar
Joseph Veliz Castañeda
Author Best Answer

It is already installed, in the log I can see that it gives me the following error


odoo.http: Exception during JSON request handling.

Traceback (most recent call last):

File "/usr/lib/python3.9/site-packages/odoo/api.py", line 886, in get

return field_cache[record._ids[0]]

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
Create customer users without incurring enterprise fees for all
enterprise
Avatar
Avatar
1
Apr 23
6858
why would Odoo 14 enterprise server reboot every 5 - 10 minutes ?.
enterprise
Avatar
0
Jun 21
3069
How to access new version of Odoo studio Solved
enterprise
Avatar
Avatar
1
Mar 17
9814
I would like to know if i can buy ODOO enterprise version without passing through an ODOO partner. Solved
enterprise
Avatar
Avatar
4
Oct 16
7952
Odoo 18 Enterprise Error Causing Builds to Fail
enterprise odoo18
Avatar
Avatar
Avatar
2
Apr 26
337
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 Svenska ภาษาไทย 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