Skip to Content
Odoo Menú
  • Registra entrada
  • Prova-ho gratis
  • Aplicacions
    Finances
    • Comptabilitat
    • Facturació
    • Despeses
    • Full de càlcul (IA)
    • Documents
    • Signatura
    Vendes
    • CRM
    • Vendes
    • Punt de venda per a botigues
    • Punt de venda per a restaurants
    • Subscripcions
    • Lloguer
    Imatges de llocs web
    • Creació de llocs web
    • Comerç electrònic
    • Blog
    • Fòrum
    • Xat en directe
    • Aprenentatge en línia
    Cadena de subministrament
    • Inventari
    • Fabricació
    • PLM
    • Compres
    • Manteniment
    • Qualitat
    Recursos humans
    • Empleats
    • Reclutament
    • Absències
    • Avaluacions
    • Recomanacions
    • Flota
    Màrqueting
    • Màrqueting Social
    • Màrqueting per correu electrònic
    • Màrqueting per SMS
    • Esdeveniments
    • Automatització del màrqueting
    • Enquestes
    Serveis
    • Projectes
    • Fulls d'hores
    • Servei de camp
    • Suport
    • Planificació
    • Cites
    Productivitat
    • Converses
    • Validacions
    • IoT
    • VoIP
    • Coneixements
    • WhatsApp
    Aplicacions de tercers Odoo Studio Plataforma d'Odoo al núvol
  • Sectors
    Comerç al detall
    • Llibreria
    • Botiga de roba
    • Botiga de mobles
    • Botiga d'ultramarins
    • Ferreteria
    • Botiga de joguines
    Food & Hospitality
    • Bar i pub
    • Restaurant
    • Menjar ràpid
    • Guest House
    • Distribuïdor de begudes
    • Hotel
    Immobiliari
    • Agència immobiliària
    • Estudi d'arquitectura
    • Construcció
    • Gestió immobiliària
    • Jardineria
    • Associació de propietaris de béns immobles
    Consultoria
    • Empresa comptable
    • Partner d'Odoo
    • Agència de màrqueting
    • Bufet d'advocats
    • Captació de talent
    • Auditoria i certificació
    Fabricació
    • Textile
    • Metal
    • Mobles
    • Menjar
    • Brewery
    • Regals corporatius
    Salut i fitness
    • Club d'esport
    • Òptica
    • Centre de fitness
    • Especialistes en benestar
    • Farmàcia
    • Perruqueria
    Trades
    • Servei de manteniment
    • Hardware i suport informàtic
    • Sistemes d'energia solar
    • Shoe Maker
    • Serveis de neteja
    • Instal·lacions HVAC
    Altres
    • Nonprofit Organization
    • Agència del medi ambient
    • Lloguer de panells publicitaris
    • Fotografia
    • Lloguer de bicicletes
    • Distribuïdors de programari
    Browse all Industries
  • Comunitat
    Aprèn
    • Tutorials
    • Documentació
    • Certificacions
    • Formació
    • Blog
    • Pòdcast
    Potenciar l'educació
    • Programa educatiu
    • Scale-Up! El joc empresarial
    • Visita Odoo
    Obtindre el programari
    • Descarregar
    • Comparar edicions
    • Novetats de les versions
    Col·laborar
    • GitHub
    • Fòrum
    • Esdeveniments
    • Traduccions
    • Converteix-te en partner
    • Services for Partners
    • Registra la teva empresa comptable
    Obtindre els serveis
    • Troba un partner
    • Troba un comptable
    • Contacta amb un expert
    • Serveis d'implementació
    • Referències del client
    • Suport
    • Actualitzacions
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Programar una demo
  • Preus
  • Ajuda

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

  • CRM
  • e-Commerce
  • Comptabilitat
  • Inventari
  • PoS
  • Projectes
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
Ajuda

Add spreadsheet to quote? (odoo.sh v13)

Subscriure's

Get notified when there's activity on this post

This question has been flagged
quotetable
2 Respostes
5717 Vistes
Avatar
FD Displays

So... i need to make a table like the one below and place it in the sales quote.

If this feasible? The fields are not related to any other fields.

I just need to add this table and print it with the sales quote.

Basically, i need to add an ' extra'services spreadsheet to the sales quote. Since all the values in the spreadsheet are variable, i found no other way to do it, instead of creating dozens of new products everytime, which wouldn't work.

I'd be using hundreds, if not thousands of different places and prices.

Any ideas in how i can achieve this?


Place
Visit
Freight
Instalation
NY
75
180
55
LA
65
99
75
Miami
130
60
77
Lisbon
450
65
670
Rio
43
45
32
0
Avatar
Descartar
Avatar
Paresh Wagh
Best Answer

It's definitely possible to do this with a minor customization. I'll write a detailed reply a little later, if possible or over the weekend. Hope that's ok.


EDIT:

The data in Odoo is managed using models which map to the underlying tables in the database. You can also define relationships between the models. A form (screen) in Odoo is a view that is based on a model.

In your case, since you want to capture the "spreadsheet" data in the Quotation/Sales Order, you will need to do the following customizations to make it available within Odoo. I'm assuming you are using Studio since you had mentioned it in the title of your previous post.

  1. Go to Settings, scroll all the way to the bottom and click on Activate Developer Mode

  2. Go to Settings > Technical Settings > Database Structure > Models and create a new model (for example, x_quotation_spreadsheet) to capture the "spreadsheet" data. Edit the model and add custom fields with the appropriate field types for Place (use x_name for this), Visit, Freight, Installation and a many2one field for Sales Order ID. Note that Odoo will automatically add some additional standard audit trail fields when you create a new model - you should not touch these fields. 

  3. Grant access rights on the x_quotation_spreadsheet model to the Sales / User: Own Documents Only security group. 

  4. Edit the Sales Order model (sale.order) and add a one2many custom field (for example, x_quotation_spreadsheet_ids) that links to the x_spreadsheet model. 

  5. Go to Sales, open one of the Quotations, and activate Studio to customize the Quotation/Sales Order view. Click on the + sign in the tabs to add a new tab. Specify the name of the tab in the properties on the left. 

  6. Click on + Add in the properties pane on the left and scroll down to the Existing Fields section. Click and drag the Spreadsheet Data (x_spreadsheet_ids) field into the tab. Click on the field and select the EDIT LIST VIEW option that pops up and add the fields listed in the Existing Fields section to the list view.

  7. Similarly, you can customize the form view of the spreadsheet data field by using EDIT FORM VIEW. Remember to make the Sales Order ID field invisible in the form view. It will be managed by Odoo automatically and will contain the id of the Sales Order associated with the data.

  8. Save the changes.

  9. Open one of the existing Quotations. You will see the new tab and be able to add the data in Edit mode. 

There is some more customization that can be done outside of Studio using view inheritance to make the field occupy the full width of the tab and provide inline editing instead of using the form view to enter the data for each line. It looks like Studio does not expose the properties needed to do this for now.

Hope this helps.


2
Avatar
Descartar
FD Displays
Autor

That would be perfect.

I really apreciate it! Thanks!

Paresh Wagh

I have edited the original post and added the details

FD Displays
Autor

I can't believe it! Thank you so much!

It worked! Yes, there are some customization to make, but for now, it will serve me perfectly.

Thanks Paresh! You saved my week. :)

Feryial Mangou

Hi I have followed the steps and added a spreadsheet in a task in project.

I now wanted to produce a report from it but since it is from another model I do not get to select all the fields in Odoo studio when building a report. Any solution?

Thanks

Paresh Wagh

@Feryial: The contents of the one2many field should be accessible while building the report by expanding the field and selecting the fields within it.

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

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

Registrar-se
Related Posts Respostes Vistes Activitat
signature and stamp
quote
Avatar
0
de maig 23
2805
quote /sales /crm
quote
Avatar
Avatar
Avatar
2
de maig 22
3042
Any way to send follow up Quotations to those who have not paid?
quote
Avatar
Avatar
1
d’oct. 19
5348
The long text (product description) not inserted in quotes/SO
quote
Avatar
1
de març 15
8862
Odoo quote calculator - fetch related data / current quote ID
quote spreadsheets
Avatar
0
de febr. 25
1743
Community
  • Tutorials
  • Documentació
  • Fòrum
Codi obert
  • Descarregar
  • GitHub
  • Runbot
  • Traduccions
Serveis
  • Allotjament a Odoo.sh
  • Suport
  • Actualització
  • Desenvolupaments personalitzats
  • Educació
  • Troba un comptable
  • Troba un partner
  • Converteix-te en partner
Sobre nosaltres
  • La nostra empresa
  • Actius de marca
  • Contacta amb nosaltres
  • Llocs de treball
  • Esdeveniments
  • Pòdcast
  • Blog
  • Clients
  • Informació legal • Privacitat
  • Seguretat
الْعَرَبيّة 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 és un conjunt d'aplicacions empresarials de codi obert que cobreix totes les necessitats de la teva empresa: CRM, comerç electrònic, comptabilitat, inventari, punt de venda, gestió de projectes, etc.

La proposta única de valor d'Odoo és ser molt fàcil d'utilitzar i estar totalment integrat, ambdues alhora.

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