Skip to content
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

Closed
wants to merge 277 commits into from

Conversation

Murtaza-OSI
Copy link
Contributor

No description provided.

max3903 and others added 17 commits January 18, 2021 16:14
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/
Copy link
Contributor

@hparfr hparfr left a 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"))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or = 0 ?

Copy link
Contributor Author

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.

@@ -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",
Copy link
Contributor

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

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why only these two ?

@hparfr
Copy link
Contributor

hparfr commented Feb 16, 2021

Hi @Murtaza-OSI do you plan to work on this pr soon ?

@hparfr
Copy link
Contributor

hparfr commented Feb 16, 2021

Also please integrate the removal of partner_fax #693

@brian10048
Copy link
Contributor

Thank you for the work @Murtaza-OSI
Are you able to continue work on this PR?

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?

Thank you!
cc: @hparfr @bodedra

@hparfr hparfr mentioned this pull request Mar 11, 2021
@brian10048 brian10048 closed this Mar 17, 2021
@brian10048
Copy link
Contributor

Superseded by #740

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.