Skip to main content

Questions tagged [odoo]

Odoo was formerly known as OpenERP until May 2014. Odoo is a suite of open-source business apps written in Python and released under the AGPL license. It is used by 2 million users worldwide[third-party source needed] to manage companies of all different sizes. The main Odoo components are the server, 260 core ...

Filter by
Sorted by
Tagged with
0 votes
1 answer
96 views

API and logging method creating contacts in database

This is API ...
Chaban33's user avatar
1 vote
0 answers
44 views

API to print PDF label

Here I created a simple controller that returns a PDF label that's generated in my domain model. What bothers me is that I make mutations on my model in controller. Is that bad practice? Of course any ...
Chaban33's user avatar
3 votes
1 answer
212 views

Find if duplicate items exists in a list of dictionaries

I am writing a script to read rows (records) from an excel file with xlrd package and then create a dictionary for each row. In next step, I append each dictionary to a list. After I finished reading ...
Ibrahim Rahimi's user avatar
3 votes
1 answer
51 views

Stock product and lot duplicate finder

I have this function that searches for stock moves that have the same product, and if it finds them then it searches for lots in those lines, and if it finds the same lots then UserError is raised. ...
Chaban33's user avatar
5 votes
1 answer
822 views

python script to download multiple reports from odoo

We have an odoo server running (http://www.odoo.com/documentation/9.0/api_integration.html), which allows us to programmatically query and download invoice reports as PDF's We're running this on ...
Jarede's user avatar
  • 309
4 votes
2 answers
131 views

Marking projects as done when all tasks' progress are 100%

We have project.task model, where each task has many lines and each line has progress field indicating how much work has been done and how much still remaining (...
Tessnim's user avatar
  • 163
2 votes
1 answer
75 views

Adding a new record automatically

I created this method that adds a new situation to the situation list. The situation has a many-to-one relation with project.task. This method seems a little longer than it should be and I don't know ...
Tessnim's user avatar
  • 163
2 votes
0 answers
2k views

Connector for Odoo through xmlrpc (with testing code)

First time I write the tests before the actual code. All fit in the same module. ...
Yann's user avatar
  • 51
2 votes
0 answers
145 views

Copying fields to a partner

Currently I'm overriding create and write to copy the fields onto the partner, is there a cleaner way of updating the partner on save? ...
Kit Sunde's user avatar
  • 680