Giter Site home page Giter Site logo

odoo / odoo Goto Github PK

View Code? Open in Web Editor NEW
34.6K 34.6K 22.6K 8.03 GB

Odoo. Open Source Apps To Grow Your Business.

Home Page: https://www.odoo.com

License: Other

Makefile 0.01% Python 49.64% XSLT 0.02% HTML 0.15% CSS 0.25% JavaScript 47.78% Shell 0.06% NSIS 0.03% SCSS 2.04% Sass 0.02% Vim Script 0.01%
apps business erp management odoo odoo-apps python

odoo's Introduction

Build Status Tech Doc Help Nightly Builds

Odoo

Odoo is a suite of web based open source business apps.

The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...

Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.

Getting started with Odoo

For a standard installation please follow the Setup instructions from the documentation.

To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials

odoo's People

Contributors

aab-odoo avatar alexkuhn avatar amigrave avatar antonylesuisse avatar beledouxdenis avatar feyensv avatar fpodoo avatar fvdsn avatar ged-odoo avatar gorash avatar hmo-odoo avatar jam-odoo avatar jco-odoo avatar jke-be avatar kangol avatar mart-e avatar nicolas-van avatar nim-odoo avatar nle-odoo avatar odony avatar qsm-odoo avatar rco-odoo avatar robodoo avatar simongoffin avatar sle-odoo avatar tde-banana-odoo avatar tivisse avatar tpa-odoo avatar xmo-odoo avatar xrg 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  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

odoo's Issues

Odoo doesn't allow PostgreSQL Streaming Replication

Odoo makes use of Hash indexes (for instance in ./openerp/addons/base/ir/ir_translation.py, I didn't check if there are other cases).

Hash Indexes are not compatible with Streaming Replication - cf http://www.postgresql.org/docs/9.1/static/indexes-types.html

Meaning that all attempts to create any kind of master - slave setup (either for easier failover in case of outage on the master server, or for load-balancing reasons in case external tools are using the same DB) are doomed.

I am not sure on the consequences for disaster recovery solutions based on WAL logs shipping (like http://www.pgbarman.org/ for instance).

Some possible options are:

  • create a functional index on md5(src) and use it in the queries
  • create a functional index on (substring(src for 50)) and use it

POS : missing parameters

Hello,

while using the new version of POS.
I try to call the show_popup function and passing to it two parameters (pop_name, messge).

For instance:

self.screen_selector.show_popup('error', 'Sorry, we could not create a user session');

The problem is the declared function (show_popup) in ScreenSelector only accepts one parameter.

show_popup: function(name){
    if(this.current_popup){
        this.close_popup();
    }
    this.current_popup = this.popup_set[name];
    this.current_popup.show();
},

The fix is :

show_popup: function (name, message) {
    if (this.current_popup) {
        this.close_popup();
    }
    this.current_popup = this.popup_set[name];
    if (message) {
        this.current_popup.$el.find('.comment').html(message);
    }
    this.current_popup.show();
},

Another point is to add a close button to ErrorPopupWidget like so, otherwire we cannot close the popup

<t t-extend="ErrorPopupWidget">
    <t t-jquery=".modal-dialog" t-operation="replace">
        <div class="modal-dialog">
            <div class="popup popup-help">
                <p class="message"><t t-esc=" widget.message || 'Error' " /></p>
                <p class="comment"><t t-esc=" widget.comment || '' "/></p>
                <div class="footer">
                    <div class="button">
                        Ok
                    </div>
                </div>
            </div>
        </div>
    </t>
</t>

Thanks.

[8.0] Point_of_sale + PosBox : the receipt doesn't work (shop problem)

Hi all,

I recently tested point_of_sale + pos_box solution that is very good. But recently, it doesn't work, due to the removal of shop concept in odoo.
The file addons/point_of_sale/static/src/xml/pos.xml make reference to the shop.name, and so there is an unmanaged error.
We have to remove the obsolete shop reference in this file.
bug_point_of_sale-sale_shop

.csv Import isn't working on v7.0 (latest checkout via bzr)

Are there known issues? I can't import any existing users from a csv file, employees aren't working too. After adding the .csv File nothing happens...tried other browsers, but won't work.

I can import this csv to an older v7.0 installation. So the format should be ok.

view choosen on page refresh

I have two form views for model account.analytic.account - the original (id="view_account_analytic_account_form") and simplified (id="portal_agreement_form_view") with low priority = 1000 used for Portal users.
The simplified form is loaded from another form m2o field defined as:

field name="user_agreement" context="{'form_view_ref' : helpdesk_currenda.portal_agreement_form_view', 'tree_view_ref' : 'helpdesk_currenda.portal_agreement_form_view'}"

When click on m2o field simplified form is loaded. But when I refresh the page in the browser system gets the original view, which is not desired. Is there a way to avoid this behaviour?

Site Caching, SAAS server locations, Mirrors

Let me drop a feature request


Adopt a global reach / performance strategy
... for significant performance improvments in continents other than Europe or North America.


Issues:
...currently faced out of Bogotá, Colombia.

  • SaaS is SLOW, not suitable to adopt in produccion :(
  • Website doesn't seem to be cached, coffe brake loading times in some cases
  • Internet Backbones via the US sometimes seem to get congested (especially during business hours) - I'm not able to make an informed statement about that,it's my suspicion. as on saturday and in the evenings (colombian time) it got better. Connecting to a local server or to a server in Sao Paolo showed way better results than connecting to a server in the US or europe (Speedtest)
  • More developing countries might not have the best international backbone connection.
  • Installation from nightl.odoo.com is terribly slow. Mirrors might be worth a consideration. Maybe due to odoo-update ?

Final remarks:


I think there is a strategic fit to page 53 in http://www.slideshare.net/openobject/the-future-of-openerp-open-days-2013-keynote-presentation-fabien-pinckaers-ceo-openerp

Maybe this ideas could lead to a new local caching mechnism for the webapp to lower traffic and add (limited) offline capacities (backlogging?) - i think connectivity as a whole is a huge topic in dev countries. (Regular Outages with local generators, Internet breakdowns, etc.)

@odony @fpodoo

@nhomar, any similar experience in mx, vz, pe, cl?

POS Usability Improvement, Varios

  • Usually users will hold the touchscreen in between touching with the right hand on the upper corner (sepecaîally if the screen is fixed). Let us put it like this: It is the "home" position of the right hand. This is where the home butten should reside. If it is left to the search field the risc of accidently clicking on close is low. Suggestion: revers the homebutten so that it nests to the left, this is not the l-t-r reading style, but adapts to the home postion of the hand. Another argument is, that the hand is not covering the screen and therefore the vision for unecesary seconds.
  • The other part is making new recipets and deleting recipts with the +- buttens (they are very small..) My suggestion is, that this could be conveniently acomplished by the left hand (residing in its presumable "home position" on the left upper corner of the screen). If in the corner, we place the "O" of odoo, make the whole thing a just a little bit bigger, then imediately let follow the operator's name, like this within natuarl thub's reach would be the + - buttons...
  • The POS Jurnals need Icons! because the text is eating up ery valuable space!!!!! They probably should use the otherwise unused space left to the recipt Total. Like this they would be conveniently within reach of the left hand, which in turn would automatically lead the eyes to check the total. This results in an additional visual sanity check and helps retaining the amount in mind (which usually a good cashier should do to spead up the process). I think under operating situarions this could be valuable tweaks.
 __   __   __   __ 
|__| |__| |__| |__|      TOTAL: $22.000,-
  • Strike-away (like iphone) for recipt items 👍
  • The Qty/Disc/Price buttons should go to the left of the num keypad. Scaled so that fit 3 buttons within the height of 4 numpad buttons, making them generally bigger. This is a good idea, because they always have to be pressed first. This is clearly a left hand job, so if the left hand resides on the left rim of the display, it would be a natural move to touch those buttons on the way to the num keypad. Maybe there could be an additional spacing to the number keabord, to prevent mistyping.
 ___     __   __   __    
|   |   |__| |__| |__|   
|___|    __   __   __    
.---.   |__| |__| |__|   
|   |    __   __   __    
'---'   |__| |__| |__|   
|   |    __   __   __    
|___|   |__| |__| |__|   
  • To prevent errors the delete butten should be taken away: With Iphone-like feature, we can delete items. the other functions could be accomplished much more conveniently (and fast): Make the Qty/Disc/Price - Fields double-click sensitive with the following behaviour:
    • Qty: Defaults to default sale cty (of there is one) - usually 1
    • Disc: Defaults to 0% (or is there something more sensible?)
    • Price: Defaults to the default price

Thanks for duely considering, I thing this might be small, but powerful changes.. ;)


continued:

  • on checkout (when clicking a jurnal icon left to the total, see above), the num keypad and everything beyond the recipt should disappear. There is the place where the journal fields should go. On the main screen a BIG numpad should appear immediately The display of Total, Paid, Remaining, Change should go a bit to the left, so that on the right of this information resides the big numpad, conveniently reachable for the right hand. the termination options should go with an exytra spacing closly under this big numpad, except the most used one (usually cash), but wich the user can define. This, together with a correction button should go directly with an extra spacing to the right of the big numpad spanning each two numpads items
 __   __   __     ___
|__| |__| |__|   |   |
 __   __   __    |<==|
|__| |__| |__|   |___|
 __   __   __     ___
|__| |__| |__|   |   |
 __   __   __    |CAS|
|__| |__| |__|   |___|

Ready shipped VMs or Docker VEs for Dev

Let me drop a feature request


Out-of-the-Box VMs & Docker-VEs
... for newcomer-developers to kick in and start developing.


Layout suggestion:
...available as VMs or Docker-VEs, each.

- An optional no-trace-guest

  • ready configured eclipse dev-environment
    • set up to connect with repo on fellow Guest VM / VE
    • actualized xml, python and csv templates (throw in Odoo team's best practice)

- A Odoo-Server-guest

  • latest Odoo running
    • all dependencies (incl. optional) in an virtualenv for flexibility
    • ngnix configured to help transition to roll-out scenario

- A DB-Server-guest


Suggested Technologies:

The provision of all these should be done by well commented ansible playbooks, which are easy to grasp, leave absolutely no trace on provisioned machine, can be used for custom rebuilds and help in a roll-out scenario as the upcoming industry standard for provisioning and config / CI management http://www.ansible.com/home

As best practice, those VM / VE environments could be setup and configured by vagrant scrips using vagrantup as an upcoming standard. http://www.vagrantup.com/


Final remarks:

So a good thing would be, that a developer could be working on a virgin computer after installing vagrant, maybe a VM provider, if VM capacity is not yet implemented on the host, downlowding a vagarntfile (recipt) and hack int vagrant up , wait some minutes and go.

If all that is accomplished and works also with Hyper-V VMs there is the reward:
Get rid of W32 support. I can not imagine that anyone considers seriously running this in an windows environment for production.

I think a best practice approach on provisionning (ansible) would greatly benefit the community. Also I think to heavily leverage virtualization would greatly fit the new strategy/image. Congrats to that one by the way!

Here is my own pilgrimage on this issue:
https://github.com/blaggacao/Odoo-VagrantUp

[8.0] reporting - expend doesn't work on table

Impacted versions:

Version 8.0
(Build 35497)
server (5219)
addons (9463)
web (4019)

Chrome Version 23.0.1271.64
Firefox 29.0

Steps to reproduce:

To reproduce:
Go in Reporting -> Accounting -> Treasury Analysis
Click on + symbol -> nothing happen
Click on - symbol it collapse and change to +
Now click on new +, it stay collapsed

Current behavior:

Line stay collapsed clicking on + button has no effect

Expected behavior:

Clicking on + should divid again the line

Rename "openerp" to "odoo"

The project's name change ought be impacted on the project content (collecting, may not be correct):

  • rename the openerp (and openerp.addons) modules
    • add a BC layer so the old name remains available (import hook? that's going to be fun...)
    • for CSS classes, do we add a odoo class next to the openerp one and leave openerp in for partners &al?
    • what about oe_-prefixed classes?
      • not necessary (fme)
    • scripts? eg openerp_mailgate, duplicate? (symlinks not an option because windows)
  • manifest file (__openerp__.py)
    • Maybe a generic name (eg: __manifest__.py) ?
  • Thunderbird & Outlook plugins
  • Windows service
  • root element in XML data files (IIRC the parser doesn't even look at them)
    • odo proposes to get optionally use as root
  • references in comments
  • odooframework!
  • root logger
  • email addresses
  • PO file strings (non-POT)

Not sure?

  • project name in POT file comments? (fix POT exporter instead?)
  • license headers
  • SAAS url (*.my.openerp.com) don't seem to work on odoo.com
  • config/environ keys (openerp.tools.config -> env['OPENERP_SERVER']; mailgate OPENERP_*)
  • functional documentation :

things to not rename (collecting, may not be correct)

  • user names (e.g. Last-Translator tags in PO files)
  • company name references (OpenERP SA)?
  • debian/changelog contents?

(ignoring PO files, there are 25530 instances of /open\s?erp/i in the working copy it seems)

Usability Bug :: Account :: Search :: group by: Parent Account

Issue Type:

Usability Bug

Odoo Version:

Version 7.0-20130922-231028

Environment:

N/A.

Summary:

Searching for an account from the dropdown "Search more..." entry expects you to know all your accounts and their structure. This is not sane. Routing would be required.

Steps To Reproduce:
  • Klick on any field which expects you to choose an account in the dropdown on "Search more..."
  • Try to filter for a saner way of displaying
Expected Results:

Visual routing by the account structure, which usually is defind by VIEW-Account-Types.
Optional recommended: Make a future corresponding filter a default.
Optional 2: Add functionality to get such a structure in beautifully leightweight flavor already on dropdown.

Rephrased: When clicking on filter parent account: include view-type accounts.

Actual Results:

Only can filter for:

  • Parent Account - doesn't inclued view-type accounts 👎
  • Account Type
  • Internal Type

LiveChat is not working on version 8

I installed livechat for visitors, when I add the script livechat script link on my openerp 8 website, I got the bellow errors:

2014-05-24 16:54:25,021 20081 INFO openerp werkzeug: 127.0.0.1 - - [24/May/2014 16:54:25] "GET /web? HTTP/1.1" 404 -
2014-05-24 16:54:25,083 20081 INFO ? werkzeug: 127.0.0.1 - - [24/May/2014 16:54:25] "GET /im_livechat/static/ext/static/lib/requirejs/require.js HTTP/1.1" 200 -
2014-05-24 16:54:25,121 20081 WARNING openerp openerp.osv.orm: No field_values found for ids [2] in browse_record(im_livechat.channel, 2)
2014-05-24 16:54:25,257 20081 INFO openerp werkzeug: 127.0.0.1 - - [24/May/2014 16:54:25] "GET /im_livechat/loader?p=%7B%22db%22:%20%22openerp%22,%20%22channel%22:%202%7D HTTP/1.1" 500 -
2014-05-24 16:54:25,315 20081 ERROR openerp werkzeug: Error on request:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/werkzeug/serving.py", line 177, in run_wsgi
execute(self.server.app)
File "/usr/local/lib/python2.7/dist-packages/werkzeug/serving.py", line 165, in execute
application_iter = app(environ, start_response)
File "/backup/odoo/openerp/service/server.py", line 273, in app
return self.app(e, s)
File "/backup/odoo/openerp/service/wsgi_server.py", line 215, in application
return application_unproxied(environ, start_response)
File "/backup/odoo/openerp/service/wsgi_server.py", line 201, in application_unproxied
result = handler(environ, start_response)
File "/backup/odoo/openerp/http.py", line 1110, in call
return self.dispatch(environ, start_response)
File "/backup/odoo/openerp/http.py", line 1087, in call
return self.app(environ, start_wrapped)
File "/usr/local/lib/python2.7/dist-packages/werkzeug/wsgi.py", line 579, in call
return self.app(environ, start_response)
File "/backup/odoo/openerp/http.py", line 1248, in dispatch
result = ir_http._dispatch()
File "/backup/odoo/addons/website/models/ir_http.py", line 78, in _dispatch
return super(ir_http, self)._dispatch()
File "/backup/odoo/openerp/addons/base/ir/ir_http.py", line 125, in _dispatch
return self._handle_exception(e)
File "/backup/odoo/addons/website/models/ir_http.py", line 186, in _handle_exception
return super(ir_http, self)._handle_exception(exception)
File "/backup/odoo/openerp/addons/base/ir/ir_http.py", line 94, in _handle_exception
return request._handle_exception(exception)
File "/backup/odoo/openerp/addons/base/ir/ir_http.py", line 121, in _dispatch
result = request.dispatch()
File "/backup/odoo/openerp/http.py", line 544, in dispatch
r = self._call_function(*_self.params)
File "/backup/odoo/openerp/http.py", line 296, in _call_function
return checked_call(self.db, *args, *_kwargs)
File "/backup/odoo/openerp/service/model.py", line 113, in wrapper
return f(dbname, _args, *_kwargs)
File "/backup/odoo/openerp/http.py", line 293, in checked_call
return self.endpoint(_a, *_kw)
File "/backup/odoo/openerp/http.py", line 659, in call
return self.method(_args, *_kw)
File "/backup/odoo/openerp/http.py", line 345, in response_wrap
response = f(_args, *_kw)
File "/backup/odoo/addons/im_livechat/im_livechat.py", line 55, in loader
info = reg.get('im_livechat.channel').get_info_for_chat_src(cr, uid, channel)
File "/backup/odoo/addons/im_livechat/im_livechat.py", line 196, in get_info_for_chat_src
'buttonText': chan.button_text,
File "/backup/odoo/openerp/osv/orm.py", line 505, in getattr
return self[name]
File "/backup/odoo/openerp/osv/orm.py", line 435, in getitem
raise KeyError('Field %s not found in %s'%(name, self))
AttributeError: Got KeyError('Field button_text not found in browse_record(im_livechat.channel, 2)',) while trying to get attribute button_text on a im_livechat.channel record.
2014-05-24 16:54:25,684 20081 INFO openerp werkzeug: 127.0.0.1 - - [24/May/2014 16:54:25] "GET /web/css/web.assets_common HTTP/1.1" 200 -
2014-05-24 16:54:25,800 20081 INFO openerp werkzeug: 127.0.0.1 - - [24/May/2014 16:54:25] "GET /logo.png HTTP/1.1" 200 -

CSV Import TypeError in http.py

When trying to import the same previously exported csv in Version 8.0dev-20140416-230101
I get this stderr:

  File "/usr/share/pyshared/openerp/addons/base/ir/ir_http.py", line 89, in _han
dle_exception
    return request._handle_exception(exception)
  File "/usr/share/pyshared/openerp/addons/base/ir/ir_http.py", line 116, in _di
spatch
    result = request.dispatch()
  File "/usr/share/pyshared/openerp/http.py", line 537, in dispatch
    r = self._call_function(**self.params)
  File "/usr/share/pyshared/openerp/http.py", line 294, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/usr/share/pyshared/openerp/service/model.py", line 113, in wrapper
    return f(dbname, *args, **kwargs)
  File "/usr/share/pyshared/openerp/http.py", line 291, in checked_call
    return self.endpoint(*a, **kw)
  File "/usr/share/pyshared/openerp/http.py", line 638, in __call__
    return self.method(*args, **kw)
  File "/usr/share/pyshared/openerp/http.py", line 337, in response_wrap
    response = f(*args, **kw)
TypeError: set_file() takes at least 4 arguments (4 given)

The same happens with other import attemps (eg. from V7)

server error opening Configuration > Accounting

Traceback (most recent call last):
File "/home/aa/odoo/odoo/openerp/http.py", line 478, in dispatch
result = self._call_function(*_self.params)
File "/home/aa/odoo/odoo/openerp/http.py", line 296, in _call_function
return checked_call(self.db, *args, *_kwargs)
File "/home/aa/odoo/odoo/openerp/service/model.py", line 113, in wrapper
return f(dbname, _args, *_kwargs)
File "/home/aa/odoo/odoo/openerp/http.py", line 293, in checked_call
return self.endpoint(_a, *_kw)
File "/home/aa/odoo/odoo/openerp/http.py", line 659, in call
return self.method(_args, *_kw)
File "/home/aa/odoo/odoo/openerp/http.py", line 345, in response_wrap
response = f(_args, *_kw)
File "/home/aa/odoo/odoo/addons/web/controllers/main.py", line 1046, in call_kw
return self._call_kw(model, method, args, kwargs)
File "/home/aa/odoo/odoo/addons/web/controllers/main.py", line 1038, in _call_kw
return getattr(request.registry.get(model), method)(request.cr, request.uid, _args, *_kwargs)
File "/home/aa/odoo/odoo/openerp/osv/orm.py", line 1886, in fields_view_get
xarch, xfields = View.postprocess_and_fields(cr, uid, self._name, etree.fromstring(result['arch']), view_id, context=ctx)
File "/home/aa/odoo/odoo/openerp/addons/base/ir/ir_ui_view.py", line 746, in postprocess_and_fields
self.raise_view_error(cr, user, message, view_id, context)
File "/home/aa/odoo/odoo/openerp/addons/base/ir/ir_ui_view.py", line 313, in raise_view_error
raise AttributeError(message)
AttributeError: Field group_analytic_account_for_sales does not exist

Error context:
View account settings
[view_id: 487, xml_id: account.view_account_config_settings, model: account.config.settings, parent_id: n/a]

Cannot start server, need web and web_kanban

2014-05-17 19:34:24,272 13169 INFO ? openerp: database hostname: localhost
2014-05-17 19:34:24,272 13169 INFO ? openerp: database port: 5432
2014-05-17 19:34:24,272 13169 INFO ? openerp: database user: aa
2014-05-17 19:34:24,273 13169 WARNING ? openerp.modules.module: module web: module not found
2014-05-17 19:34:24,273 13169 CRITICAL ? openerp.modules.module: Couldn't load module web
2014-05-17 19:34:24,273 13169 CRITICAL ? openerp.modules.module: No module named web
2014-05-17 19:34:24,274 13169 ERROR ? openerp.service.server: Failed to load server-wide module web.
The web module is provided by the addons found in the openerp-web project.
Maybe you forgot to add those addons in your addons_path configuration.
Traceback (most recent call last):
File "/home/aa/odoo/odoo/openerp/service/server.py", line 835, in load_server_wide_modules
openerp.modules.module.load_openerp_module(m)
File "/home/aa/odoo/odoo/openerp/modules/module.py", line 266, in load_openerp_module
import('openerp.addons.' + module_name)
File "/home/aa/odoo/odoo/openerp/modules/module.py", line 71, in load_module
f, path, descr = imp.find_module(module_part, ad_paths)
ImportError: No module named web
2014-05-17 19:34:24,275 13169 WARNING ? openerp.modules.module: module web_kanban: module not found
2014-05-17 19:34:24,275 13169 CRITICAL ? openerp.modules.module: Couldn't load module web_kanban
2014-05-17 19:34:24,275 13169 CRITICAL ? openerp.modules.module: No module named web_kanban
2014-05-17 19:34:24,276 13169 ERROR ? openerp.service.server: Failed to load server-wide module web_kanban.
Traceback (most recent call last):
File "/home/aa/odoo/odoo/openerp/service/server.py", line 835, in load_server_wide_modules
openerp.modules.module.load_openerp_module(m)
File "/home/aa/odoo/odoo/openerp/modules/module.py", line 266, in load_openerp_module
import('openerp.addons.' + module_name)
File "/home/aa/odoo/odoo/openerp/modules/module.py", line 71, in load_module
f, path, descr = imp.find_module(module_part, ad_paths)
ImportError: No module named web_kanban

Configuration – User Access Constraint Mismatch

There are constraints between the Configuration of Sales, Purchase, Warehouse, ... and the Access Rights of a user. But for some reasons this constraints behave very strange and illogical.
For example:
• I have all the Access Rights for the Admin activated
• I go to Configuration, Sales
• I activate "Generate invoices based on the sales order lines" and save.
Now the system deactivates following Access Rights for the Admin:
• Sales Pricelists
• Manage Multiple Units of Measure
• Discount on lines

The same happen when I activate/deactivate other features!
So let me get that straight.
• If I activate features, I expect that hidden Access Right would appear. But what happens is that I lose some of my Access Rights.
• If I deactivate features, I expect that the Access Right belonging to that feature would be inactive or hidden!
The current system behavior is very strange. That confuses customer and potential customer and it makes the customizing process more time consuming!
My system Setting: Version 7.0-20130226-002110 with sample data.

[BUG] Tax Type "None"

Issue Type:

Bug on tax config

ODOO Version:

Trunk

Summary:

WHen tax type "none", then an error occurs when calculating an invocie with this tax.

Steps To Reproduce:

Define a tax with "none", define children on that tax as for example percentage"
Set up an invoce which contains this tax and calculate.

Expected Results:

Would leave out calculation of the parent tax and directly aply chicld taxes.

Actual Results:
File "/opt/odoo/odoo-server/addons/account/account.py", line 2072, in _unit_compute
    r['amount'] = data['amount']
KeyError: 'amount'

Enhancement :: WebClient :: Running Smoothness

Summary

When working int he web client the visual behaviour of the client is quite distracting. This causes fatigue and inefficiency when working with it and most of all impatcs tacitly on the overall impression of the software.

Expectations

Smoth visual running, no stressing visual unrest when comiling a page.

Detail

The main point here is, that when a page compiles, or a user action is registered, some recompiling is done changing the appearance of the display. generally this is very cool (for example when color changes, or additional buttons blend in), but it can get quite disturbing when block sizes reformat and makes the whole page jump arround.

The best example is, if you where about to click on a value, and suddenly it jumped 4 cm to the right.

Overall smotheness could also make a really cool effect (smooth, but fast blending in)

server error opening Configuration > Sales

Traceback (most recent call last):
File "/home/aa/odoo/odoo/openerp/http.py", line 478, in dispatch
result = self._call_function(*_self.params)
File "/home/aa/odoo/odoo/openerp/http.py", line 296, in _call_function
return checked_call(self.db, *args, *_kwargs)
File "/home/aa/odoo/odoo/openerp/service/model.py", line 113, in wrapper
return f(dbname, _args, *_kwargs)
File "/home/aa/odoo/odoo/openerp/http.py", line 293, in checked_call
return self.endpoint(_a, *_kw)
File "/home/aa/odoo/odoo/openerp/http.py", line 659, in call
return self.method(_args, *_kw)
File "/home/aa/odoo/odoo/openerp/http.py", line 345, in response_wrap
response = f(_args, *_kw)
File "/home/aa/odoo/odoo/addons/web/controllers/main.py", line 1046, in call_kw
return self._call_kw(model, method, args, kwargs)
File "/home/aa/odoo/odoo/addons/web/controllers/main.py", line 1038, in _call_kw
return getattr(request.registry.get(model), method)(request.cr, request.uid, _args, *_kwargs)
File "/home/aa/odoo/odoo/openerp/osv/orm.py", line 1886, in fields_view_get
xarch, xfields = View.postprocess_and_fields(cr, uid, self._name, etree.fromstring(result['arch']), view_id, context=ctx)
File "/home/aa/odoo/odoo/openerp/addons/base/ir/ir_ui_view.py", line 746, in postprocess_and_fields
self.raise_view_error(cr, user, message, view_id, context)
File "/home/aa/odoo/odoo/openerp/addons/base/ir/ir_ui_view.py", line 313, in raise_view_error
raise AttributeError(message)
AttributeError: Field group_sale_pricelist does not exist

Error context:
View sale settings
[view_id: 200, xml_id: base_setup.view_sale_config_settings, model: sale.config.settings, parent_id: n/a]

[Feature] :: [Tax Charts] - Simplest time flexibilisation to meet legislations

Issue Type:

Feature Idea

Summary:

When selecting account charts, one can set start and ending period. When selecting tax chart, one can only select one period. This is bad for countries whiche have non-harmonized deadlines for different tax reports.

Steps To Reproduce:

Trying to open a tax statment fo any kind of individualized timespan.

Expected Results:

Odoo has a high level and generic approach. It is expected, that every flexiblitiy would be impe^lemented if the cost of complicating thing is near to zero (as in this case).
Should at least work like account chart. Preferably with a (hidden or camouflaged) single date option

sale_stock: company_id is not saved after changing warehouse

at file
odoo / addons / sale_stock / sale_stock_view.xml
we have:

                    <field name="company_id" position="replace">
                        <field name="company_id" readonly="True"/>
                    </field>
                    <field name="client_order_ref" position="after">
                         <field name="warehouse_id" on_change="onchange_warehouse_id(warehouse_id)" options="{'no_create': True}" groups="stock.group_locations"/>
                    </field>

where

    def onchange_warehouse_id(self, cr, uid, ids, warehouse_id, context=None):
        val = {}
        if warehouse_id:
            warehouse = self.pool.get('stock.warehouse').browse(cr, uid, warehouse_id, context=context)
            if warehouse.company_id:
                val['company_id'] = warehouse.company_id.id
        return {'value': val}

So, after changing warehourse, company is changed.
But becase company_id field is readonly, after clicking "save" only warehourse is saved.

I think readonly="True" on company_id should be removed

Server error installing modules

Traceback (most recent call last):
File "/home/aa/odoo/odoo/openerp/http.py", line 470, in dispatch
result = self._call_function(*_self.params)
File "/home/aa/odoo/odoo/openerp/http.py", line 294, in _call_function
return checked_call(self.db, *args, *_kwargs)
File "/home/aa/odoo/odoo/openerp/service/model.py", line 113, in wrapper
return f(dbname, _args, *_kwargs)
File "/home/aa/odoo/odoo/openerp/http.py", line 291, in checked_call
return self.endpoint(_a, *_kw)
File "/home/aa/odoo/odoo/openerp/http.py", line 652, in call
return self.method(_args, *_kw)
File "/home/aa/odoo/odoo/openerp/http.py", line 337, in response_wrap
response = f(_args, *_kw)
File "/home/aa/odoo/odoo/addons/web/controllers/main.py", line 1355, in run
[action_id], request.context)
File "/home/aa/odoo/odoo/openerp/http.py", line 740, in proxy
result = meth(cr, request.uid, _args, *_kw)
File "/home/aa/odoo/odoo/openerp/addons/base/ir/ir_actions.py", line 992, in run
res = func(cr, uid, action, eval_context=eval_context, context=run_context)
File "/home/aa/odoo/odoo/openerp/addons/base/ir/ir_actions.py", line 821, in run_action_code_multi
eval(action.code.strip(), eval_context, mode="exec", nocopy=True) # nocopy allows to return 'action'
File "/home/aa/odoo/odoo/openerp/tools/safe_eval.py", line 311, in safe_eval
return eval(c, globals_dict, locals_dict)
File "", line 1, in
File "/home/aa/odoo/odoo/openerp/addons/base/module/module.py", line 437, in button_immediate_install
return self._button_immediate_function(cr, uid, ids, self.button_install, context=context)
File "/home/aa/odoo/odoo/openerp/addons/base/module/module.py", line 488, in _button_immediate_function
registry = openerp.modules.registry.RegistryManager.new(cr.dbname, update_module=True)
File "/home/aa/odoo/odoo/openerp/modules/registry.py", line 299, in new
openerp.modules.load_modules(registry._db, force_demo, status, update_module)
File "/home/aa/odoo/odoo/openerp/modules/loading.py", line 343, in load_modules
loaded_modules, update_module)
File "/home/aa/odoo/odoo/openerp/modules/loading.py", line 247, in load_marked_modules
loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)
File "/home/aa/odoo/odoo/openerp/modules/loading.py", line 155, in load_module_graph
init_module_models(cr, package.name, models)
File "/home/aa/odoo/odoo/openerp/modules/module.py", line 241, in init_module_models
obj.init(cr)
File "/home/aa/odoo/odoo/addons/report/models/report_paperformat.py", line 132, in init
company.write({'paperformat_id': paperformat_id})
File "/home/aa/odoo/odoo/openerp/osv/orm.py", line 378, in function_proxy
return attr(self._cr, self._uid, [self._id], _args, *_kwargs)
File "/home/aa/odoo/odoo/openerp/addons/base/res/res_company.py", line 287, in write
return super(res_company, self).write(cr, uid, ids, values, context=context)
File "/home/aa/odoo/odoo/openerp/osv/orm.py", line 4038, in write
self.pool[model_name]._store_set_values(cr, user, todo, fields_to_recompute, context)
File "/home/aa/odoo/odoo/openerp/osv/orm.py", line 4420, in _store_set_values
result = self._columns[f].get(cr, self, ids, f, SUPERUSER_ID, context=context)
File "/home/aa/odoo/odoo/openerp/osv/fields.py", line 1264, in get
result = self._fnct(obj, cr, uid, ids, name, self._arg, context)
File "/home/aa/odoo/odoo/openerp/osv/fields.py", line 1339, in _fnct_read
value = value[field] or False
File "/home/aa/odoo/odoo/openerp/osv/orm.py", line 408, in getitem
field_values = self._table.read(self._cr, self._uid, ids, field_names, context=self._context, load="_classic_write")
File "/home/aa/odoo/odoo/openerp/osv/orm.py", line 3347, in read
result = self._read_flat(cr, user, select, fields, context, load)
File "/home/aa/odoo/odoo/openerp/osv/orm.py", line 3394, in _read_flat
cr.execute(query, [tuple(sub_ids)] + rule_params)
File "/home/aa/odoo/odoo/openerp/sql_db.py", line 156, in wrapper
return f(self, _args, *_kwargs)
File "/home/aa/odoo/odoo/openerp/sql_db.py", line 221, in execute
res = self._obj.execute(query, params)
ValueError: "column res_partner.vat_subjected does not exist
LINE 1: ...l",res_partner."is_company",res_partner."website",res_partne...
^
" while evaluating
u"self.button_immediate_install(cr, uid, context.get('active_ids', []), context=context)"

Database creation fails

Created a new database with the latest version from git, created a new database and it fails with:

2014-05-16 08:53:05,083 20684 ERROR V8 openerp.http: Exception during JSON request handling.
Traceback (most recent call last):
  File "/opt/odoo/server/openerp/http.py", line 470, in dispatch
    result = self._call_function(**self.params)
  File "/opt/odoo/server/openerp/http.py", line 294, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/opt/odoo/server/openerp/service/model.py", line 113, in wrapper
    return f(dbname, *args, **kwargs)
  File "/opt/odoo/server/openerp/http.py", line 291, in checked_call
    return self.endpoint(*a, **kw)
  File "/opt/odoo/server/openerp/http.py", line 652, in __call__
    return self.method(*args, **kw)
  File "/opt/odoo/server/openerp/http.py", line 337, in response_wrap
    response = f(*args, **kw)
  File "/opt/odoo/server/addons/web/controllers/main.py", line 1046, in call_kw
    return self._call_kw(model, method, args, kwargs)
  File "/opt/odoo/server/addons/web/controllers/main.py", line 1038, in _call_kw
    return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
AttributeError: 'NoneType' object has no attribute 'has_share'
2014-05-16 08:53:05,084 20684 INFO V8 werkzeug: 127.0.0.1 - - [16/May/2014 08:53:05] "POST /web/dataset/call_kw/share.wizard/has_share HTTP/1.1" 200 -
2014-05-16 08:53:05,106 20684 INFO V8 werkzeug: 127.0.0.1 - - [16/May/2014 08:53:05] "POST /web/dataset/call_kw/ir.module.module/fields_view_get HTTP/1.1" 200 -
2014-05-16 08:53:05,125 20684 INFO V8 werkzeug: 127.0.0.1 - - [16/May/2014 08:53:05] "POST /web/dataset/call_kw/ir.module.module/fields_view_get HTTP/1.1" 200 -
2014-05-16 08:53:05,194 20684 INFO V8 werkzeug: 127.0.0.1 - - [16/May/2014 08:53:05] "POST /web/dataset/call_kw/ir.filters/get_filters HTTP/1.1" 200 -
2014-05-16 08:53:05,197 20684 ERROR V8 openerp.http: Exception during JSON request handling.
Traceback (most recent call last):
  File "/opt/odoo/server/openerp/http.py", line 470, in dispatch
    result = self._call_function(**self.params)
  File "/opt/odoo/server/openerp/http.py", line 294, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/opt/odoo/server/openerp/service/model.py", line 113, in wrapper
    return f(dbname, *args, **kwargs)
  File "/opt/odoo/server/openerp/http.py", line 291, in checked_call
    return self.endpoint(*a, **kw)
  File "/opt/odoo/server/openerp/http.py", line 652, in __call__
    return self.method(*args, **kw)
  File "/opt/odoo/server/openerp/http.py", line 337, in response_wrap
    response = f(*args, **kw)
  File "/opt/odoo/server/addons/web/controllers/main.py", line 1046, in call_kw
    return self._call_kw(model, method, args, kwargs)
  File "/opt/odoo/server/addons/web/controllers/main.py", line 1038, in _call_kw
    return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
AttributeError: 'NoneType' object has no attribute 'list'

L10n_ma acoount model name

Hi ,
Please can you change account model name 👍
l10n_ma/l10n_ma_tax.xml:741: compta Kazacube

best regards

Package duplication problem with distutils, pip, setup.py

Description

There is a duplication of the installed packages when installing with the setup.py script or with pip. Tested only in virtualenv. This is somewhat related to #81 and #394

Installing Odoo with pip a crucial step for testing OCA modules using travis-ci.org

Actual Behaviour

Setup installs openerp both in environment root and in python site-packages. An entry point script is intalled in the usr/bin of the environment.
The file import_xml.rng is in the environment root but not the site-packages. This causes an error when running the entry point.

Expected Behaviour

Setup installs openerp in site-packages only. An entry point script is intalled in the usr/bin of the environment.
The file import_xml.rng is the site-packages openerp folder. Running the entry point does not lead to an error related to that file.

Replicating

virtualenv2 env
source env/bin/activate
pip install --no-deps https://github.com/odoo/odoo/archive/master.zip
ls -A env/openerp
ls -A env/lib/python2.7/site-packages/openerp

v8: crashing at startup when given --addons-path

No matter what I did this is not being able to lauch fine, always get the same error

Traceback (most recent call last):
  File "werkzeug/serving.py", line 177, in run_wsgi
    execute(self.server.app)
  File "werkzeug/serving.py", line 165, in execute
    application_iter = app(environ, start_response)
  File "openerp/service/server.py", line 273, in app
    return self.app(e, s)
  File "openerp/service/wsgi_server.py", line 215, in application
    return application_unproxied(environ, start_response)
  File "openerp/service/wsgi_server.py", line 201, in application_unproxied
    result = handler(environ, start_response)
  File "openerp/http.py", line 1097, in __call__
    return self.dispatch(environ, start_response)
  File "openerp/http.py", line 1074, in __call__
    return self.app(environ, start_wrapped)
  File "werkzeug/wsgi.py", line 579, in __call__
    return self.app(environ, start_response)
  File "openerp/http.py", line 1226, in dispatch
    ir_http = request.registry['ir.http']
  File "openerp/http.py", line 220, in registry
    return openerp.modules.registry.RegistryManager.get(self.db) if self.db else None
  File "openerp/modules/registry.py", line 269, in get
    update_module)
  File "openerp/modules/registry.py", line 299, in new
    openerp.modules.load_modules(registry._db, force_demo, status, update_module)
  File "openerp/modules/loading.py", line 335, in load_modules
    force, status, report, loaded_modules, update_module)
  File "openerp/modules/loading.py", line 241, in load_marked_modules
    graph.add_modules(cr, module_list, force)
  File "openerp/modules/graph.py", line 99, in add_modules
    info = openerp.modules.module.load_information_from_description_file(module)
  File "openerp/modules/module.py", line 180, in load_information_from_description_file
    terp_file = opj(mod_path, '__openerp__.py')
  File "/usr/local/lib/python2.7/posixpath.py", line 77, in join
    elif path == '' or path.endswith('/'):
AttributeError: 'bool' object has no attribute 'endswith'

[trunk] _track is raising a traceback when it is incorrectly setted

Hello.

If you define _track in an object for example:

_track={
     {'field': 'id.message': lambda xyzw}
}

All is ok.

But if we define something else it raises a difficult error to trace, IMHO the raise should be something more explícit intead an ugly traceback without any validation:

check the type, and propose a WARNING with a clear message.

For example if we define:

_track = {}

Then a traceback like this appear "Just when save the record.":

  File "/home/nhomar/Trabajo/odoo/addons/web/controllers/main.py", line 1038, in _call_kw
    return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
  File "/home/nhomar/Trabajo/odoo/addons/mail/mail_thread.py", line 424, in write
    self.message_track(cr, uid, ids, tracked_fields, initial_values, context=track_ctx)
  File "/home/nhomar/Trabajo/odoo/addons/mail/mail_thread.py", line 524, in message_track
    for field, track_info in self._track.items():
AttributeError: 'set' object has no attribute 'items'

If you think the feature is feasibe, I can make a PR.

Regards.

Website: 500: Internal Server Error while adding a new blog

Version: Version 8.0alpha1
Browser: Chrome 34.0.1847.137

500: Internal Server Error
Error
Error message:

unknown locale u'en_US'

Traceback

Here's the log -

2014-05-19 11:51:47,228 7529 ERROR www openerp.addons.website.models.ir_http: 500 Internal Server Error:

Traceback (most recent call last):
File "/opt/odoo/openerp/addons/base/ir/ir_http.py", line 116, in _dispatch
result = request.dispatch()
File "/opt/odoo/openerp/http.py", line 545, in dispatch
r = self._call_function(*_self.params)
File "/opt/odoo/openerp/http.py", line 296, in _call_function
return checked_call(self.db, *args, *_kwargs)
File "/opt/odoo/openerp/service/model.py", line 113, in wrapper
return f(dbname, _args, *_kwargs)
File "/opt/odoo/openerp/http.py", line 293, in checked_call
return self.endpoint(_a, *_kw)
File "/opt/odoo/openerp/http.py", line 660, in call
return self.method(_args, *_kw)
File "/opt/odoo/openerp/http.py", line 346, in response_wrap
response = f(_args, *_kw)
File "/opt/odoo/addons/website_blog/controllers/main.py", line 222, in blog_post
'nav_list': self.nav_list(),
File "/opt/odoo/addons/website_blog/controllers/main.py", line 54, in nav_list
groupby="create_date", orderby="create_date asc", context=request.context)
File "/opt/odoo/openerp/osv/orm.py", line 2473, in read_group
result = [self._read_group_format_result(d, annotated_groupbys, groupby, groupby_dict, domain, context) for d in data]
File "/opt/odoo/openerp/osv/orm.py", line 2352, in _read_group_format_result
data[k] = babel.dates.format_date(v, format=gb['display_format'], locale=context.get('lang', 'en_US'))
File "/usr/lib/python2.7/dist-packages/babel/dates.py", line 564, in format_date
locale = Locale.parse(locale)
File "/usr/lib/python2.7/dist-packages/babel/core.py", line 313, in parse
raise UnknownLocaleError(input_id)
UnknownLocaleError: unknown locale u'en_US'

Create task in 'Followers only' project as regular user will cause Access Denied

Steps to reproduce error:

  1. Create a new project with 'Followers only' visibility.
  2. Add a regular project user (not manager) as a follower in that project.
  3. Log in with the regular user.
  4. Create new task in the created project, which is not assigned to you.

As a result you will see Access Denied error - (Document type: Task, Operation: read). This is caused by rule 'Project/Task: employees: public, portal, employee or following or assigned' - whenever this rule is not active, you can create task without a problem, but you will also see task you should not see. What is more, when you create a task assigned to you and then change it to other user, it will work just fine.

This error can be reproduced on runbot - I've uploaded a movie on Youtube for your convenience. It is available at https://www.youtube.com/watch?v=2xl224cDyTM

server error opening Sales > Sales Orders

Traceback (most recent call last):
File "/home/aa/odoo/odoo/openerp/http.py", line 478, in dispatch
result = self._call_function(*_self.params)
File "/home/aa/odoo/odoo/openerp/http.py", line 296, in _call_function
return checked_call(self.db, *args, *_kwargs)
File "/home/aa/odoo/odoo/openerp/service/model.py", line 113, in wrapper
return f(dbname, _args, *_kwargs)
File "/home/aa/odoo/odoo/openerp/http.py", line 293, in checked_call
return self.endpoint(_a, *_kw)
File "/home/aa/odoo/odoo/openerp/http.py", line 659, in call
return self.method(_args, *_kw)
File "/home/aa/odoo/odoo/openerp/http.py", line 345, in response_wrap
response = f(_args, *_kw)
File "/home/aa/odoo/odoo/addons/web/controllers/main.py", line 1347, in load
action = request.session.model(action_type).read([action_id], False, ctx)
File "/home/aa/odoo/odoo/openerp/http.py", line 747, in proxy
result = meth(cr, request.uid, _args, *_kw)
File "/home/aa/odoo/odoo/openerp/addons/base/ir/ir_actions.py", line 307, in read
results = super(ir_actions_act_window, self).read(cr, uid, ids, fields=fields, context=context, load=load)
File "/home/aa/odoo/odoo/openerp/osv/orm.py", line 3347, in read
result = self._read_flat(cr, user, select, fields, context, load)
File "/home/aa/odoo/odoo/openerp/osv/orm.py", line 3463, in _read_flat
res2 = self._columns[f].get(cr, self, ids, f, user, context=context, values=res)
File "/home/aa/odoo/odoo/openerp/osv/fields.py", line 1264, in get
result = self._fnct(obj, cr, uid, ids, name, self._arg, context)
File "/home/aa/odoo/odoo/openerp/addons/base/ir/ir_actions.py", line 246, in _search_view
field_get = self.pool[act.res_model].fields_view_get(cr, uid,
File "/home/aa/odoo/odoo/openerp/modules/registry.py", line 106, in getitem
return self.models[model_name]
KeyError: u'sale.order'

server error opening POS

Traceback (most recent call last):
File "/home/aa/odoo/odoo/openerp/http.py", line 478, in dispatch
result = self._call_function(*_self.params)
File "/home/aa/odoo/odoo/openerp/http.py", line 296, in _call_function
return checked_call(self.db, *args, *_kwargs)
File "/home/aa/odoo/odoo/openerp/service/model.py", line 113, in wrapper
return f(dbname, _args, *_kwargs)
File "/home/aa/odoo/odoo/openerp/http.py", line 293, in checked_call
return self.endpoint(_a, *_kw)
File "/home/aa/odoo/odoo/openerp/http.py", line 659, in call
return self.method(_args, *_kw)
File "/home/aa/odoo/odoo/openerp/http.py", line 345, in response_wrap
response = f(_args, *_kw)
File "/home/aa/odoo/odoo/addons/web/controllers/main.py", line 1347, in load
action = request.session.model(action_type).read([action_id], False, ctx)
File "/home/aa/odoo/odoo/openerp/http.py", line 747, in proxy
result = meth(cr, request.uid, _args, *_kw)
File "/home/aa/odoo/odoo/openerp/addons/base/ir/ir_actions.py", line 307, in read
results = super(ir_actions_act_window, self).read(cr, uid, ids, fields=fields, context=context, load=load)
File "/home/aa/odoo/odoo/openerp/osv/orm.py", line 3347, in read
result = self._read_flat(cr, user, select, fields, context, load)
File "/home/aa/odoo/odoo/openerp/osv/orm.py", line 3463, in _read_flat
res2 = self._columns[f].get(cr, self, ids, f, user, context=context, values=res)
File "/home/aa/odoo/odoo/openerp/osv/fields.py", line 1264, in get
result = self._fnct(obj, cr, uid, ids, name, self._arg, context)
File "/home/aa/odoo/odoo/openerp/addons/base/ir/ir_actions.py", line 246, in _search_view
field_get = self.pool[act.res_model].fields_view_get(cr, uid,
File "/home/aa/odoo/odoo/openerp/modules/registry.py", line 106, in getitem
return self.models[model_name]
KeyError: u'pos.session.opening'

[FIX] :: Invoice :: Tax Calculation :: Localdict

Issue Type:

Easy-Fix-Hint

ODOO Version:

Trunk

Environment:

n/a

Summary:

In many urisdictions some tax items refer to the invoice total either for aplicability or for calculation.

Steps To Reproduce:

Try to code python type taxes refering to any sort of invoice items

Code Reference:

https://github.com/odoo/odoo/blame/a756b823727b763310fb7d1a24c594f3d78cffe5/addons/account/account.py#L2002

&

https://github.com/odoo/odoo/blame/a756b823727b763310fb7d1a24c594f3d78cffe5/addons/account/account.py#L2043

Expected Results:

Can code python taxes depending on the base amount as a barrier for a certain tax to apply.

Actual Results:

items of the invoice ar not accessible. Would have to change sourcecode locally. Might be related to the fact, that taxes can be included in the base amount of another tax and therefore would such funcionality be autoreferring.

server error opening Sales

Traceback (most recent call last):
File "/home/aa/odoo/odoo/openerp/http.py", line 478, in dispatch
result = self._call_function(*_self.params)
File "/home/aa/odoo/odoo/openerp/http.py", line 296, in _call_function
return checked_call(self.db, *args, *_kwargs)
File "/home/aa/odoo/odoo/openerp/service/model.py", line 113, in wrapper
return f(dbname, _args, *_kwargs)
File "/home/aa/odoo/odoo/openerp/http.py", line 293, in checked_call
return self.endpoint(_a, *_kw)
File "/home/aa/odoo/odoo/openerp/http.py", line 659, in call
return self.method(_args, *_kw)
File "/home/aa/odoo/odoo/openerp/http.py", line 345, in response_wrap
response = f(_args, *_kw)
File "/home/aa/odoo/odoo/addons/web/controllers/main.py", line 1046, in call_kw
return self._call_kw(model, method, args, kwargs)
File "/home/aa/odoo/odoo/addons/web/controllers/main.py", line 1038, in _call_kw
return getattr(request.registry.get(model), method)(request.cr, request.uid, _args, *_kwargs)
File "/home/aa/odoo/odoo/openerp/addons/base/res/res_partner.py", line 329, in fields_view_get
res = super(res_partner,self).fields_view_get(cr, user, view_id, view_type, context, toolbar=toolbar, submenu=submenu)
File "/home/aa/odoo/odoo/addons/mail/mail_thread.py", line 340, in fields_view_get
res = super(mail_thread, self).fields_view_get(cr, uid, view_id=view_id, view_type=view_type, context=context, toolbar=toolbar, submenu=submenu)
File "/home/aa/odoo/odoo/openerp/osv/orm.py", line 1886, in fields_view_get
xarch, xfields = View.postprocess_and_fields(cr, uid, self._name, etree.fromstring(result['arch']), view_id, context=ctx)
File "/home/aa/odoo/odoo/openerp/addons/base/ir/ir_ui_view.py", line 746, in postprocess_and_fields
self.raise_view_error(cr, user, message, view_id, context)
File "/home/aa/odoo/odoo/openerp/addons/base/ir/ir_ui_view.py", line 313, in raise_view_error
raise AttributeError(message)
AttributeError: Field sale_order_count does not exist

Error context:
View res.partner.kanban
[view_id: 129, xml_id: base.res_partner_kanban_view, model: res.partner, parent_id: n/a]

Missing revision in lp:openobject-server/7.0

Happy to see that Launchpad is still kept up to date. I did notice a glitch in this process: lp:openobject-server/7.0 is still missing git revision c088287 which was included in the 7.0 git branch on the 18th of May.

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.