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][UPD] service maintenance: modified recondition buttons #1917

Merged
merged 1 commit into from
Feb 20, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ addon | version | maintainers | summary | price
[deltatech_service_consumable](deltatech_service_consumable/) | 14.0.1.1.3 | [![dhongu](https://github.com/dhongu.png?size=30px)](https://github.com/dhongu) | Service Consumable | Free
[deltatech_service_equipment](deltatech_service_equipment/) | 14.0.1.2.0 | [![dhongu](https://github.com/dhongu.png?size=30px)](https://github.com/dhongu) | Service Equipment Management | Free
[deltatech_service_equipment_base](deltatech_service_equipment_base/) | 14.0.1.1.3 | [![dhongu](https://github.com/dhongu.png?size=30px)](https://github.com/dhongu) | Service Equipment Management | Free
[deltatech_service_maintenance](deltatech_service_maintenance/) | 14.0.1.3.3 | [![dhongu](https://github.com/dhongu.png?size=30px)](https://github.com/dhongu) | Services Maintenance | Free
[deltatech_service_maintenance](deltatech_service_maintenance/) | 14.0.1.3.4 | [![dhongu](https://github.com/dhongu.png?size=30px)](https://github.com/dhongu) | Services Maintenance | Free
[deltatech_service_maintenance_agreement](deltatech_service_maintenance_agreement/) | 14.0.1.0.4 | [![dhongu](https://github.com/dhongu.png?size=30px)](https://github.com/dhongu) | Services Maintenance | Free
[deltatech_service_maintenance_plan](deltatech_service_maintenance_plan/) | 14.0.1.0.6 | [![dhongu](https://github.com/dhongu.png?size=30px)](https://github.com/dhongu) | Services Maintenance Plan | Free
[deltatech_sms](deltatech_sms/) | 14.0.1.0.0 | [![dhongu](https://github.com/dhongu.png?size=30px)](https://github.com/dhongu) | Send SMS to custom endpoint | Free
Expand Down
2 changes: 1 addition & 1 deletion deltatech_service_maintenance/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Deltatech Services Maintenance
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:e5ab30a4fa5e9b714b6745e17fdfbcbecd28f56a46675d98aa6c0307c3ccbcc2
!! source digest: sha256:78b0e23c54a8ecff440394cf429bb4ce91ba5ea35d4f5d5f13e5d2c6c3c0c38b
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
Expand Down
2 changes: 1 addition & 1 deletion deltatech_service_maintenance/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{
"name": "Deltatech Services Maintenance",
"summary": "Services Maintenance",
"version": "14.0.1.3.3",
"version": "14.0.1.3.4",
"author": "Terrabit, Dorin Hongu",
"website": "https://www.terrabit.ro",
"category": "Services/Maintenance",
Expand Down
23 changes: 19 additions & 4 deletions deltatech_service_maintenance/i18n/ro.po
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0+e\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-11-21 09:24+0000\n"
"PO-Revision-Date: 2024-11-21 09:24+0000\n"
"POT-Creation-Date: 2025-02-20 11:22+0000\n"
"PO-Revision-Date: 2025-02-20 11:22+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
Expand Down Expand Up @@ -330,7 +330,7 @@ msgstr "Ciclu"
#: model:ir.model.fields,field_description:deltatech_service_maintenance.field_service_order__date
#: model:ir.model.fields,field_description:deltatech_service_maintenance.field_service_warranty__date
msgid "Date"
msgstr "Data sesizare problemă de către client"
msgstr "Dată"

#. module: deltatech_service_maintenance
#: model:ir.model.fields,field_description:deltatech_service_maintenance.field_service_plan__last_call_done_date
Expand Down Expand Up @@ -365,7 +365,7 @@ msgstr "Livrare pentru service"
#: code:addons/deltatech_service_maintenance/models/service_warranty.py:0
#, python-format
msgid "Delivery for warranty"
msgstr ""
msgstr "Creează aviz garanție"

#. module: deltatech_service_maintenance
#: model:ir.model.fields,field_description:deltatech_service_maintenance.field_required_order__display_name
Expand Down Expand Up @@ -778,6 +778,11 @@ msgstr "Livrare nouă"
msgid "New Notification"
msgstr "Sesizare nouă"

#. module: deltatech_service_maintenance
#: model_terms:ir.ui.view,arch_db:deltatech_service_maintenance.view_service_warranty_form
msgid "New recondition transfer"
msgstr "Creează ieșire recondiționare"

#. module: deltatech_service_maintenance
#: model_terms:ir.ui.view,arch_db:deltatech_service_maintenance.view_service_notification_form
#: model_terms:ir.ui.view,arch_db:deltatech_service_maintenance.view_service_warranty_form
Expand Down Expand Up @@ -1011,6 +1016,11 @@ msgstr "paramentru"
msgid "Partner"
msgstr "Partener"

#. module: deltatech_service_maintenance
#: model_terms:ir.ui.view,arch_db:deltatech_service_maintenance.res_config_settings_view_form_stock
msgid "Picking type for reconditions transfers."
msgstr ""

#. module: deltatech_service_maintenance
#: model_terms:ir.ui.view,arch_db:deltatech_service_maintenance.res_config_settings_view_form_stock
msgid "Picking type for warranty transfers."
Expand Down Expand Up @@ -1144,6 +1154,11 @@ msgstr "Motive"
msgid "Recondition"
msgstr "Recondiționare"

#. module: deltatech_service_maintenance
#: model:ir.model.fields,field_description:deltatech_service_maintenance.field_res_config_settings__picking_type_for_recondition
msgid "Recondition picking type"
msgstr ""

#. module: deltatech_service_maintenance
#: model:ir.actions.act_window,name:deltatech_service_maintenance.action_service_recondition
#: model:ir.ui.menu,name:deltatech_service_maintenance.menu_service_recondition
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ <h1 class="title">Deltatech Services Maintenance</h1>
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:e5ab30a4fa5e9b714b6745e17fdfbcbecd28f56a46675d98aa6c0307c3ccbcc2
!! source digest: sha256:78b0e23c54a8ecff440394cf429bb4ce91ba5ea35d4f5d5f13e5d2c6c3c0c38b
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Production/Stable" src="https://img.shields.io/badge/maturity-Production%2FStable-green.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/dhongu/deltatech/tree/14.0/deltatech_service_maintenance"><img alt="dhongu/deltatech" src="https://img.shields.io/badge/github-dhongu%2Fdeltatech-lightgray.png?logo=github" /></a></p>
<dl class="docutils">
Expand Down
35 changes: 26 additions & 9 deletions deltatech_service_maintenance/views/service_warranty_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,15 @@
type="object"
class="oe_highlight"
string="New transfer"
attrs="{'invisible': ['|', ('state','!=','approved'), ('picking_id', '!=', False)]}"
attrs="{'invisible': ['|', '|', ('state','!=','approved'), ('picking_id', '!=', False), ('type', '!=', 'warranty')]}"
/>
<button
name="new_delivery_button"
type="object"
class="oe_highlight"
string="New recondition transfer"
attrs="{'invisible': ['|', '|', ('state','!=','approved'), ('picking_id', '!=', False), ('type', '!=', 'recondition')]}"
groups="deltatech_service.group_warranty_manager"
/>
<button
name="set_new"
Expand Down Expand Up @@ -78,24 +86,33 @@
type="object"
class="oe_highlight"
string="Approve"
attrs="{'invisible': [('state','!=','approval_requested')]}"
attrs="{'invisible': ['|', ('state','!=','approval_requested'), ('type', '!=', 'warranty')]}"
groups="deltatech_service.group_warranty_manager"
/>
<button
name="approve"
type="object"
class="oe_highlight"
string="Approve"
attrs="{'invisible': ['|', ('state','!=','approval_requested'), ('type', '!=', 'recondition')]}"
/>
<button
name="set_done"
type="object"
class="oe_highlight"
string="Set done"
attrs="{'invisible': [('state','!=','approved')]}"
attrs="{'invisible': ['|', ('state','!=','approved'), ('type', '!=', 'warranty')]}"
/>
<button
name="set_done"
type="object"
class="oe_highlight"
string="Set done"
attrs="{'invisible': ['|', ('state','!=','approved'), ('type', '!=', 'recondition')]}"
groups="deltatech_service.group_warranty_manager"
/>
<field name="type" invisible="1" />
<field name="state" widget="statusbar" options="{'clickable': '1'}" />
<!-- <field-->
<!-- name="rec_state"-->
<!-- widget="statusbar"-->
<!-- options="{'clickable': '1'}"-->
<!-- attrs="{'invisible': [('type','!=','recondition')]}"-->
<!-- />-->
</header>
<sheet>
<div class="oe_title">
Expand Down
Loading