Merge pull request #50 from vice/master
authorFabien Pinckaers <fp@openerp.com>
Tue, 20 May 2014 07:47:49 +0000 (09:47 +0200)
committerFabien Pinckaers <fp@openerp.com>
Tue, 20 May 2014 07:47:49 +0000 (09:47 +0200)
Default event track is half hour not 30 hours

README.md
addons/account_analytic_analysis/account_analytic_analysis.py
addons/hw_proxy/doc/index.rst
addons/website_blog/doc/blog_blog.rst
addons/website_blog/doc/changelog.rst
oe
openerp/http.py

index 79635bd..7b38960 100644 (file)
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
 About Odoo
 ==========
 
-Odoo is suite of open source Business apps. More info at http://www.odoo.com
+Odoo is a suite of open source Business apps. More info at http://www.odoo.com
 
 Installation
 ============
@@ -44,7 +44,7 @@ in your source.list and type:
 Or download the deb file and type:
 
     $ sudo dpkg -i <openerp-deb-filename>
-    $ sudo apt-get install install -f
+    $ sudo apt-get install -f
 
 RedHat, Fedora, CentOS
 ----------------------
index 6c71f94..c43e978 100644 (file)
@@ -746,8 +746,10 @@ class account_analytic_account(osv.osv):
                     new_date = next_date+relativedelta(days=+interval)
                 elif contract.recurring_rule_type == 'weekly':
                     new_date = next_date+relativedelta(weeks=+interval)
-                else:
+                elif contract.recurring_rule_type == 'monthly':
                     new_date = next_date+relativedelta(months=+interval)
+                else:
+                    new_date = next_date+relativedelta(years=+interval)
                 self.write(cr, uid, [contract.id], {'recurring_next_date': new_date.strftime('%Y-%m-%d')}, context=context)
                 if automatic:
                     cr.commit()
index c1faf25..c60f207 100644 (file)
@@ -5,10 +5,6 @@ PosBox Documentation
 Posbox Setup Guide
 ==================
 
-.. image:: _images/posbox_setup.png
-    :width: 100%
-    :align: center
-
 Prerequisites
 -------------
 
@@ -34,7 +30,7 @@ Step By Step Setup Guide
     :width: 100%
     :align: center
 
-Power the PosBox.
+Power the PosBox
 ~~~~~~~~~~~~~~~~
 
 Plug the PosBox to the 2A Power Adapter, a bright red status led should
@@ -116,10 +112,6 @@ refer to your Router documentation.
 PosBoxless Setup Guide
 ======================
 
-.. image:: _images/posboxless_setup.png
-    :width: 100%
-    :align: center
-
 If you are running your Point of Sale on a debian-based linux
 distribution, you do not need the PosBox as you can run its software
 locally. However the installation process is not foolproof. You'll need
@@ -141,9 +133,7 @@ Step By Step Setup Guide
 Extra dependencies
 ~~~~~~~~~~~~~~~~~~
 
-The driver modules requires the installation of new python modules:
-
-::
+The driver modules requires the installation of new python modules::
 
     $ sudo pip install pyserial
     $ sudo pip install --pre pyusb
@@ -159,24 +149,18 @@ Access Rights
 
 The drivers need raw access to the printer and barcode scanner devices.
 Doing so requires a bit system administration. First we are going to
-create a group that has haccess to usb devices:
-
-::
+create a group that has haccess to usb devices::
 
     $ sudo groupadd usbusers
 
-Then we add the user who will run the OpenERP server to ``usbusers``
-
-::
+Then we add the user who will run the OpenERP server to ``usbusers``::
 
     $ sudo useradd -G usbusers USERNAME
 
 Then we need to create a udev rule that will automatically allow members
 of ``usbusers`` to access raw usb devices. To do so create a file called
 ``99-usbusers.rule`` in the ``/etc/udev/rules.d/`` directory with the
-following content:
-
-::
+following content::
 
     SUBSYSTEM=="usb", GROUP="usbusers", MODE="0660"
     SUBSYSTEMS=="usb", GROUP="usbusers", MODE="0660"
@@ -187,9 +171,7 @@ Start the local OpenERP Installl
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
 We must launch the OpenERP server on the port ``8069`` with the correct
-database settings:
-
-::
+database settings::
 
     $ ./server/openerp-server --addons-path=addons,web/addons --db-filter='^posbox$' \
             --xmlrpc-port=8069 -d posbox
index 8c5f80a..f4c3758 100644 (file)
@@ -3,18 +3,22 @@ _blog_blog:
 blog.blog
 =========
 In ``blog.blog``, added field ``subtitle`` which Indicates the subtitle of blogs.
- - ``subtitle``: fields.char('Blog Subtitle')
+
+- ``subtitle``: fields.char('Blog Subtitle')
 
 mail.message
 ============
 In ``mail.message``, added field ``discussion`` which Indicates the unique identification 
 of paragraph on blog post.
- - ``discussion``: fields.char('Discussion Unique Name')
+
+- ``discussion``: fields.char('Discussion Unique Name')
  
 blog.post
 =========
+
 Fields
 ++++++
- - ``sub_title`` : contains the subtitle of every blog post.
- - ``visits`` : Indicates the number of visits on evry blog post.
- - ``ranking`` : Indicates the ranking on every blog post.
+
+- ``sub_title`` : contains the subtitle of every blog post.
+- ``visits`` : Indicates the number of visits on evry blog post.
+- ``ranking`` : Indicates the ranking on every blog post.
index 42f2fd7..2eac118 100644 (file)
@@ -4,32 +4,29 @@ Changelog
 =========
 
 `trunk (saas-3)`
-----------------
-
- - created ``website_blog`` menu, build on defunct document_page module.
- - added new feature ``Inline Discussion`` , that will allow a user to comment
-   on every paragraph on blog post
- - added new feature ``Select to Tweet``, that will alllow a user tweet a selected
-   text from blog to post , directly on twitter.
-
+++++++++++++++++
 
+- created ``website_blog`` menu, build on defunct document_page module.
+- added new feature ``Inline Discussion`` , that will allow a user to comment
+  on every paragraph on blog post
+- added new feature ``Select to Tweet``, that will alllow a user tweet a
+  selected text from blog to post , directly on twitter.
 
 WebsiteBlog(controller)
 =======================
+
 Methods
 +++++++
- - ``blog`` : remove routing related to date.
- - ``blog_post`` : updated with , suggestion of next post to the user based on
-   cookie and number of views.
- - ``discussion`` : added method , contains a detail of discussion on every paragraph,
-    if count is true it only return len of ids else return full detail.
-        def discussion(self, post_id=0, discussion=None, count=False, **post)
- - ``post_discussion`` : added methodt, that allow to post discussion on any paragraph.
-        def post_discussion(self, blog_post_id=0, **post)
- - ``change_bg`` : added method allow a user to change background image on blog 
-   post from front-end.
-        def change_bg(self, post_id=0, image=None, **post)
- - ``get_user`` : added method , that will return True if user is public else False.
-        def get_user(self, **post):
-            return [False if request.session.uid else True]
+
+- ``blog`` : remove routing related to date.
+- ``blog_post`` : updated with , suggestion of next post to the user based on
+  cookie and number of views.
+- ``discussion`` : added method , contains a detail of discussion on every
+  paragraph, if count is true it only return len of ids else return full
+  detail.
+- ``post_discussion`` : added methodt, that allow to post discussion on any
+  paragraph.
+- ``change_bg`` : added method allow a user to change background image on blog
+  post from front-end.
+- ``get_user`` : added method , that will return True if user is public else False.
 
diff --git a/oe b/oe
index 2da32cb..03c037b 100755 (executable)
--- a/oe
+++ b/oe
@@ -2,7 +2,7 @@
 
 if __name__ == '__main__':
     import sys
-    if sys.argv[1] == 'run-tests':
+    if len(sys.argv) > 1 and sys.argv[1] == 'run-tests':
         sys.exit(0)
     import openerpcommand.main
     openerpcommand.main.run()
index dcd2000..0627c76 100644 (file)
@@ -318,16 +318,15 @@ def route(route=None, **kw):
     :param type: The type of request, can be ``'http'`` or ``'json'``.
     :param auth: The type of authentication method, can on of the following:
 
-        * ``user``: The user must be authenticated and the current request
-          will perform using the rights of the user.
-        * ``admin``: The user may not be authenticated and the current request
-          will perform using the admin user.
-        * ``none``: The method is always active, even if there is no
-          database. Mainly used by the framework and authentication
-          modules. There request code will not have any facilities to access
-          the database nor have any configuration indicating the current
-          database nor the current user.
-
+                 * ``user``: The user must be authenticated and the current request
+                   will perform using the rights of the user.
+                 * ``admin``: The user may not be authenticated and the current request
+                   will perform using the admin user.
+                 * ``none``: The method is always active, even if there is no
+                   database. Mainly used by the framework and authentication
+                   modules. There request code will not have any facilities to access
+                   the database nor have any configuration indicating the current
+                   database nor the current user.
     :param methods: A sequence of http methods this route applies to. If not
                     specified, all methods are allowed.
     :param cors: The Access-Control-Allow-Origin cors directive value.