Skip to content

Commit

Permalink
Fix ci and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
florian-dacosta committed Jul 19, 2024
1 parent 1ff768a commit 82984f1
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ jobs:
strategy:
fail-fast: false
matrix:
server_version: ["14.0"]
client_version: ["16.0"]
server_version: ["16.0"]
client_version: ["16.0", "14.0", "12.0", "10.0", "8.0"]
env:
SERVER_VERSION: ${{ matrix.server_version }}
CLIENT_VERSION: ${{ matrix.client_version }}
Expand Down
2 changes: 1 addition & 1 deletion project_api/data/res_users.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<field name="company_id" ref="base.main_company" />
<field
name="groups_id"
eval="[Command.set([ref('project_api.group_support_rest_api')])]"
eval="[Command.set([ref('project_api.group_support_rest_api'), ref('project.group_project_manager')])]"
/>
</record>

Expand Down
7 changes: 6 additions & 1 deletion project_api/demo/partner_demo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<record id="project_1_auth_api_key" model="auth.api.key">
<field name="name">Adaptoo API KEY</field>
<field name="key">12345</field>
<field name="user_id" ref="base.user_demo" />
<field name="user_id" ref="project_api.user_support" />
</record>

<record id="partner_customer_help_desk" model="res.partner">
Expand All @@ -15,4 +15,9 @@
<field name="country_id" ref="base.fr" />
<field name="project_auth_api_key_id" ref="project_1_auth_api_key" />
</record>

<function model="fastapi.endpoint" name="action_sync_registry">
<value eval="[ref('project_api.fastapi_endpoint_support')]"/>
</function>

</odoo>
5 changes: 5 additions & 0 deletions project_api/demo/project_demo.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">

<!-- for test compatibility with all versions... -->
<record id="project.project_stage_3" model="project.stage">
<field name="name">Cancelled</field>
</record>

<record id="project_project_1" model="project.project">
<field name="partner_id" ref="partner_customer_help_desk" />
<field name="date_start" eval="time.strftime('%Y-%m-01 10:00:00')" />
Expand Down
2 changes: 2 additions & 0 deletions test-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
odoo-addon-project_time_in_day @ git+https://github.com/akretion/[email protected]#subdirectory=setup/project_time_in_day
odoo-addon-project_estimate_step @ git+https://github.com/akretion/[email protected]#subdirectory=setup/project_estimate_step
3 changes: 2 additions & 1 deletion tools/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ services:
PGDATABASE: dbserver
DEMO: "True"
WORKERS: 0
PYTHON_VERSION: "3.10"
SERVER_WIDE_MODULES: web
ADDITIONAL_ODOO_RC: |-
encryption_key_dev=-Zlvw8hr_MHSkS8PLhDpQjtqYDZT-6npSgIeOGA8FUE=
Expand All @@ -21,7 +22,7 @@ services:
dockerfile: tools/Dockerfile
args:
VERSION: $SERVER_VERSION
PYTHON_VERSION: 3.6
PYTHON_VERSION: "3.10"
MODULE: project_api
LOCAL_UID: $LOCAL_UID
depends_on:
Expand Down

0 comments on commit 82984f1

Please sign in to comment.