Skip to content

Commit ae4d09d

Browse files
committed
imp: support odoo 19.0
1 parent d6a828a commit ae4d09d

32 files changed

+126
-60
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
strategy:
5757
matrix:
5858
# Use only lower and active versions
59-
instance: ['11.0', '16.0', '17.0', '18.0']
59+
instance: ['11.0', '17.0', '18.0', '19.0']
6060
browser: [chrome]
6161
fail-fast: false
6262
runs-on: ubuntu-latest

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
# Changelog
22

3-
**11.9.3**
3+
**11.10.0**
44

55
```
6+
ADD: Support Odoo 19.0
7+
68
IMP: Minor code refactor
79
IMP: Reduce icons size
10+
11+
FIX: Command 'json': Don't require 'data' parameter
812
```
913

1014
**11.9.2**

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
![Mozilla Add-on](https://img.shields.io/amo/v/odoo-terminal?style=for-the-badge)
2-
![Mozilla Add-on](https://img.shields.io/amo/users/odoo-terminal?style=for-the-badge)    ![Chrome Add-on](https://img.shields.io/chrome-web-store/v/fdidojpjkbpfplcdmeaaehnjfkgpbhad?style=for-the-badge)
3-
![Chrome Add-on](https://img.shields.io/chrome-web-store/users/fdidojpjkbpfplcdmeaaehnjfkgpbhad?style=for-the-badge)    ![Edge Add-on](https://img.shields.io/badge/dynamic/json?style=for-the-badge&label=edge%20add-on&prefix=v&query=%24.version&url=https%3A%2F%2Fmicrosoftedge.microsoft.com%2Faddons%2Fgetproductdetailsbycrxid%2Ffhndkkdikhceeojdacifnlmaeoklbogg)
2+
![Mozilla Add-on](https://img.shields.io/amo/users/odoo-terminal?style=for-the-badge)   
3+
![Chrome Add-on](https://img.shields.io/chrome-web-store/v/fdidojpjkbpfplcdmeaaehnjfkgpbhad?style=for-the-badge)
4+
![Chrome Add-on](https://img.shields.io/chrome-web-store/users/fdidojpjkbpfplcdmeaaehnjfkgpbhad?style=for-the-badge)
5+
  
6+
![Edge Add-on](https://img.shields.io/badge/dynamic/json?style=for-the-badge&label=edge%20add-on&prefix=v&query=%24.version&url=https%3A%2F%2Fmicrosoftedge.microsoft.com%2Faddons%2Fgetproductdetailsbycrxid%2Ffhndkkdikhceeojdacifnlmaeoklbogg)
47
![](https://img.shields.io/badge/dynamic/json?style=for-the-badge&label=users&query=%24.activeInstallCount&url=https%3A%2F%2Fmicrosoftedge.microsoft.com%2Faddons%2Fgetproductdetailsbycrxid%2Ffhndkkdikhceeojdacifnlmaeoklbogg)
58

69
<h1 align="center">
@@ -18,7 +21,7 @@ The BFG10k for Odoo developers
1821
All the power of Odoo json-rpc in a really easy way!
1922
</p>
2023

21-
This web extension adds a terminal-like to control Odoo (11 to 18). All implemented commands use the tools provided by
24+
This web extension adds a terminal-like to control Odoo (11 to 19). All implemented commands use the tools provided by
2225
the Odoo framework. An unwavering policy when developing this extension is to not modify or alter in any way the Odoo
2326
classes. This sometimes results in certain commands having reduced/increased capabilities depending on the Odoo version.
2427

@@ -27,8 +30,6 @@ extension is ~24ms.
2730

2831
**Downloads**
2932

30-
31-
3233
[<img src="https://www.mozilla.org/media/protocol/img/logos/firefox/browser/logo-lg.3d9087ac44e8.png" width="64">](https://addons.mozilla.org/es/firefox/addon/odoo-terminal/)
3334
[<img src="https://www.google.com/chrome/static/images/chrome-logo.svg" width="64">](https://chrome.google.com/webstore/detail/odoo-terminal/fdidojpjkbpfplcdmeaaehnjfkgpbhad)
3435
[<img src="https://edgestatic.azureedge.net/shared/cms/lrs1c69a1j/section-images/29bfeef37eef4ca3bcf962274c1c7766.png" width="64">](https://microsoftedge.microsoft.com/addons/detail/odooterminal/fhndkkdikhceeojdacifnlmaeoklbogg)

_locales/en/translation.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@
3333
"args": {
3434
"canvas": "The canvas"
3535
},
36-
"definition": "Destroy 2D Window"
36+
"definition": "Destroy 2D Window",
37+
"detail": "Destroy 2D Window"
3738
},
3839
"cmd2DLine": {
3940
"args": {
@@ -255,6 +256,8 @@
255256
"definition": "Know modules that depends on the given module",
256257
"detail": "Show a list of the modules that depends on the given module",
257258
"error": {
259+
"noModulesFound": "No modules found!",
260+
"noWizard": "Can't create wizard record!",
258261
"notInstalled": "The module '{{module}}' isn't installed"
259262
}
260263
},

_locales/es/translation.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@
3333
"args": {
3434
"canvas": "El lienzo"
3535
},
36-
"definition": "Destruir ventana 2D"
36+
"definition": "Destruir ventana 2D",
37+
"detail": "Destruir ventana 2D"
3738
},
3839
"cmd2DLine": {
3940
"args": {
@@ -255,6 +256,8 @@
255256
"definition": "Conozca los módulos que dependen del módulo dado",
256257
"detail": "Mostrar una lista de los módulos que depende del módulo dado",
257258
"error": {
259+
"noModulesFound": "No se han encontrado los módulos!",
260+
"noWizard": "¡No se ha podido crear el registro del asistente!",
258261
"notInstalled": "El módulo '{{module}}' no está instalado"
259262
}
260263
},

docs/testing.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
apt-get install npm
77
npm install --global npm
88
npm install
9+
npx puppeteer browsers install chrome
910
```
1011

1112
#### Usage

jest-puppeteer.config.cjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ module.exports = {
66
dumpio: true,
77
headless: process.env.PUPPETEER_HEADLESS !== 'false',
88
product: process.env.PUPPETEER_BROWSER || 'chrome',
9-
protocol: 'webDriverBiDi',
109
args: [
1110
'--no-sandbox',
1211
'--disable-setuid-sandbox',

src/js/common/constants.mjs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,10 @@ export const COMPATIBLE_VERSIONS: $ReadOnlyArray<string> = [
156156
'saas~16',
157157
'17.',
158158
'saas~17',
159-
'18.0',
160-
'saas~18.0',
159+
'18.',
160+
'saas~18',
161+
'19.0',
162+
'saas~19.0',
161163
];
162164

163165
export const THEMES: $ReadOnlyArray<[string, string]> = [

src/js/page/loader.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ import getOdooService from '@odoo/utils/get_odoo_service';
1818
import getUID from '@odoo/net_utils/get_uid';
1919
import getUsername from '@odoo/net_utils/get_username';
2020
import isBackOffice from '@odoo/utils/is_backoffice';
21-
import registerMathFuncs from '@trash/libs/math/__all__';
22-
import registerTimeFuncs from '@trash/libs/time/__all__';
23-
import registerNetFuncs from '@trash/libs/net/__all__';
21+
import registerMathFuncs from '@trash/core/math/__all__';
22+
import registerTimeFuncs from '@trash/core/time/__all__';
23+
import registerNetFuncs from '@trash/core/net/__all__';
2424
import registerCoreFuncs from '@terminal/commands/__all__';
2525
import registerGraphicsFuncs from '@terminal/libs/graphics/__all__';
2626
import OdooTerminalTests from '@tests/terminal';

src/js/page/odoo/commands/common/barcode.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ function getBarcodeInfo(barcodeService: BarcodeService) {
6767

6868
async function cmdBarcode(kwargs: CMDCallbackArgs, ctx: CMDCallbackContext) {
6969
const barcodeService = getOdooService('barcodes.BarcodeEvents', '@barcodes/barcode_service');
70+
debugger;
7071
if (!barcodeService) {
7172
// Soft-dependency... this don't exists if barcodes module is not installed
7273
ctx.screen.printError(

0 commit comments

Comments
 (0)