bugGNU Health - Bugs: bug #62788, Code should not be translate in...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #62788: Code should not be translate in health_dentistry

Submitter:  Feng Shu <tumashu>
Submitted:  Wed 20 Jul 2022 09:25:09 AM UTC
 
Category:  localization Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Release:  None
Module:  health_dentistry Component:  None

Thu 28 Jul 2022 11:46:19 PM UTC, comment #1: 

A patch attached, please review it:-)

(file #53484)

Feng Shu <tumashu>
Wed 20 Jul 2022 09:25:09 AM UTC, original submission:  

class DentistryProcedure(ModelSQL, ModelView):
    'Dentistry Procedure'
    _name_ = 'gnuhealth.dentistry.procedure'

    name = fields.Char('Procedure', required=True, translate=True)
    code = fields.Char(
        'Code', required=True, translate=True,

                              ^^^^^^^^^^^^^^^^^^^^^  I think translate should False

        help='Please use CAPITAL LETTERS and no spaces')

    @classmethod
    def _setup_(cls):
        t = cls.__table__()
        cls._sql_constraints = [
            ('name_uniq', Unique(t, t.name),
                'The Procedure must be unique !'),
            ('code_uniq', Unique(t, t.code),
                'The CODE must be unique !'),
        ]
        super(DentistryProcedure, cls).__setup__()

Feng Shu <tumashu>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by tumashu (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

     

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-07-28 tumashu Attached File- Added 1-health_dentistry__Do_not_translate_code_of_dentistry_procedure.patch, #53484

    Back to the top


    Powered by Savane 3.9