dvolkering/laravel-odoo-guidelines 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

dvolkering/laravel-odoo-guidelines

最新稳定版本:1.0.0

Composer 安装命令:

composer require dvolkering/laravel-odoo-guidelines

包简介

Laravel Boost guidelines and skills for Odoo JSON-RPC development.

README 文档

README

Laravel Boost guidelines and skill for Odoo JSON-RPC development via obuchmann/odoo-jsonrpc.

Installation

composer require jouwnaam/odoo-connector

Then run the Boost installer to load the guidelines and skill into your agent:

php artisan boost:install

To update after a package update:

composer update jouwnaam/odoo-connector
php artisan boost:update

Or automate this in your project's composer.json:

{
    "scripts": {
        "post-update-cmd": [
            "@php artisan boost:update --ansi"
        ]
    }
}

What's included

  • Laravel Boost guideline — critical rules loaded upfront into your agent's context
  • Laravel Boost skillodoo-development, full patterns loaded on demand

Project setup

After installing the package, set up the following in your project:

Register casts in AppServiceProvider::boot():

use Obuchmann\OdooJsonRpc\Odoo;
use Obuchmann\OdooJsonRpc\Odoo\Casts\DateTimeCast;

Odoo::registerCast(new DateTimeCast());

Add OdooNotFoundException to app/Odoo/Exceptions/:

namespace App\Odoo\Exceptions;

class OdooNotFoundException extends \RuntimeException {}

Register exceptions in bootstrap/app.php:

use Obuchmann\OdooJsonRpc\Exceptions\{AuthenticationException, OdooModelException};
use App\Odoo\Exceptions\OdooNotFoundException;

->withExceptions(function (Exceptions $exceptions) {
    $exceptions->render(function (OdooNotFoundException $e) {
        return response()->json(['message' => $e->getMessage()], 404);
    });
    $exceptions->render(function (OdooModelException $e) {
        report($e);
        return response()->json(['message' => 'Odoo operation failed.'], 422);
    });
    $exceptions->render(function (AuthenticationException $e) {
        report($e);
        return response()->json(['message' => 'Odoo authentication failed.'], 503);
    });
})

See the odoo-development skill for full patterns and examples.

统计信息

  • 总下载量: 12
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 5
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-03-09

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固