This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# BASED ON - http://www.schenkels.nl/2014/12/reverse-proxy-with-odoo-8-nginx-ubuntu-14-04-lts/ | |
upstream odoo8example { | |
server 127.0.0.1:8069 weight=1 fail_timeout=3000; | |
} | |
upstream odoo8example-im { | |
server 127.0.0.1:8072 weight=1 fail_timeout=0; | |
} | |
server { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[options] | |
; This is the password that allows database operations: | |
admin_passwd = mysupersecretpasswordmysupersecretpasswordmysupersecretpasswordmysupersecretpasswordmysupersecretpassword | |
db_host = False | |
db_port = False | |
db_user = odoo | |
db_password = False | |
addons_path = /usr/lib/python2.7/dist-packages/openerp/addons | |
# logfile = /var/log/odoo/odoo-server.log | |
addons_path=/odoo/odoo-server/addons,/odoo/custom/addons,/odoo/custom/JayVora-SerpentCS/9.0/MassEditing,/odoo/custom/biztech,/odoo/custom/oca/9.0/web,/odoo/custom/yenthe666/Aeroo,/odoo/custom/oca/9.0/server-tools,/odoo/custom/Elico-Corp/9.0/l10n-china,/odoo/custom/Elico-Corp/9.0/alipay/l10n-china,/odoo/custom/lukebranch,/odoo/custom/oca/9.0/management-system,/odoo/custom/oca/9.0/hr,/odoo/custom/oca/9.0/knowledge,/odoo/custom/oca/9.0/contract,/odoo/custom/oca/9.0/website,/odoo/custom/JayVora-SerpentCS/9.0/MassEditing,/odoo/custom/oca/9.0/product-attribute,/odoo/custom/OmniaSolutions,/odoo/custom/oca/9.0_unmerged/report-print-send,/odoo/custom/oca/9.0_unmerged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# BASED ON - http://www.schenkels.nl/2014/12/reverse-proxy-with-odoo-8-nginx-ubuntu-14-04-lts/ | |
upstream odoo8swi { | |
server localhost:8069 weight=1 fail_timeout=3000; | |
} | |
upstream odoo8swi-im { | |
server localhost:8072 weight=1 fail_timeout=0; | |
} | |
server { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0a HBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIy MjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/wAARCAQABAADASIA AhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQA AAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3 ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWm p6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEA AwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSEx BhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElK U1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3 uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD3+iii gAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKA CiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAK KKKACiiigAooooAKKKKACii |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Traceback (most recent call last): | |
File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 530, in _handle_exception | |
return super(JsonRequest, self)._handle_exception(exception) | |
File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 567, in dispatch | |
result = self._call_function(**self.params) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Traceback (most recent call last): | |
File "/opt/odoo/odoo-server/openerp/http.py", line 530, in _handle_exception | |
return super(JsonRequest, self)._handle_exception(exception) | |
File "/opt/odoo/odoo-server/openerp/http.py", line 567, in dispatch | |
result = self._call_function(**self.params) | |
File "/opt/odoo/odoo-server/openerp/http.py", line 303, in _call_function | |
return checked_call(self.db, *args, **kwargs) | |
File "/opt/odoo/odoo-server/openerp/service/model.py", line 113, in wrapper | |
return f(dbname, *args, **kwargs) | |
File "/opt/odoo/odoo-server/openerp/http.py", line 300, in checked_call |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Traceback (most recent call last): | |
File "/opt/odoo/odoo-server/openerp/http.py", line 530, in _handle_exception | |
return super(JsonRequest, self)._handle_exception(exception) | |
File "/opt/odoo/odoo-server/openerp/http.py", line 567, in dispatch | |
result = self._call_function(**self.params) | |
File "/opt/odoo/odoo-server/openerp/http.py", line 303, in _call_function | |
return checked_call(self.db, *args, **kwargs) | |
File "/opt/odoo/odoo-server/openerp/service/model.py", line 113, in wrapper | |
return f(dbname, *args, **kwargs) | |
File "/opt/odoo/odoo-server/openerp/http.py", line 300, in checked_call |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Traceback (most recent call last): | |
File "/opt/odoo/odoo-server/openerp/http.py", line 530, in _handle_exception | |
return super(JsonRequest, self)._handle_exception(exception) | |
File "/opt/odoo/odoo-server/openerp/http.py", line 567, in dispatch | |
result = self._call_function(**self.params) | |
File "/opt/odoo/odoo-server/openerp/http.py", line 303, in _call_function | |
return checked_call(self.db, *args, **kwargs) | |
File "/opt/odoo/odoo-server/openerp/service/model.py", line 113, in wrapper | |
return f(dbname, *args, **kwargs) | |
File "/opt/odoo/odoo-server/openerp/http.py", line 300, in checked_call |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Here's a link to my answer here: | |
https://github.com/OdooCommunityExamples/B2B_Add_To_Cart_Example | |
I've put together an incredibly basic module with only the functionality needed for what you have asked in this question. | |
I have added the view change (that snippet) into an xml file in a subdirectory called 'views' to organise it properly. Fundamentally you just need an __init__.py file, an __openerp__.py file with your dependencies (in this case website_sale, etc.), and your view definition (in this case /views/B2B_Add_To_Cart.xml). | |
Inside this XML file you just need to place your <template> tags nested inside the opening and closing <openerp> and <data> tags. Remember that you are working with XHTML/XML, and therefore opening and closing tags must be properly nested or you will run into problems. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Odoo Server Error | |
Traceback (most recent call last): | |
File "/opt/odoo/odoo-server/openerp/http.py", line 524, in _handle_exception | |
return super(JsonRequest, self)._handle_exception(exception) | |
File "/opt/odoo/odoo-server/openerp/http.py", line 545, in dispatch | |
result = self._call_function(**self.params) | |
File "/opt/odoo/odoo-server/openerp/http.py", line 301, in _call_function | |
return checked_call(self.db, *args, **kwargs) | |
File "/opt/odoo/odoo-server/openerp/service/model.py", line 113, in wrapper | |
return f(dbname, *args, **kwargs) |