Пример #1
0
     'LabURL',
     schemata='Address',
     #write_permission = ManageBika,
     widget=StringWidget(
         size=60,
         label=_("Lab URL"),
         description=_("The Laboratory's web address"),
     ),
 ),
 IntegerField(
     'Confidence',
     default=100,
     schemata='Accreditation',
     widget=IntegerWidget(
         label=_("Confidence Level %"),
         description=_(
             "This value is reported at the bottom of all published results"
         ),
     ),
 ),
 BooleanField(
     'LaboratoryAccredited',
     default=False,
     schemata='Accreditation',
     #write_permission = ManageBika,
     widget=BooleanWidget(
         label=_("Laboratory Accredited"),
         description=_("Check this box if your laboratory is accredited"),
     ),
 ),
 StringField(
     'AccreditationBody',
Пример #2
0
         size=12,
         visible={'edit': 'visible', 'view': 'visible', 'add': 'visible',
                  'secondary': 'invisible'},
     ),
 ),
 DateTimeField('DateApplied',
     widget = DateTimeWidget(
         label = _("Date Applied"),
         size=12,
         visible={'edit': 'visible', 'view': 'visible', 'add': 'visible',
                  'secondary': 'invisible'},
     ),
 ),
 IntegerField('NumberSamples',
     widget = IntegerWidget(
         label = _("Number of samples"),
     ),
 ),
 BooleanField('Status',
     searchable = True,
     widget = StringWidget(
         label = _("Status"),
     ),
 ),
 # ~~~~~~~ To be implemented ~~~~~~~
 #     LinesField('Remarks',
 #         widget = LinesWidget(
 #             label = _("Remarks"),
 #         )
 #     ),
 # ~~~~~~~ To be implemented ~~~~~~~
Пример #3
0
    BooleanField(
        'Retested',
        default=False,
    ),
    fields.Char(string='Days'),
    fields.Char(string='Hours'),
    fields.Char(string='Minutes'),
    DateTimeField(
        'DateAnalysisPublished',
        widget=DateTimeWidget(label=_("Date Published"), ),
    ),
    DateTimeField(
        'DueDate',
        widget=DateTimeWidget(label=_("Due Date"), ),
    ),
    IntegerField('Duration', widget=IntegerWidget(label=_("Duration"), )),
    IntegerField('Earliness', widget=IntegerWidget(label=_("Earliness"), )),
    BooleanField(
        'ReportDryMatter',
        default=False,
    ),
    StringField('Analyst', ),
    TextField('Remarks', ),
    FixedPointField(
        'Uncertainty',
        widget=DecimalWidget(label=_("Uncertainty"), ),
    ),
    StringField('DetectionLimitOperand', ),

    # The analysis that was originally rejected
    fields.Many2one(
Пример #4
0
from fields.text_field import TextField
from fields.widget.widget import IntegerWidget, BooleanWidget, FileWidget, \
                                TextAreaWidget, StringWidget
# ~~~~~~~~~~ Irrelevant code for Odoo ~~~~~~~~~~~
# schema = BikaSchema.copy() + Schema((
schema = (StringField('name',
              required=1,        
    ),
    TextField('Description',
        widget=TextAreaWidget(
            description = _('Used in item listings and search results.'),
                            )
    ),
          IntegerField('sortKey',
        widget=IntegerWidget(
            label = _("Sort Key"),
            description = _("Numeric value indicating the sort order of objects that are prioritised"),
        ),
    ),
    IntegerField('pricePremium',
        widget=IntegerWidget(
            label = _("Price Premium Percentage"),
            description = _("The percentage used to calculate the price for analyses done at this priority"),
        ),
    ),
          
    FileField('smallIcon',
              help='6x16 pixel icon used for the this priority in listings.',
              widget = FileWidget(
              label = _("Small Icon"),
              ),
    ),
Пример #5
0
    fields.Char(string='Days'),
    fields.Char(string='Hours'),
    fields.Char(string='Minutes'),
    DateTimeField('DateAnalysisPublished',
        widget = DateTimeWidget(
            label = _("Date Published"),
        ),
    ),
    DateTimeField('DueDate',
        widget = DateTimeWidget(
            label = _("Due Date"),
        ),
    ),
    IntegerField('Duration',
        widget = IntegerWidget(
            label = _("Duration"),
        )
    ),
    IntegerField('Earliness',
        widget = IntegerWidget(
            label = _("Earliness"),
        )
    ),
    BooleanField('ReportDryMatter',
        default = False,
    ),
    StringField('Analyst',
    ),
    TextField('Remarks',
    ),