odoo

Cannot access to Odoo External API using PHP 7 XML-RPC - Access Denied, Fatal error Uncaught Ripcord_TransportException

那年仲夏 提交于 2021-02-11 12:06:19
问题 I want to use Odoo's External API on my website, using PHP 7. Like it is said in the Odoo's documentation, I've placed the Ripcord library in my httpdocs. I have also activated the XML RPC extension on my server, OpenSSL was already activated, and the website is even secured (there's the lock icon in the address bar). I want to test that with Odoo Demo Trial before we buy licenses. So in my PHP code, I have put the same username/password as the one I used to connect to my Odoo demo account. 1

Cannot access to Odoo External API using PHP 7 XML-RPC - Access Denied, Fatal error Uncaught Ripcord_TransportException

纵饮孤独 提交于 2021-02-11 12:04:53
问题 I want to use Odoo's External API on my website, using PHP 7. Like it is said in the Odoo's documentation, I've placed the Ripcord library in my httpdocs. I have also activated the XML RPC extension on my server, OpenSSL was already activated, and the website is even secured (there's the lock icon in the address bar). I want to test that with Odoo Demo Trial before we buy licenses. So in my PHP code, I have put the same username/password as the one I used to connect to my Odoo demo account. 1

create complicated domain for my attrs attribute

[亡魂溺海] 提交于 2021-02-10 16:43:47
问题 I want to build below logic for my attrs . Can some help me here ? A OR B OR ( C OR ( (D AND E) OR (F AND G AND H) ) ) I tried with below logic ['|','|', (A), (B),'|'(C), '|','&', (D), (E),'&', (F),'&' (G),(H)] 回答1: It can be quite tricky to form such domains. In those cases you can use odoo.osv.expression helpers, which take a list of domains ( not a list of leafs). Example: >>> from odoo.osv.expression import AND, OR >>> a,b,c,d,e,f,g,h = ([("field_" + x, "=", "value_" + x)] for x in

create complicated domain for my attrs attribute

淺唱寂寞╮ 提交于 2021-02-10 16:40:09
问题 I want to build below logic for my attrs . Can some help me here ? A OR B OR ( C OR ( (D AND E) OR (F AND G AND H) ) ) I tried with below logic ['|','|', (A), (B),'|'(C), '|','&', (D), (E),'&', (F),'&' (G),(H)] 回答1: It can be quite tricky to form such domains. In those cases you can use odoo.osv.expression helpers, which take a list of domains ( not a list of leafs). Example: >>> from odoo.osv.expression import AND, OR >>> a,b,c,d,e,f,g,h = ([("field_" + x, "=", "value_" + x)] for x in

How to add watermarks in all pages of Odoo Reports?

大憨熊 提交于 2021-02-10 09:37:38
问题 Using below code It is just view on the first page. I want to show watermark on all pages. <div class="watermark_report"> <img t-att-src="'data:image/png;base64,'+ doc.company_id.report_header_logo"/> </div> 回答1: You already have the answer here: Add this code for watermark in header of external layout. Its external id is report.external_layout_header : <style> .watermark { position: absolute; opacity: 0.25; z-index: 1000; transform: rotate(300deg); -webkit-transform: rotate(300deg); width:

How to add watermarks in all pages of Odoo Reports?

六眼飞鱼酱① 提交于 2021-02-10 09:36:56
问题 Using below code It is just view on the first page. I want to show watermark on all pages. <div class="watermark_report"> <img t-att-src="'data:image/png;base64,'+ doc.company_id.report_header_logo"/> </div> 回答1: You already have the answer here: Add this code for watermark in header of external layout. Its external id is report.external_layout_header : <style> .watermark { position: absolute; opacity: 0.25; z-index: 1000; transform: rotate(300deg); -webkit-transform: rotate(300deg); width:

How to add watermarks in all pages of Odoo Reports?

青春壹個敷衍的年華 提交于 2021-02-10 09:35:29
问题 Using below code It is just view on the first page. I want to show watermark on all pages. <div class="watermark_report"> <img t-att-src="'data:image/png;base64,'+ doc.company_id.report_header_logo"/> </div> 回答1: You already have the answer here: Add this code for watermark in header of external layout. Its external id is report.external_layout_header : <style> .watermark { position: absolute; opacity: 0.25; z-index: 1000; transform: rotate(300deg); -webkit-transform: rotate(300deg); width:

Create another action menuitem in Odoo

无人久伴 提交于 2021-02-08 08:45:43
问题 I'm trying to extend the funcionallity of the actions defined in a custom module view adding a new menuitem for it. I'm not sure how is defined the code for doing it. The model used is: education.group The module where is defined is: education. <record id="education_group_mailing_action" model="ir.actions.server"> <field name="name">Generate group lists</field> <field name="type">ir.actions.server</field> <field name="model_id" ref="model_education_group"/> <field name="binding_model_id" ref=

How to develop (run and debug) modules in Odoo v11 on Visual Studio Code in Ubuntu?

99封情书 提交于 2021-02-06 13:53:24
问题 Is it possible to run and debug Odoo on Visual Studio Code? If yes please share me the configuration. Visual Studio Code is a source code editor developed by Microsoft for Windows, Linux and macOS. It includes support for debugging, embedded Git control, syntax highlighting, intelligent code completion, snippets, and code refactoring. It is free and open-source, although the official download is under a proprietary license. 回答1: I know I'm a bit late but I have managed to work with Odoo 11.

How to develop (run and debug) modules in Odoo v11 on Visual Studio Code in Ubuntu?

大憨熊 提交于 2021-02-06 13:49:16
问题 Is it possible to run and debug Odoo on Visual Studio Code? If yes please share me the configuration. Visual Studio Code is a source code editor developed by Microsoft for Windows, Linux and macOS. It includes support for debugging, embedded Git control, syntax highlighting, intelligent code completion, snippets, and code refactoring. It is free and open-source, although the official download is under a proprietary license. 回答1: I know I'm a bit late but I have managed to work with Odoo 11.