-
Notifications
You must be signed in to change notification settings - Fork 239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[14.0] [MIG] Migrated fieldservice module. #695
Conversation
…y_id filling proper manager details while creating FS location otherwise it makes null to respective region,branch,district
context_today does not work correctly for datetime filters, it is being used durectly to compare wuth UTC stored datetimes. To get the expected results, datetime.utcmow() must be used instead. [FIX] Fix Filters [IMP] Final Fix
Fix duplicate filter names
Issue OCA#588 - FSM User group cannot view Complet button on FSM orders
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: field-service-13.0/field-service-13.0-fieldservice Translate-URL: https://translation.odoo-community.org/projects/field-service-13-0/field-service-13-0-fieldservice/
Currently translated at 100.0% (487 of 487 strings) Translation: field-service-13.0/field-service-13.0-fieldservice Translate-URL: https://translation.odoo-community.org/projects/field-service-13-0/field-service-13-0-fieldservice/es_AR/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: field-service-13.0/field-service-13.0-fieldservice Translate-URL: https://translation.odoo-community.org/projects/field-service-13-0/field-service-13-0-fieldservice/
Currently translated at 100.0% (488 of 488 strings) Translation: field-service-13.0/field-service-13.0-fieldservice Translate-URL: https://translation.odoo-community.org/projects/field-service-13-0/field-service-13-0-fieldservice/es_AR/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this work.
Please also patch security rules.
<field name="domain_force">['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]</field>
<field name="domain_force">[('company_id', 'in', company_ids)]</field>
@@ -377,6 +377,8 @@ def onchange_scheduled_date_end(self): | |||
@api.onchange("scheduled_duration") | |||
def onchange_scheduled_duration(self): | |||
if self.scheduled_duration and self.scheduled_date_start: | |||
if self.scheduled_duration < 0: | |||
raise ValidationError(_("Scheduled Duration Should be Postive Value")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or = 0 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The default value is zero so no need to check = into it.
fieldservice/models/fsm_person.py
Outdated
@@ -32,6 +34,10 @@ class FSMPerson(models.Model): | |||
mobile = fields.Char(string="Mobile") | |||
territory_ids = fields.Many2many("res.territory", string="Territories") | |||
|
|||
message_main_attachment_id = fields.Many2one(string="Main Attachment", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why ?
def _onchange_group_fsm_equipment(self): | ||
if not self.group_fsm_equipment: | ||
self.auto_populate_the_equipments = False | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why only these two ?
Hi @Murtaza-OSI do you plan to work on this pr soon ? |
Also please integrate the removal of partner_fax #693 |
Thank you for the work @Murtaza-OSI What is reason to remove the two onchange methods in res_config_settings here ? Why is the message_main_attachment_id field added in fsm_person here ? Also can you remove partner_fax like we did in #693 to keep consistency between v13 and v14? |
Superseded by #740 |
No description provided.