Apply changes of various PRs #4
Open
tarteo wants to merge 1020 commits intoacsone:18.0-mig-subscription_ocafrom
Open
Apply changes of various PRs #4tarteo wants to merge 1020 commits intoacsone:18.0-mig-subscription_ocafrom
tarteo wants to merge 1020 commits intoacsone:18.0-mig-subscription_ocafrom
Conversation
acsonefho
requested changes
May 23, 2025
|
|
||
| <data noupdate="1"> | ||
| <record id="subscription_stage_draft" model="sale.subscription.stage"> | ||
| <!-- <field eval="True" name="active"/> --> |
| </record> | ||
|
|
||
| <record id="subscription_stage_in_progress" model="sale.subscription.stage"> | ||
| <!-- <field eval="True" name="active"/> --> |
| </record> | ||
|
|
||
| <record id="subscription_stage_closed" model="sale.subscription.stage"> | ||
| <!-- <field eval="True" name="active"/> --> |
| </data> | ||
|
|
||
| <record id="close_reason_expensive" model="sale.subscription.close.reason"> | ||
| <!-- <field eval="True" name="active"/> --> |
| </record> | ||
|
|
||
| <record id="close_reason_requirement" model="sale.subscription.close.reason"> | ||
| <!-- <field eval="True" name="active"/> --> |
| </record> | ||
|
|
||
| <record id="close_reason_use" model="sale.subscription.close.reason"> | ||
| <!-- <field eval="True" name="active"/> --> |
| </record> | ||
|
|
||
| <record id="close_reason_other" model="sale.subscription.close.reason"> | ||
| <!-- <field eval="True" name="active"/> --> |
| action = self.env["ir.actions.act_window"]._for_xml_id( | ||
| "subscription_oca.sale_subscription_action" | ||
| ) | ||
| action["domain"] = [("id", "=", self.subscription_id.id)] |
There was a problem hiding this comment.
I suppose the goal is to display the related form view.
You can use:
return self.subscription_id.get_formview_action()
| today = date.today() | ||
| for subscription in self.search([]): | ||
| for subscription in self.search([], order="recurring_next_date asc"): | ||
| subscription = subscription.with_company(subscription.company_id) |
| closed_stage = self.env["sale.subscription.stage"].search( | ||
| [("type", "=", "post")], limit=1 | ||
| ) | ||
| self.close_reason_id = close_reason_id |
There was a problem hiding this comment.
self.write({
"close_reason_id": close_reason_id,
"stage_id": closed_stage.id,
})
|
Thank you @tarteo for your contribution 💪 Just minor changes 🙏 |
|
@tarteo we have to abandon our migration PR because we no longer need it and don't have the time. Feel free to apply the requested changes and create your own PR to 18, I think we're pretty close. |
24 tasks
Author
|
Alright, well nonetheless thanks for your review and time! I'll apply your suggestions when I'll create a new PR. Have a nice weekend! |
105954a to
996eb61
Compare
[UPD] Update product_contract_variable_quantity.pot [UPD] README.rst
Currently translated at 100.0% (7 of 7 strings) Translation: contract-12.0/contract-12.0-product_contract_variable_quantity Translate-URL: https://translation.odoo-community.org/projects/contract-12-0/contract-12-0-product_contract_variable_quantity/it/
Currently translated at 100.0% (7 of 7 strings) Translation: contract-12.0/contract-12.0-product_contract_variable_quantity Translate-URL: https://translation.odoo-community.org/projects/contract-12-0/contract-12-0-product_contract_variable_quantity/pt_BR/
Currently translated at 100.0% (7 of 7 strings) Translation: contract-12.0/contract-12.0-product_contract_variable_quantity Translate-URL: https://translation.odoo-community.org/projects/contract-12-0/contract-12-0-product_contract_variable_quantity/pt/
Currently translated at 100.0% (7 of 7 strings) Translation: contract-12.0/contract-12.0-product_contract_variable_quantity Translate-URL: https://translation.odoo-community.org/projects/contract-12-0/contract-12-0-product_contract_variable_quantity/pt/
…ate_id [UPD] README.rst [UPD] README.rst
Currently translated at 100.0% (7 of 7 strings) Translation: contract-12.0/contract-12.0-product_contract_variable_quantity Translate-URL: https://translation.odoo-community.org/projects/contract-12-0/contract-12-0-product_contract_variable_quantity/pt_BR/
Currently translated at 100.0% (7 of 7 strings) Translation: contract-12.0/contract-12.0-product_contract_variable_quantity Translate-URL: https://translation.odoo-community.org/projects/contract-12-0/contract-12-0-product_contract_variable_quantity/fr/
baad433 to
150c702
Compare
Currently translated at 95.7% (159 of 166 strings) Translation: contract-16.0/contract-16.0-subscription_oca Translate-URL: https://translation.odoo-community.org/projects/contract-16-0/contract-16-0-subscription_oca/nl/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: contract-17.0/contract-17.0-subscription_oca Translate-URL: https://translation.odoo-community.org/projects/contract-17-0/contract-17-0-subscription_oca/
Currently translated at 100.0% (163 of 163 strings) Translation: contract-17.0/contract-17.0-subscription_oca Translate-URL: https://translation.odoo-community.org/projects/contract-17-0/contract-17-0-subscription_oca/it/
Currently translated at 92.6% (151 of 163 strings) Translation: contract-17.0/contract-17.0-subscription_oca Translate-URL: https://translation.odoo-community.org/projects/contract-17-0/contract-17-0-subscription_oca/fi/ Added translation using Weblate (Finnish)
Currently translated at 61.3% (100 of 163 strings) Translation: contract-17.0/contract-17.0-subscription_oca Translate-URL: https://translation.odoo-community.org/projects/contract-17-0/contract-17-0-subscription_oca/tr/ Translated using Weblate (Turkish) Currently translated at 58.8% (96 of 163 strings) Translation: contract-17.0/contract-17.0-subscription_oca Translate-URL: https://translation.odoo-community.org/projects/contract-17-0/contract-17-0-subscription_oca/tr/ Added translation using Weblate (Turkish)
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: contract-17.0/contract-17.0-subscription_oca Translate-URL: https://translation.odoo-community.org/projects/contract-17-0/contract-17-0-subscription_oca/
Currently translated at 100.0% (164 of 164 strings) Translation: contract-17.0/contract-17.0-subscription_oca Translate-URL: https://translation.odoo-community.org/projects/contract-17-0/contract-17-0-subscription_oca/it/
Currently translated at 100.0% (164 of 164 strings) Translation: contract-17.0/contract-17.0-subscription_oca Translate-URL: https://translation.odoo-community.org/projects/contract-17-0/contract-17-0-subscription_oca/tr/
150c702 to
54f1d93
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.