[IMP] base: Add missing _description on models
This commit is contained in:
@@ -89,6 +89,7 @@ class PreviewModel(models.Model):
|
||||
|
||||
class FloatModel(models.Model):
|
||||
_name = name('float')
|
||||
_description = 'Tests: Base Import Model Float'
|
||||
|
||||
value = fields.Float()
|
||||
value2 = fields.Monetary()
|
||||
@@ -96,6 +97,7 @@ class FloatModel(models.Model):
|
||||
|
||||
class ComplexModel(models.Model):
|
||||
_name = name('complex')
|
||||
_description = 'Tests: Base Import Model Complex'
|
||||
|
||||
f = fields.Float()
|
||||
m = fields.Monetary()
|
||||
|
||||
@@ -9,6 +9,7 @@ DEFAULT_REVEAL_VIEW_WEEKS_VALID = 5
|
||||
|
||||
class CRMRevealView(models.Model):
|
||||
_name = 'crm.reveal.view'
|
||||
_description = 'CRM Reveal View'
|
||||
_order = 'id desc'
|
||||
|
||||
reveal_ip = fields.Char(string='IP Address', index=True)
|
||||
|
||||
@@ -8,6 +8,7 @@ _logger = logging.getLogger(__name__)
|
||||
|
||||
class ResPartnerAutocompleteSync(models.Model):
|
||||
_name = 'res.partner.autocomplete.sync'
|
||||
_description = 'Partner Autocomplete Sync'
|
||||
|
||||
partner_id = fields.Many2one('res.partner', string="Partner", ondelete='cascade')
|
||||
synched = fields.Boolean('Is synched', default=False)
|
||||
|
||||
@@ -6,6 +6,7 @@ from odoo import api, fields, models
|
||||
|
||||
class ChooseDestinationLocation(models.TransientModel):
|
||||
_name = 'stock.package.destination'
|
||||
_description = 'Stock Package Destination'
|
||||
|
||||
picking_id = fields.Many2one('stock.picking', required=True)
|
||||
move_line_ids = fields.Many2many('stock.move.line', 'Products', compute='_compute_move_line_ids', required=True)
|
||||
|
||||
@@ -336,6 +336,7 @@ class IrActionsServer(models.Model):
|
||||
server actions
|
||||
"""
|
||||
_name = 'ir.actions.server'
|
||||
_description = 'Server Actions'
|
||||
_table = 'ir_act_server'
|
||||
_inherit = 'ir.actions.actions'
|
||||
_sequence = 'ir_actions_id_seq'
|
||||
|
||||
@@ -34,7 +34,7 @@ class IrQWeb(models.AbstractModel, QWeb):
|
||||
"""
|
||||
|
||||
_name = 'ir.qweb'
|
||||
_descriptiob = 'Qweb'
|
||||
_description = 'Qweb'
|
||||
|
||||
@api.model
|
||||
def render(self, id_or_xml_id, values=None, **options):
|
||||
|
||||
@@ -48,6 +48,7 @@ class FieldConverter(models.AbstractModel):
|
||||
* generates the root result node itself through :meth:`~.render_element`
|
||||
"""
|
||||
_name = 'ir.qweb.field'
|
||||
_description = 'Qweb Field'
|
||||
|
||||
@api.model
|
||||
def get_available_options(self):
|
||||
|
||||
@@ -40,6 +40,7 @@ MODELS = [
|
||||
for name, field in MODELS:
|
||||
class NewModel(models.Model):
|
||||
_name = 'export.%s' % name
|
||||
_description = 'Export: %s' % name
|
||||
_rec_name = 'value'
|
||||
const = fields.Integer(default=4)
|
||||
value = field
|
||||
|
||||
@@ -5,6 +5,7 @@ from odoo import models, fields, _
|
||||
class m(models.TransientModel):
|
||||
""" A model to provide source strings. """
|
||||
_name = 'test.translation.import'
|
||||
_description = 'Test: Translation Import'
|
||||
|
||||
name = fields.Char('1XBUO5PUYH2RYZSA1FTLRYS8SPCNU1UYXMEYMM25ASV7JC2KTJZQESZYRV9L8CGB',
|
||||
size=32, help='Efgh')
|
||||
|
||||
Reference in New Issue
Block a user