odoo_provider_builder 0.0.2 icon indicating copy to clipboard operation
odoo_provider_builder: ^0.0.2 copied to clipboard

a builder for generate model used by odoo_provider.

Odoo Provider Builder #

Since it's too much writing to implement IOdooModel using odoo_provider, i develop this package. So, writing model will become easily.

Please add this package as dev dependency to your project

Usage #

  1. Create your model with structure like following [example: user.dart]
import 'package:odoo_provider/odoo_provider.dart';

part 'user.g.dart'; //this is required

@OdooModel(className: "User", tableName: "res.users", columns: [
  DbColumn(name: "id", type: int),
  DbColumn(name: "login", type: String),
  DbColumn(name: "name", type: String)
])
void _;
  1. and then run following command:
flutter pub run build_runner build

if above command run successfully, you'll see file user.g.dart

if you want to know more about above command, you can checkout at source_gen

Example #

You can checkout folder in example\test

0
likes
90
pub points
5%
popularity

Publisher

verified publisher iconaikosia.com

a builder for generate model used by odoo_provider.

Homepage

Documentation

API reference

License

Icon for licenses.BSD-3-Clause (LICENSE)

Dependencies

analyzer, build, flutter, odoo_provider, source_gen

More

Packages that depend on odoo_provider_builder