Skip to content

Commit

Permalink
[MIG] attribute_set_mass_edit: Migration to 16.0
Browse files Browse the repository at this point in the history
  • Loading branch information
HeliconiaSolutions committed Nov 28, 2024
1 parent a3d47aa commit cbb4b8a
Show file tree
Hide file tree
Showing 9 changed files with 115 additions and 74 deletions.
14 changes: 8 additions & 6 deletions attribute_set_mass_edit/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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|
Expand All @@ -47,7 +47,7 @@ Bug Tracker
Bugs are tracked on `GitHub Issues <https://github.com/OCA/odoo-pim/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 <https://github.com/OCA/odoo-pim/issues/new?body=module:%20attribute_set_mass_edit%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`feedback <https://github.com/OCA/odoo-pim/issues/new?body=module:%20attribute_set_mass_edit%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

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

Expand All @@ -63,6 +63,8 @@ Contributors
~~~~~~~~~~~~

* Cédric PIGEON <[email protected]>
* Dhara Solanki <[email protected]>
* `Heliconia Solutions Pvt. Ltd. <https://www.heliconia.io>`_

Maintainers
~~~~~~~~~~~
Expand All @@ -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 <https://github.com/OCA/odoo-pim/tree/14.0/attribute_set_mass_edit>`_ project on GitHub.
This module is part of the `OCA/odoo-pim <https://github.com/OCA/odoo-pim/tree/16.0/attribute_set_mass_edit>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
4 changes: 2 additions & 2 deletions attribute_set_mass_edit/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
61 changes: 5 additions & 56 deletions attribute_set_mass_edit/i18n/attribute_set_mass_edit.pot
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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 ""

Expand All @@ -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
Expand Down
43 changes: 43 additions & 0 deletions attribute_set_mass_edit/i18n/de.po
Original file line number Diff line number Diff line change
@@ -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 ""

43 changes: 43 additions & 0 deletions attribute_set_mass_edit/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -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 ""

9 changes: 5 additions & 4 deletions attribute_set_mass_edit/models/attribute_attribute.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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
2 changes: 1 addition & 1 deletion attribute_set_mass_edit/models/mass_editing_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 2 additions & 0 deletions attribute_set_mass_edit/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
* Cédric PIGEON <[email protected]>
* Dhara Solanki <[email protected]>
* `Heliconia Solutions Pvt. Ltd. <https://www.heliconia.io>`_
11 changes: 6 additions & 5 deletions attribute_set_mass_edit/static/description/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
Expand Down Expand Up @@ -367,9 +366,9 @@ <h1 class="title">Attribute Set Mass Edit</h1>
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:0ee0b39c92ca426a106aecd71458e0da4eaf9534a03b60fcdf00989edb07c20d
!! source digest: sha256:1a6a409e80c699985fb475121d0001613aa33ca9f38c6cce05cc1cf46f544242
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/odoo-pim/tree/14.0/attribute_set_mass_edit"><img alt="OCA/odoo-pim" src="https://img.shields.io/badge/github-OCA%2Fodoo--pim-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/odoo-pim-14-0/odoo-pim-14-0-attribute_set_mass_edit"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/odoo-pim&amp;target_branch=14.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/odoo-pim/tree/16.0/attribute_set_mass_edit"><img alt="OCA/odoo-pim" src="https://img.shields.io/badge/github-OCA%2Fodoo--pim-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/odoo-pim-16-0/odoo-pim-16-0-attribute_set_mass_edit"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/odoo-pim&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module allows the user to authorize mass editing on an attribute.</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
Expand All @@ -394,7 +393,7 @@ <h1><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h1>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/odoo-pim/issues">GitHub Issues</a>.
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
<a class="reference external" href="https://github.com/OCA/odoo-pim/issues/new?body=module:%20attribute_set_mass_edit%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<a class="reference external" href="https://github.com/OCA/odoo-pim/issues/new?body=module:%20attribute_set_mass_edit%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
</div>
<div class="section" id="credits">
Expand All @@ -409,6 +408,8 @@ <h2><a class="toc-backref" href="#toc-entry-4">Authors</a></h2>
<h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
<ul class="simple">
<li>Cédric PIGEON &lt;<a class="reference external" href="mailto:cedric.pigeon&#64;acsone.eu">cedric.pigeon&#64;acsone.eu</a>&gt;</li>
<li>Dhara Solanki &lt;<a class="reference external" href="mailto:dhara.solanki&#64;initos.com">dhara.solanki&#64;initos.com</a>&gt;</li>
<li><a class="reference external" href="https://www.heliconia.io">Heliconia Solutions Pvt. Ltd.</a></li>
</ul>
</div>
<div class="section" id="maintainers">
Expand All @@ -418,7 +419,7 @@ <h2><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h2>
<p>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.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/odoo-pim/tree/14.0/attribute_set_mass_edit">OCA/odoo-pim</a> project on GitHub.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/odoo-pim/tree/16.0/attribute_set_mass_edit">OCA/odoo-pim</a> project on GitHub.</p>
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
</div>
</div>
Expand Down

0 comments on commit cbb4b8a

Please sign in to comment.