GithubHelp home page GithubHelp logo

itpp-labs / odoo-development Goto Github PK

View Code? Open in Web Editor NEW
140.0 19.0 170.0 8.5 MB

Usefull information for odoo developers. Published at odoo-development.readthedocs.io

Home Page: https://odoo-development.readthedocs.io/

License: GNU Affero General Public License v3.0

odoo-development's Introduction

License: CC BY-NC-SA 4.0

Source of https://odoo-development.readthedocs.io/ website

Concept

How to contribute

Initialization

  • Fork this repo

  • Clone to your machine

  • Install dependencies:

    sudo pip install sphinx sphinx-autobuild
    sudo pip install sphinx_rtd_theme
    

Contribution

Translation

ReadTheDocs doc: https://docs.readthedocs.io/en/stable/guides/manage-translations.html

To update translation make PR with updates in docs/locales folder.

To activate new language send PR with update of .github/workflow/translations.yml. Then the new language must be activated in ReadTheDocs admin panel.

odoo-development's People

Contributors

em230418 avatar englishrain avatar hadrien-toma avatar i18n-bot avatar ilmir-k avatar jlalfonso21 avatar kinafu avatar kolushovalexandr avatar msh2050 avatar railia avatar ryanc-me avatar simorubi avatar trojikman avatar ufaks avatar vicefi avatar voronind avatar yelizariev avatar zeroheure avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

odoo-development's Issues

generate payslip with multiple currency

I want to generate two payslip in a difference currency for one company, for example one employee who belongs to USA and another one who belongs to UK ,the default company currency is EUR, when I try to generate payslip for USA employees, I want USD currency in payslip, but I am getting payslip in EUR, how can I to handle this scenario


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Question: do you use a bootstrap development environment using vagrant?

Hello,

I saw the install page, however I was wondering if you use or you have used Vagrant (maybe in conjunction with Buildout) in the past for development. The idea is to try to create a development environment without messing with the current environment, and try to provision everything with just one command.

If you have used Vagrant but you no longer recommend it, please let me know why.

I am defining my bootstrap method and I would like to put into one place the best practices that I can learn from the Odoo experts =).

Thank you very much

I want correct xpath

I want correct xpath for my code. Actually i think its correct but its not working if you know please
capture
help me...
i upload my code as image

TypeError: not enough arguments for format string (ODOO 11 on Ubuntu 16.04)

Having this error since Last July 2018:

Can't validate some entries as it creates an error. Seems its on 2 types of entry only (accounting module or now called invoicing)

Traceback (most recent call last):

  File "/home/odoo/odoo-server/odoo/http.py", line 647, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/home/odoo/odoo-server/odoo/http.py", line 307, in _handle_exception
    raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
  File "/home/odoo/odoo-server/odoo/tools/pycompat.py", line 87, in reraise
    raise value
  File "/home/odoo/odoo-server/odoo/http.py", line 689, in dispatch
    result = self._call_function(**self.params)
  File "/home/odoo/odoo-server/odoo/http.py", line 339, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/home/odoo/odoo-server/odoo/service/model.py", line 97, in wrapper
    return f(dbname, *args, **kwargs)
  File "/home/odoo/odoo-server/odoo/http.py", line 332, in checked_call
    result = self.endpoint(*a, **kw)
  File "/home/odoo/odoo-server/odoo/http.py", line 933, in __call__
    return self.method(*args, **kw)
  File "/home/odoo/odoo-server/odoo/http.py", line 512, in response_wrap
    response = f(*args, **kw)
  File "/home/odoo/odoo-server/addons/web/controllers/main.py", line 934, in call_button
    action = self._call_kw(model, method, args, {})
  File "/home/odoo/odoo-server/addons/web/controllers/main.py", line 922, in _call_kw
    return call_kw(request.env[model], method, args, kwargs)
  File "/home/odoo/odoo-server/odoo/api.py", line 689, in call_kw
    return call_kw_multi(method, model, args, kwargs)
  File "/home/odoo/odoo-server/odoo/api.py", line 680, in call_kw_multi
    result = method(recs, *args, **kwargs)
  File "/home/odoo/odoo-server/addons/account_asset/models/account.py", line 24, in post
    return super(AccountMove, self).post()
  File "/home/odoo/odoo-server/addons/account/models/account_move.py", line 160, in post
    new_name = sequence.with_context(ir_sequence_date=move.date).next_by_id()
  File "/home/odoo/odoo-server/odoo/addons/base/ir/ir_sequence.py", line 263, in next_by_id
    return self._next()
  File "/home/odoo/odoo-server/odoo/addons/base/ir/ir_sequence.py", line 257, in _next
    return seq_date.with_context(ir_sequence_date_range=seq_date.date_from)._next()
  File "/home/odoo/odoo-server/odoo/addons/base/ir/ir_sequence.py", line 352, in _next
    return self.sequence_id.get_next_char(number_next)
  File "/home/odoo/odoo-server/odoo/addons/base/ir/ir_sequence.py", line 224, in get_next_char
    interpolated_prefix, interpolated_suffix = self._get_prefix_suffix()
  File "/home/odoo/odoo-server/odoo/addons/base/ir/ir_sequence.py", line 217, in _get_prefix_suffix
    interpolated_prefix = _interpolate(self.prefix, d)
  File "/home/odoo/odoo-server/odoo/addons/base/ir/ir_sequence.py", line 194, in _interpolate
    return (s % d) if s else ''

TypeError: not enough arguments for format string

Although I understand the issue, I don't understand where it comes from as its not from a module installation and it was working file for 6 months in production.

I was looking into the odoo config sequences to see what would cause this issue because :

its not creating an error for all sequences
it creates it only on one

However, making changes on the sequences, didn't solved it.

I don't think I have to get into the code itself and make any change.
I believe it is more during configuration that it creates the issue afterwards.

https://github.com/odoo/odoo/blob/12.0/odoo/addons/base/models/ir_sequence.py#L193

Is it possible to come from a python version? Should I pass to python 3.6 ?
I have python 2.7 and python 3.5 installed

Updating the python3.6 didn't solve the issue
Update Odoo 11 didn't solve the issue
Update command on ubuntu didn't solve the issue

Appreciate if anyone would have a clue, but I'll dig some more too.

Copying fallower Ids.

I need to copy fallower_ids from project.project to project.task.
my method looks like this but it's not working. any suggestions how would you do this.

@api.multi
def add_project_followers(self):
for task in self:
partner_ids = task.project_id.message_follower_ids.ids
task.message_subscribe(partner_ids)


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.