[18.0][IMP] delivery_dhl_parcel_de: Added DHL configuration in delive…#253
[18.0][IMP] delivery_dhl_parcel_de: Added DHL configuration in delive…#253hitesh-erpharbor wants to merge 54 commits into18.0from
Conversation
Co-authored-by: Dmytro Kashuba <dmytro.kashuba@solvti.pl>
Co-authored-by: Dmytro Kashuba <dmytro.kashuba@solvti.pl>
Co-authored-by: KDRdev <dmytro.kashuba@solvti.com>
Co-authored-by: KDRdev <dmytro.kashuba@solvti.com>
* Migration of payment_bitcoin to 18.0 --------- Co-authored-by: KDRdev <dmytro.kashuba@solvti.com> Co-authored-by: Jan Suhr <jan@nitrokey.com> Co-authored-by: HItesh Jadav <hitesh.j.erpharbor@gmail.com>
Removed whool-init hook from pre-commit configuration.
* add author Nitrokey * [MIG] Migrated the modules product_icon, website_sale_product_icon from v15 to v18 --------- Co-authored-by: HItesh Jadav <hitesh.j.erpharbor@gmail.com>
--------- Co-authored-by: HItesh Jadav <hitesh.j.erpharbor@gmail.com>
… controller method (#212)
Removed forbidden files checks and OCA hooks from pre-commit config.
#213) * [18.0][MIG] Migrated module website_menu_url_translate from v15 to v18 * [ADD/IMP] Implemented the translation controller and Added the test data file and test .py file * Update author and website fields in manifest * Simplify README by removing usage and credits Removed detailed usage instructions and credits from README. * fix title Updated the formatting of the README to improve consistency. --------- Co-authored-by: jans23 <jans23@users.noreply.github.com>
* [18.0][MIG] Migrated module website_menu_url_translate from v15 to v18 * [ADD/IMP] Implemented the translation controller and Added the test data file and test .py file * Update author and website fields in manifest * [IMP/REM] Implemented the test py file and Remove test data xml file * [IMP] Implemented the formarting to pass the CI tests * [IMP] Implemented the formarting to pass the CI tests * [IMP] Implemented the readme file * fix README --------- Co-authored-by: jans23 <jans23@users.noreply.github.com> Co-authored-by: Jan Suhr <jan@nitrokey.com>
* mail_sound from 15.0 * initial migration * add README, fix syntax * add pyproject.toml * remove whool from pre-commit, pyproject.toml * [18.0][MIG] Migrated the module mail_sound into v18 * [FIX] Implemented the code to pass the CI tests * [IMP] Implemented the file path of js * [IMP] Implemented the code to fixed the CI tests [IMP] Implemented the code [IMP] Implmented the code to fix the CI * [IMP] Commented the .yaml file eslint code to fix the CI * [IMP] Uncomment the .yaml file eslint code * fix path for eslint * update description * fix pylint, eslint * fix linter --------- Co-authored-by: HItesh Jadav <hitesh.j.erpharbor@gmail.com>
* Hide Bitcoin payment method, if no addresses are provided * remove pyproject.toml --------- Co-authored-by: Dmytro Kashuba <dmytro.kashuba@solvti.pl> Co-authored-by: Jan Suhr <jan@nitrokey.com>
…te_description: Migration to v18.0 (#221) * [18.0][MIG] product_attribute_description: migration to v18.0 * [18.0][MIG] website_product_attribute_description: Migration to v18.0 * update descriptions * [18.0][IMP] Display info (i) icon inline next to attribute values. --------- Co-authored-by: jans23 <jans23@users.noreply.github.com>
* [18.0][MIG] sale_order_default_payment_term: Migration to v18.0 * Update website URL in manifest file --------- Co-authored-by: jans23 <jans23@users.noreply.github.com>
#220) * refactor phone validation: remove unused files and implement E164 formatting in res_partner * fix: update website link in manifest and enhance phone formatting logic in res_partner * Refactor README for clarity and conciseness Removed redundant description and cleaned up formatting. * refactor: improve README and manifest formatting for clarity, Fixed CLI * feat: enhance phone validation with comprehensive tests and update author information in manifest; Fixing the pytest issue * fix: update phone number formatting in test cases for consistency in regard to phone_validation_e164 * Update author information in __manifest__.py --------- Co-authored-by: jans23 <jans23@users.noreply.github.com>
* [18.0][MIG] product_label_image: Migration to v18.0 * [IMP] Implememeted the report image format * Update author information in manifest file * [IMP] Remove the light-grey-blue background color behind the product name * [REM] Remove README file * [ADD] Added README file * [ADD] Implemented README file --------- Co-authored-by: jans23 <jans23@users.noreply.github.com>
* [18.0][MIG] account_invoice_send_on_reconcile: Migration to v18.0 * Update README for clarity on module functionality --------- Co-authored-by: jans23 <jans23@users.noreply.github.com>
* [18.0][MIG] mail_activity_portal: Migration to v18.0 * Update website and author information in manifest * [REM] Removed mail_activity_team and mail_activity_board modules from branch * Update README with testing instructions Added testing instructions for portal activity scheduling. --------- Co-authored-by: jans23 <jans23@users.noreply.github.com>
* [18.0][MIG] product_creation_prevention: Migration to v18.0 * Fix formatting in README for product creation module --------- Co-authored-by: jans23 <jans23@users.noreply.github.com>
* Module migration to 18.0 * Update website URL in manifest file * Updated tests and manifest * Ruff checks fixed * README file update and removal of unnecessary description --------- Co-authored-by: Dmytro Kashuba <dmytro.kashuba@solvti.pl> Co-authored-by: jans23 <jans23@users.noreply.github.com>
* add stock_lot_serial_no_default * Update README with serial number column instructions Added note about enabling 'Serial Number' column in delivery orders. * Update website URL in manifest file
* [ADD] datev_export_dtvf_nitrokey * Revise README and Manifest --------- Co-authored-by: jans23 <jans23@users.noreply.github.com>
* Module migration to 18.0 - initial version * Added package weight validation, CI fixes, README file * Pre-commit fixes * Small formatting fix * Pre-commit fix #2 * README, manifest and dependencies update * OAuth2 implementation, merged newer module version from original author * Fix for multiple package types during weight limitation check. Added API secret field to view * Added neutralization script * pre-commit fix * README update * update description --------- Co-authored-by: Dmytro Kashuba <dmytro.kashuba@solvti.pl> Co-authored-by: jans23 <jans23@users.noreply.github.com>
* [ADD] datev_export_xml_nitrokey * create data for tests to work without demo data * fix tests * fix tests * fix syntax --------- Co-authored-by: Holger Brunn <mail@hunki-enterprises.com>
#243) * [18.0][IMP] website_menu_url_translate: Implemented the code to fix the home page route issue * [18.0][IMP] website_menu_url_translate: FIxed the URL conflict issue * [18.0][IMP] website_menu_url_translate: Removed the extra code * [18.0][IMP] website_menu_url_translate: Implemented url method to fix page issue * Clean up main.py by removing unused comments Removed commented-out code for default language URL handling. --------- Co-authored-by: jans23 <jans23@users.noreply.github.com>
* send warning to account manager * [18.0][IMP] payment_bitcoin: Improved the send warning to account manager code --------- Co-authored-by: Hitesh Jadav <hitesh.j.erpharbor@gmail.com>
* refactored, simplified, more odoo * updated readme * imporved muting * null check * add UI check * add audio element to DOM * null check * updated manifest * added additional mute handling * added additional mute handling * added additional mute handling * improved clean up * nullcheck * address various possible errors * address various possible errors * address various possible errors * address various possible errors * address various possible errors * extended clean up * committed to livekit managing audio streams * tied voulme control to audio elements * trigger rebind on connect * changed rebind logic * move rebind to livekit service * Delete odoo.conf * Delete mail_livekit/streamIssue.md * Rename JS file to avoid liner errors * Rename JS file to avoid linter errors * Update author information in manifest * additional cleanup on disconnect --------- Co-authored-by: Dmytro Kashuba @ Solvti <dmitry.kashuba.cv@gmail.com> Co-authored-by: jans23 <jans23@users.noreply.github.com>
Co-authored-by: Dmytro Kashuba <dmytro.kashuba@solvti.com>
…ry method account
…r data from company to delivery account
| from . import delivery_carrier | ||
| from . import package_details | ||
| from . import res_company | ||
| from . import res_company # Tempororily model |
There was a problem hiding this comment.
Why can't we remove this import statement?
There was a problem hiding this comment.
This is because the data comes from the old model and is being used during migration into the new model. We can remove this file after the data migration is completed.
There was a problem hiding this comment.
We're moving the current data from res_company to a temporary table before module is being loaded, so we don't need to have the old model in place ('res.company' in this case). Or am I missing something?
There was a problem hiding this comment.
You're correct. Since the data is now being migrated to a temporary table before the module loads, the old 'res.company' model is no longer required. I have removed it.
| company_id = data.pop("company_id") | ||
| use_dhl = data.pop("use_dhl_parcel_de_shipping_provider") | ||
|
|
||
| if not use_dhl: |
There was a problem hiding this comment.
In pre-migration script we're creating 'temp_dhl_company_data' table based on companies that have this checkbox enabled, so I think these two lines are not needed here.
| continue | ||
|
|
||
| existing = env.ref("delivery_dhl_parcel_de.dhl_carrier_account") | ||
| if existing and existing.use_dhl_parcel_de_shipping_provider: |
There was a problem hiding this comment.
I have updated the code
| string="Use DHL Parcel DE Shipping Provider", | ||
| help="If use DHL Parcel DE shipping provider than value set TRUE.", | ||
| default=False, | ||
| ) # Tempororily field |
There was a problem hiding this comment.
I guess we wanted to use this field for migrating existing credentials, right? Why not just set 'delivery_type' field value? We can then not use this field, for post-migration script as well.
There was a problem hiding this comment.
I removed it because it's no longer needed.
| account_vals = { | ||
| "company_id": company_id, | ||
| "carrier_id": dhl_carrier.id, | ||
| "use_dhl_parcel_de_shipping_provider": True, |
There was a problem hiding this comment.
I'd remove this field and set 'delivery_type' value to 'dhl_parcel_de_provider' instead.
| <record id="dhl_carrier_account" model="carrier.account"> | ||
| <field name="name">DHL Parcel DE Account</field> | ||
| <field name="delivery_type">dhl_parcel_de_provider</field> | ||
| <field name="account">dummy</field> |
There was a problem hiding this comment.
| <field name="account">dummy</field> |
There was a problem hiding this comment.
It's a required field, so we need to set something.
| <field name="name">DHL Parcel DE Account</field> | ||
| <field name="delivery_type">dhl_parcel_de_provider</field> | ||
| <field name="account">dummy</field> | ||
| <field name="password">dummy</field> |
There was a problem hiding this comment.
| <field name="password">dummy</field> |
There was a problem hiding this comment.
It's a required field, so we need to set something.
| continue | ||
|
|
||
| existing = env.ref("delivery_dhl_parcel_de.dhl_carrier_account") | ||
| if existing and existing.use_dhl_parcel_de_shipping_provider: |
There was a problem hiding this comment.
| if existing and existing.use_dhl_parcel_de_shipping_provider: | |
| if existing and existing.account and existing.password: |
There was a problem hiding this comment.
I have implemented it.
| account_vals = { | ||
| "company_id": company_id, | ||
| "carrier_id": dhl_carrier.id, | ||
| "use_dhl_parcel_de_shipping_provider": True, |
There was a problem hiding this comment.
| "use_dhl_parcel_de_shipping_provider": True, |
| from . import delivery_carrier | ||
| from . import package_details | ||
| from . import res_company | ||
| from . import res_company # Tempororily model |
There was a problem hiding this comment.
We're moving the current data from res_company to a temporary table before module is being loaded, so we don't need to have the old model in place ('res.company' in this case). Or am I missing something?
…ry method account