Code Monkey home page Code Monkey logo

odoo-wp-plugin's Introduction


About Me

Mid-level backend focused developer based in Kent.

  • πŸ‘¨β€πŸŽ“ First class degree in computing from CCCU.
  • πŸ§‘β€πŸ’Ό 3 years commercial experience as a Python developer.
  • πŸ–₯️ Experience with maintaining Linux servers.
  • πŸ”Œ Currently supporting WordPress integration to Odoo.

Certifications

  • ☁️ AWS Cloud Practitioner

Languages and Contribution

GitHub Streak

Top Langs

odoo-wp-plugin's People

Contributors

jack-dane avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

odoo-wp-plugin's Issues

Add to WordPress plugin store

As a user,

I want to download the plugin straight from the WordPress store,

So that I don't have to download and upload from GitHub.

Delete button not present

Describe the bug
Clicking Edit -> Close on any of the tables makes the delete button no reappear.

Expected behaviour
Delete button to be present.

Support Many2One

Is your feature request related to a problem? Please describe.
Supporting input into a Many2One field within the form mappings with a selection rather than an integer.

Describe the solution you'd like
A new field type that will look up the model record based on a string matching a field on that model.

Ability to concatenate several fields

Is your feature request related to a problem? Please describe.
It is not possible to concatenate two or more Contact Form 7 fields.

Describe the solution you'd like
Be able to concatenate two or more form 7 contact fields in the mapping form.

Additional context
image

The plugin no longer works

Describe the bug
I no longer receive leads on odoo and I have no errors.

Platform versions:

-Odoo Version: Odoo saas~16.3+e (Edition Enterprise)
Odoo Platform Odoo online
WP Version: 6.2.2
PHP Version: 8.2
Contact Form 7 Version: 5.7.7
Contact 7 to Odoo connector : 0.0.2

Using composer is a pain in a WordPress plugin

Using Composer in a WordPress plugin for a non-technical user is not ideal.

Is there a better way to install the xml-rpc dependency needed for the HTTP request without opening Odoo to HTTP requests.

(This is speculation - I assume that not everyone has someone managing their WP site)

Use consistent table display

As a developer,

I would like to have a display table that isn't maintained by the plugin,

Because it is difficult to maintain for all browsers + operating systems.

  • It should provide a more stable plugin across multiple browsers + operating systems.
  • I believe the custom JS is causing issues in this ticket #17
  • I have seen a common table display being used across plugins, but I couldn't see any documentation on how to use it. Eg:

Capture

Package management

Is your feature request related to a problem? Please describe.
Installing all packages to deploy on WordPress isn't necessary.

Describe the solution you'd like
Splitting test packages and production packages into two different installations.

Support One2Many and Many2Many

As a User,

I want to be able to insert existing records into One2Many or Many2Many fields,

so can add tags (etc) to records.

error_code :1

Describe the bug
A clear and concise description of what the bug is.
Hi Jack, I am experiencing the following problem.
After testing the plugin with the odoo test database. When trying to connect with the production database I got this error {"success":false,"error_string":"Database name '' does not exist in Odoo instance","error_code":1}

Expected behavior
A clear and concise description of what you expected to happen.
Successful connection

Platform versions:

  • Odoo Version: Odoo saas~16.3+e
  • Odoo Platform : Odoo.sh
  • WP Version: 6.4.1
  • PHP Version: 8.2

Support gravity forms

As a user,

I want to have gravity form submissions also link to Odoo,

So that I have a wider choice of forms to use.

Improve error logging

Is your feature request related to a problem? Please describe.
When required fields are not entered into the form mappings there is no way to tell what went wrong.

Describe the solution you'd like
An indication to the user that something went wrong when sending the request to Odoo.

I cannot validate the creation of a form

The connection to Odoo works perfectly but when I want to create my form nothing happens when I click on the submit button.
Capture d’écran 2023-10-01 aΜ€ 12 06 46

Platform versions:

  • Odoo Version: Odoo 16.0+e (Edition Enterprise)
  • Odoo Platform [eg. Odoo.sh, Odoo online, Odoo community]: Online
  • WP Version: 6.3.1
  • PHP Version: 7.4

Does not take into account the form 7 contact selection fields

Describe the bug
In the mapping of the form its does not take into account the form 7 contact selection fields
image
image
image

Expected behavior
That it recovers the content of the selection fields, but also of all the fields that can be put with contact form 7 (check box...etc).

Platform versions:

  • Odoo Version: 16.2
  • Odoo Platform Odoo online
  • WP Version: 6.2.2
  • PHP Version: 8.2
  • Contact Form 7 Version: 5.7.7

Jenkins Issue - Cannot reproduce locally

[Thu Dec 29 18:15:35.897194 2022] [php:error] [pid 69] [client 172.18.0.1:33152] PHP Fatal error:  Uncaught TypeError: flock(): supplied resource is not a valid stream resource in /var/www/html/wp-content/plugins/odoo_conn/encryption.php:36\nStack trace:\n#0 /var/www/html/wp-content/plugins/odoo_conn/encryption.php(36): flock(Resource id #25, 3)\n#1 /var/www/html/wp-content/plugins/odoo_conn/encryption.php(101): odoo_conn\\encryption\\OdooConnEncryptionFileHandler->write_to_file('\\xA4{d7\\xBF\\xFE\\x85\\xFC\\xE7\\x047LfW\\x95...')\n#2 /var/www/html/wp-content/plugins/odoo_conn/encryption.php(69): odoo_conn\\encryption\\OdooConnEncryptionHandler->get_encryption_key()\n#3 /var/www/html/wp-content/plugins/odoo_conn/admin/api/endpoints/odoo_connections.php(54): odoo_conn\\encryption\\OdooConnEncryptionHandler->encrypt('test_api_key')\n#4 /var/www/html/wp-content/plugins/odoo_conn/admin/api/schema.php(44): odoo_conn\\admin\\api\\endpoints\\OdooConnPostOdooConnection->parse_data(Object(WP_REST_Request))\n#5 /var/www/html/wp-content/plugins/odoo_conn/admin/api/endpoints/odoo_connections.php(172): odoo_conn\\admin\\api\\endpoints\\OdooConnPostBaseSchema->request(Object(WP_REST_Request))\n#6 /var/www/html/wp-includes/rest-api/class-wp-rest-server.php(1171): odoo_conn\\admin\\api\\endpoints\\odoo_conn_create_odoo_connection(Object(WP_REST_Request))\n#7 /var/www/html/wp-includes/rest-api/class-wp-rest-server.php(1018): WP_REST_Server->respond_to_request(Object(WP_REST_Request), '/odoo_conn/v1/c...', Array, NULL)\n#8 /var/www/html/wp-includes/rest-api/class-wp-rest-server.php(442): WP_REST_Server->dispatch(Object(WP_REST_Request))\n#9 /var/www/html/wp-includes/rest-api.php(410): WP_REST_Server->serve_request('/odoo_conn/v1/c...')\n#10 /var/www/html/wp-includes/class-wp-hook.php(308): rest_api_loaded(Object(WP))\n#11 /var/www/html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array)\n#12 /var/www/html/wp-includes/plugin.php(565): WP_Hook->do_action(Array)\n#13 /var/www/html/wp-includes/class-wp.php(399): do_action_ref_array('parse_request', Array)\n#14 /var/www/html/wp-includes/class-wp.php(780): WP->parse_request('')\n#15 /var/www/html/wp-includes/functions.php(1332): WP->main('')\n#16 /var/www/html/wp-blog-header.php(16): wp()\n#17 /var/www/html/index.php(17): require('/var/www/html/w...')\n#18 {main}\n  thrown in /var/www/html/wp-content/plugins/odoo_conn/encryption.php on line 36, referer: http://localhost:8000/wp-admin/admin.php?page=odoo-connection

Only happens on the first time a connection is created. After this fail, a connection can be created.

Prospects are not sent to CRM

The information filled in the contact form 7 form does not arrive in odoo. Unlike your example in the video, I use the crm.lead model to automatically create pipelines. And no error is returned when I do the tests.

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.