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
============
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
----------------------
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()
Posbox Setup Guide
==================
-.. image:: _images/posbox_setup.png
- :width: 100%
- :align: center
-
Prerequisites
-------------
:width: 100%
:align: center
-Power the PosBox.
+Power the PosBox
~~~~~~~~~~~~~~~~
Plug the PosBox to the 2A Power Adapter, a bright red status led should
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
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
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"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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
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.
=========
`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.
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()
: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.