From cbb4b8af98c8eea0a2bcdb648203f9236625c1eb Mon Sep 17 00:00:00 2001 From: Heliconia Solutions Date: Thu, 28 Nov 2024 09:45:11 +0530 Subject: [PATCH] [MIG] attribute_set_mass_edit: Migration to 16.0 --- attribute_set_mass_edit/README.rst | 14 +++-- attribute_set_mass_edit/__manifest__.py | 4 +- .../i18n/attribute_set_mass_edit.pot | 61 ++----------------- attribute_set_mass_edit/i18n/de.po | 43 +++++++++++++ attribute_set_mass_edit/i18n/fr.po | 43 +++++++++++++ .../models/attribute_attribute.py | 9 +-- .../models/mass_editing_line.py | 2 +- .../readme/CONTRIBUTORS.rst | 2 + .../static/description/index.html | 11 ++-- 9 files changed, 115 insertions(+), 74 deletions(-) create mode 100644 attribute_set_mass_edit/i18n/de.po create mode 100644 attribute_set_mass_edit/i18n/fr.po diff --git a/attribute_set_mass_edit/README.rst b/attribute_set_mass_edit/README.rst index 72a47403..37e4acb1 100644 --- a/attribute_set_mass_edit/README.rst +++ b/attribute_set_mass_edit/README.rst @@ -7,7 +7,7 @@ Attribute Set Mass Edit !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:0ee0b39c92ca426a106aecd71458e0da4eaf9534a03b60fcdf00989edb07c20d + !! source digest: sha256:1a6a409e80c699985fb475121d0001613aa33ca9f38c6cce05cc1cf46f544242 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png @@ -17,13 +17,13 @@ Attribute Set Mass Edit :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fodoo--pim-lightgray.png?logo=github - :target: https://github.com/OCA/odoo-pim/tree/14.0/attribute_set_mass_edit + :target: https://github.com/OCA/odoo-pim/tree/16.0/attribute_set_mass_edit :alt: OCA/odoo-pim .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/odoo-pim-14-0/odoo-pim-14-0-attribute_set_mass_edit + :target: https://translation.odoo-community.org/projects/odoo-pim-16-0/odoo-pim-16-0-attribute_set_mass_edit :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png - :target: https://runboat.odoo-community.org/builds?repo=OCA/odoo-pim&target_branch=14.0 + :target: https://runboat.odoo-community.org/builds?repo=OCA/odoo-pim&target_branch=16.0 :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| @@ -47,7 +47,7 @@ Bug Tracker Bugs are tracked on `GitHub Issues `_. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -63,6 +63,8 @@ Contributors ~~~~~~~~~~~~ * Cédric PIGEON +* Dhara Solanki +* `Heliconia Solutions Pvt. Ltd. `_ Maintainers ~~~~~~~~~~~ @@ -77,6 +79,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use. -This module is part of the `OCA/odoo-pim `_ project on GitHub. +This module is part of the `OCA/odoo-pim `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/attribute_set_mass_edit/__manifest__.py b/attribute_set_mass_edit/__manifest__.py index 84aff62c..94d61911 100644 --- a/attribute_set_mass_edit/__manifest__.py +++ b/attribute_set_mass_edit/__manifest__.py @@ -3,11 +3,11 @@ { "name": "Attribute Set Mass Edit", - "version": "14.0.1.1.0", + "version": "16.0.1.0.0", "license": "AGPL-3", "author": "ACSONE SA/NV,Odoo Community Association (OCA)", "website": "https://github.com/OCA/odoo-pim", - "depends": ["attribute_set", "mass_editing", "onchange_helper"], + "depends": ["attribute_set", "server_action_mass_edit", "onchange_helper"], "data": ["views/attribute_attribute.xml"], "demo": [], "installable": True, diff --git a/attribute_set_mass_edit/i18n/attribute_set_mass_edit.pot b/attribute_set_mass_edit/i18n/attribute_set_mass_edit.pot index c1f78f86..602123b5 100644 --- a/attribute_set_mass_edit/i18n/attribute_set_mass_edit.pot +++ b/attribute_set_mass_edit/i18n/attribute_set_mass_edit.pot @@ -4,7 +4,7 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 14.0\n" +"Project-Id-Version: Odoo Server 16.0\n" "Report-Msgid-Bugs-To: \n" "Last-Translator: \n" "Language-Team: \n" @@ -13,14 +13,8 @@ msgstr "" "Content-Transfer-Encoding: \n" "Plural-Forms: \n" -#. module: attribute_set_mass_edit -#: model:ir.model.fields,field_description:attribute_set_mass_edit.field_attribute_attribute__allow_mass_editing -msgid "Allow Mass Editing" -msgstr "" - #. module: attribute_set_mass_edit #: model:ir.model,name:attribute_set_mass_edit.model_attribute_attribute -#: model:ir.model.fields,field_description:attribute_set_mass_edit.field_mass_editing_line__attribute_id msgid "Attribute" msgstr "" @@ -30,58 +24,13 @@ msgid "Attribute Group" msgstr "" #. module: attribute_set_mass_edit -#: model:ir.model.fields,field_description:attribute_set_mass_edit.field_attribute_attribute__display_name -#: model:ir.model.fields,field_description:attribute_set_mass_edit.field_attribute_group__display_name -#: model:ir.model.fields,field_description:attribute_set_mass_edit.field_ir_actions_server__display_name -#: model:ir.model.fields,field_description:attribute_set_mass_edit.field_mass_editing_line__display_name -#: model:ir.model.fields,field_description:attribute_set_mass_edit.field_mass_editing_wizard__display_name -msgid "Display Name" -msgstr "" - -#. module: attribute_set_mass_edit -#: code:addons/attribute_set_mass_edit/models/attribute_group.py:0 -#, python-format -msgid "Edit %s fields" -msgstr "" - -#. module: attribute_set_mass_edit -#: model:ir.model.fields,field_description:attribute_set_mass_edit.field_attribute_attribute__id -#: model:ir.model.fields,field_description:attribute_set_mass_edit.field_attribute_group__id -#: model:ir.model.fields,field_description:attribute_set_mass_edit.field_ir_actions_server__id -#: model:ir.model.fields,field_description:attribute_set_mass_edit.field_mass_editing_line__id -#: model:ir.model.fields,field_description:attribute_set_mass_edit.field_mass_editing_wizard__id -msgid "ID" -msgstr "" - -#. module: attribute_set_mass_edit -#: model:ir.model.fields,field_description:attribute_set_mass_edit.field_attribute_attribute____last_update -#: model:ir.model.fields,field_description:attribute_set_mass_edit.field_attribute_group____last_update -#: model:ir.model.fields,field_description:attribute_set_mass_edit.field_ir_actions_server____last_update -#: model:ir.model.fields,field_description:attribute_set_mass_edit.field_mass_editing_line____last_update -#: model:ir.model.fields,field_description:attribute_set_mass_edit.field_mass_editing_wizard____last_update -msgid "Last Modified on" -msgstr "" - -#. module: attribute_set_mass_edit -#: model:ir.model.fields,field_description:attribute_set_mass_edit.field_attribute_group__mass_edit_action_ids -msgid "Mass Edit Action" -msgstr "" - -#. module: attribute_set_mass_edit -#: model:ir.model.fields,field_description:attribute_set_mass_edit.field_ir_actions_server__mass_edit_attribute_group_id -#: model:ir.model.fields,field_description:attribute_set_mass_edit.field_ir_cron__mass_edit_attribute_group_id -msgid "Mass Edit Attribute Group" -msgstr "" - -#. module: attribute_set_mass_edit -#: model:ir.model,name:attribute_set_mass_edit.model_mass_editing_line -#: model:ir.model.fields,field_description:attribute_set_mass_edit.field_attribute_attribute__mass_editing_line_ids -msgid "Mass Editing Line" +#: model:ir.model,name:attribute_set_mass_edit.model_ir_actions_server +msgid "Server Action" msgstr "" #. module: attribute_set_mass_edit -#: model:ir.model,name:attribute_set_mass_edit.model_ir_actions_server -msgid "Server Action" +#: model:ir.model,name:attribute_set_mass_edit.model_ir_actions_server_mass_edit_line +msgid "Server Actions Mass Edit Lines" msgstr "" #. module: attribute_set_mass_edit diff --git a/attribute_set_mass_edit/i18n/de.po b/attribute_set_mass_edit/i18n/de.po new file mode 100644 index 00000000..3dccec6e --- /dev/null +++ b/attribute_set_mass_edit/i18n/de.po @@ -0,0 +1,43 @@ +msgid "" +msgstr "" +"Project-Id-Version: ametras-xsolutions\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: \n" +"Language-Team: German\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Crowdin-Project: ametras-xsolutions\n" +"X-Crowdin-Project-ID: 530964\n" +"X-Crowdin-Language: de\n" +"X-Crowdin-File: /[AmetrasIntelligence.oca-migrated] 16.0/attribute_set_mass_edit/i18n/attribute_set_mass_edit.pot\n" +"X-Crowdin-File-ID: 21360\n" +"Language: de_DE\n" +"PO-Revision-Date: 2024-09-25 12:08\n" + +#. module: attribute_set_mass_edit +#: model:ir.model,name:attribute_set_mass_edit.model_attribute_attribute +msgid "Attribute" +msgstr "" + +#. module: attribute_set_mass_edit +#: model:ir.model,name:attribute_set_mass_edit.model_attribute_group +msgid "Attribute Group" +msgstr "" + +#. module: attribute_set_mass_edit +#: model:ir.model,name:attribute_set_mass_edit.model_ir_actions_server +msgid "Server Action" +msgstr "" + +#. module: attribute_set_mass_edit +#: model:ir.model,name:attribute_set_mass_edit.model_ir_actions_server_mass_edit_line +msgid "Server Actions Mass Edit Lines" +msgstr "" + +#. module: attribute_set_mass_edit +#: model:ir.model,name:attribute_set_mass_edit.model_mass_editing_wizard +msgid "Wizard for mass edition" +msgstr "" + diff --git a/attribute_set_mass_edit/i18n/fr.po b/attribute_set_mass_edit/i18n/fr.po new file mode 100644 index 00000000..eff4ea52 --- /dev/null +++ b/attribute_set_mass_edit/i18n/fr.po @@ -0,0 +1,43 @@ +msgid "" +msgstr "" +"Project-Id-Version: ametras-xsolutions\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: \n" +"Language-Team: French\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" +"X-Crowdin-Project: ametras-xsolutions\n" +"X-Crowdin-Project-ID: 530964\n" +"X-Crowdin-Language: fr\n" +"X-Crowdin-File: /[AmetrasIntelligence.oca-migrated] 16.0/attribute_set_mass_edit/i18n/attribute_set_mass_edit.pot\n" +"X-Crowdin-File-ID: 21360\n" +"Language: fr_FR\n" +"PO-Revision-Date: 2024-09-25 12:08\n" + +#. module: attribute_set_mass_edit +#: model:ir.model,name:attribute_set_mass_edit.model_attribute_attribute +msgid "Attribute" +msgstr "" + +#. module: attribute_set_mass_edit +#: model:ir.model,name:attribute_set_mass_edit.model_attribute_group +msgid "Attribute Group" +msgstr "" + +#. module: attribute_set_mass_edit +#: model:ir.model,name:attribute_set_mass_edit.model_ir_actions_server +msgid "Server Action" +msgstr "" + +#. module: attribute_set_mass_edit +#: model:ir.model,name:attribute_set_mass_edit.model_ir_actions_server_mass_edit_line +msgid "Server Actions Mass Edit Lines" +msgstr "" + +#. module: attribute_set_mass_edit +#: model:ir.model,name:attribute_set_mass_edit.model_mass_editing_wizard +msgid "Wizard for mass edition" +msgstr "" + diff --git a/attribute_set_mass_edit/models/attribute_attribute.py b/attribute_set_mass_edit/models/attribute_attribute.py index 9263819a..95f63754 100644 --- a/attribute_set_mass_edit/models/attribute_attribute.py +++ b/attribute_set_mass_edit/models/attribute_attribute.py @@ -9,7 +9,7 @@ class AttributeAttribute(models.Model): allow_mass_editing = fields.Boolean() mass_editing_line_ids = fields.One2many( - comodel_name="mass.editing.line", inverse_name="attribute_id" + comodel_name="ir.actions.server.mass.edit.line", inverse_name="attribute_id" ) def _get_mass_editing_ids(self): @@ -96,7 +96,8 @@ def unlink(self): @api.model_create_multi @api.returns("self", lambda value: value.id) - def create(self, vals): - attributes = super(AttributeAttribute, self).create(vals) - attributes._manage_mass_editings() + def create(self, vals_list): + attributes = super(AttributeAttribute, self).create(vals_list) + for rec in attributes: + rec._manage_mass_editings() return attributes diff --git a/attribute_set_mass_edit/models/mass_editing_line.py b/attribute_set_mass_edit/models/mass_editing_line.py index 0a4934a7..7213ecf4 100644 --- a/attribute_set_mass_edit/models/mass_editing_line.py +++ b/attribute_set_mass_edit/models/mass_editing_line.py @@ -6,7 +6,7 @@ class MassEditingLine(models.Model): - _inherit = "mass.editing.line" + _inherit = "ir.actions.server.mass.edit.line" attribute_id = fields.Many2one( "attribute.attribute", diff --git a/attribute_set_mass_edit/readme/CONTRIBUTORS.rst b/attribute_set_mass_edit/readme/CONTRIBUTORS.rst index fe309b7d..bb3e93de 100644 --- a/attribute_set_mass_edit/readme/CONTRIBUTORS.rst +++ b/attribute_set_mass_edit/readme/CONTRIBUTORS.rst @@ -1 +1,3 @@ * Cédric PIGEON +* Dhara Solanki +* `Heliconia Solutions Pvt. Ltd. `_ diff --git a/attribute_set_mass_edit/static/description/index.html b/attribute_set_mass_edit/static/description/index.html index 0e3d2a21..39a54bb6 100644 --- a/attribute_set_mass_edit/static/description/index.html +++ b/attribute_set_mass_edit/static/description/index.html @@ -1,4 +1,3 @@ - @@ -367,9 +366,9 @@

Attribute Set Mass Edit

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:0ee0b39c92ca426a106aecd71458e0da4eaf9534a03b60fcdf00989edb07c20d +!! source digest: sha256:1a6a409e80c699985fb475121d0001613aa33ca9f38c6cce05cc1cf46f544242 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Beta License: AGPL-3 OCA/odoo-pim Translate me on Weblate Try me on Runboat

+

Beta License: AGPL-3 OCA/odoo-pim Translate me on Weblate Try me on Runboat

This module allows the user to authorize mass editing on an attribute.

Table of contents

@@ -394,7 +393,7 @@

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed -feedback.

+feedback.

Do not contact contributors directly about support or help with technical issues.

@@ -418,7 +419,7 @@

Maintainers

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

-

This module is part of the OCA/odoo-pim project on GitHub.

+

This module is part of the OCA/odoo-pim project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.