Human Resources mailing list archives

hr@odoo-community.org

Avatar

Re: [OCA/hr] [12.0] [MIG] hr_contract_reference (#541)

by Jaime Arroyo <notifications@github.com> - 21/07/2020 09:51:56

@jarroyomorales commented on this pull request.


In hr_contract_reference/models/hr_contract.py:

> @@ -0,0 +1,22 @@
+# copyright 2011,2013 Michael Telahun Makonnen <mmakonnen@gmail.com>
+# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
+
+from odoo import api, fields, models
+
+
+class HrContract(models.Model):
+    _inherit = 'hr.contract'
+
+    name = fields.Char(
+        'Contract Reference',
+        required=False,
+        readonly=True,

IMO name should be required, and even more if you are using this module, where you shouldnt have a contract without reference.


You are receiving this because you are on a team that was mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.