vertelab / odoo-af

2 stars 5 forks source link

[IMP] AFC-1406b api_odoo_xmlrpc #468

Closed FredrikArvas closed 3 years ago

FredrikArvas commented 3 years ago

Userstory: 1 Add a config-description in the /static/index.html-file image image

Please explain how I filter out: res.partner=1 (the main company) res.user=1 (the admin) hr.employee=1 (the admin) from beeing syncronized between databases

2 Add a "Hello world"-test-command to check if the connection between the two servers is up image

Module name: (added by Nils or Fredrik) https://github.com/vertelab/odoo-api/tree/Dev-12.0-DAFA-Sprint-02/api_odoo_xmlrpc

Development Branch name: Dev-12.0-DAFA-Sprint-02-AFC-1406b-api_odoo-xmlrpc

Target Branch name: https://github.com/vertelab/odoo-api/tree/Dev-12.0-DAFA-Sprint-02/api_odoo_xmlrpc

Test-steps: Install the module api_odoo_xmlrpc Login with admin/admin Click settings -> Global settings -> Sycronized items

Test-data:

Description to the manifest: This update adds description and limits the sync of system-unique-records (like base.company and base.admin)

Estimate: (@developers: Add your times here, not in comments please) Estimated Hours: Estimated Date: Actual Hours: 4 Hours and 20 mins

rupareliyahemangi145 commented 3 years ago

Hello @FredrikArvas and @Radhika435

I've create PR https://github.com/vertelab/odoo-api/pull/9 to test connection.

Here is video link: https://www.loom.com/share/bb53cc23b1494547a9dc814d0b827c28

Please check it and let me know if anything.

Thanks.

Regards, Hemangi.

FredrikArvas commented 3 years ago

Hi @rupareliyahemangi145 did you include these items?

Please explain how I filter out:

rupareliyahemangi145 commented 3 years ago

Hello @FredrikArvas

We can't add demo data as server is required in that. Let me create index file. I will explain this in index file.

FredrikArvas commented 3 years ago

Thanks! The reason for the post is that these data are always created in each database (hmm, not the hr.employee). I think I want a python-code exclusion of these records. But please suggest a solution.

rupareliyahemangi145 commented 3 years ago

Yes these data are always in each database.

You mean you don't want to sync this data?

You need to add domain in Synchronized Objects(Setting >> General Setting >> Configuration Synchronization >> Object to be Synchronized).

Domain is technical but let me explain how can add domain. Otherwise how need to configure servers and objects I already explained in videos and to Radhika.

Value(Data) in domain field must be in list([]).

For e.g.

  1. If you don't want to sync employee record which has id(Technical field of Employee) 1. Then need to add data like, [('id', '!=', 1)]. [(, <operator(=, !=, in, ilike)>, )]

  2. Suppose you want to sync only Job seeker(res.partner). So you have added one flag job_seeker inside res.partner. Need to use that field in domain. [('job_seeker', '=', True)]

Please check it and let me know if need to prepare example with screenshot in index file.

Thanks.

Regards, Hemangi.