Skip to content

Instantly share code, notes, and snippets.

@tienhieuD
Created April 4, 2018 05:26
Show Gist options
  • Save tienhieuD/3c0b4605c78f1ed01efffc50b3ec9f1a to your computer and use it in GitHub Desktop.
Save tienhieuD/3c0b4605c78f1ed01efffc50b3ec9f1a to your computer and use it in GitHub Desktop.
# -*- coding: utf-8 -*-
from odoo import fields, models
class TestDomain(models.Model):
_name = 'test.domain'
_description = 'domain test'
_rec_name = 'book'
book = fields.Many2one("mylib.book", 'Sách của tôi', domain=[])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment