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] [ADD] mass_merge #1

Open
wants to merge 26 commits into
base: 14.0
Choose a base branch
from
Open

[14.0] [ADD] mass_merge #1

wants to merge 26 commits into from

Conversation

Kiplangatdan
Copy link
Member

No description provided.

mass_merge/models/base_merge_model_lines.py Outdated Show resolved Hide resolved
mass_merge/models/base_merge_model_lines.py Show resolved Hide resolved
# fields are to be used to to match
class BaseMergeModel(models.Model):

_name = 'base.merge.model'
Copy link
Member Author

Choose a reason for hiding this comment

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

Add description

_description = 'Base Merge Model'

Choose a reason for hiding this comment

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

Description Added

mass_merge/models/ir_ui_view.py Outdated Show resolved Hide resolved
mass_merge/models/merge_editing.py Outdated Show resolved Hide resolved

domain = fields.Char(string="Filter", required=True)
key = fields.Text(string="Group key", required=True,
help="The key that will be used to group the records to merge."
Copy link
Member Author

Choose a reason for hiding this comment

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

Identation

Choose a reason for hiding this comment

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

Hey @Kiplangatdan I don't see any indentation issue here.

Copy link

Choose a reason for hiding this comment

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

Indent the same way as the other fields. (But also put in all fields the final ) on a separate line and put a comma also after the last keyword. Unless a field definition fits all on one line (that is in 88 positions).


model_name = fields.Char(string="Model name", related="model_id.model")

merge_relation_id = fields.Many2one('record.merge.relation.field', string="Origin Relation")
Copy link
Member Author

Choose a reason for hiding this comment

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

Same case here, identation.

Choose a reason for hiding this comment

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

Also here, I don't see any indentation issue.

@Kiplangatdan
Copy link
Member Author

@douglas-tabut Please attend to the above meanwhile.

@@ -0,0 +1,30 @@
# -*- coding: utf-8 -*-
Copy link

Choose a reason for hiding this comment

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

What happens in this init hook is more properly done by a data xml, or even better as demo data.

@@ -0,0 +1,10 @@
# -*- coding: utf-8 -*-
Copy link

Choose a reason for hiding this comment

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

In Odoo 14.0 (since 11.0) we should no longer have coding lines in python files.

@@ -0,0 +1,81 @@
# -*- coding: utf-8 -*-
# © 2020 Therp BV <https://therp.nl>
Copy link

Choose a reason for hiding this comment

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

use the word Copyright, not a character

from odoo import _, api, fields, models


# This class holds configuration about which models
Copy link

Choose a reason for hiding this comment

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

Make this into a proper class doc comment.

@@ -0,0 +1,18 @@
# -*- coding: utf-8 -*-
Copy link

Choose a reason for hiding this comment

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

What is the need for this file? Just one call to a super method without any extra action, all arguments passed unchanged...

self.fill_group()


class RecordMergeCriteriaGroup(models.Model):
Copy link

Choose a reason for hiding this comment

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

Each model class should have its own file.

ntsirintanis pushed a commit that referenced this pull request Mar 12, 2024
Copy link

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale label Mar 17, 2024
@ntsirintanis
Copy link

@douglas-tabut I rebased this branch and opened a new MR, that takes care of most of the review comments and makes the module installable and somewhat functional. Please take a look here #2

@github-actions github-actions bot removed the stale label Mar 24, 2024
ntsirintanis pushed a commit that referenced this pull request Nov 27, 2024
TA#60999 [14.0][FIX]date_range: store date_end in date.range.generator
ntsirintanis pushed a commit that referenced this pull request Nov 27, 2024
Copy link

github-actions bot commented Dec 1, 2024

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale label Dec 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants