-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
16.0 mig agreement #7
Conversation
we move the is_template field definition and the agreement.type model from the agreement_legal module to the agreement module. The fields are not displayed by default, unless the feature is enabled through a technical feature group, this is configurable in the agreement_sale module (because agreement in itself has no UI, and agreement_legal enables the feature by default)
- The `agreement` model now features mail and activities from its base module. - The `agreement_legal` module doesn't need to add mail support now. - Add activities to form views. @Tecnativa TT22477
Update agreement and agreement_sale to restore the behavior of v10
Currently translated at 88.4% (61 of 69 strings) Translation: contract-14.0/contract-14.0-agreement Translate-URL: https://translation.odoo-community.org/projects/contract-14-0/contract-14-0-agreement/fr_FR/
Currently translated at 15.9% (11 of 69 strings) Translation: contract-14.0/contract-14.0-agreement Translate-URL: https://translation.odoo-community.org/projects/contract-14-0/contract-14-0-agreement/nl/
Currently translated at 100.0% (69 of 69 strings) Translation: contract-14.0/contract-14.0-agreement Translate-URL: https://translation.odoo-community.org/projects/contract-14-0/contract-14-0-agreement/es_AR/
Currently translated at 100.0% (70 of 70 strings) Translation: contract-14.0/contract-14.0-agreement Translate-URL: https://translation.odoo-community.org/projects/contract-14-0/contract-14-0-agreement/es_AR/
Currently translated at 100.0% (76 of 76 strings) Translation: contract-14.0/contract-14.0-agreement Translate-URL: https://translation.odoo-community.org/projects/contract-14-0/contract-14-0-agreement/es_AR/
Currently translated at 34.2% (26 of 76 strings) Translation: contract-14.0/contract-14.0-agreement Translate-URL: https://translation.odoo-community.org/projects/contract-14-0/contract-14-0-agreement/ca/
Currently translated at 1.3% (1 of 76 strings) Translation: contract-14.0/contract-14.0-agreement Translate-URL: https://translation.odoo-community.org/projects/contract-14-0/contract-14-0-agreement/it/
Currently translated at 100.0% (76 of 76 strings) Translation: contract-14.0/contract-14.0-agreement Translate-URL: https://translation.odoo-community.org/projects/contract-14-0/contract-14-0-agreement/es_AR/
Currently translated at 100.0% (76 of 76 strings) Translation: contract-14.0/contract-14.0-agreement Translate-URL: https://translation.odoo-community.org/projects/contract-14-0/contract-14-0-agreement/ca/
Currently translated at 59.2% (45 of 76 strings) Translation: contract-14.0/contract-14.0-agreement Translate-URL: https://translation.odoo-community.org/projects/contract-14-0/contract-14-0-agreement/it/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: agreement-15.0/agreement-15.0-agreement Translate-URL: https://translation.odoo-community.org/projects/agreement-15-0/agreement-15-0-agreement/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: agreement-15.0/agreement-15.0-agreement Translate-URL: https://translation.odoo-community.org/projects/agreement-15-0/agreement-15-0-agreement/
Currently translated at 59.2% (45 of 76 strings) Translation: agreement-15.0/agreement-15.0-agreement Translate-URL: https://translation.odoo-community.org/projects/agreement-15-0/agreement-15-0-agreement/it/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have some doubts, May I ask for your answer 😄 ?
<field | ||
name="partner_id" | ||
attrs="{'required': [('is_template', '=', False)]}" | ||
groups="agreement.group_use_agreement_template" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you need this group now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
He added this group because the attr need the value of is_template but it is protected by a group. I prefer to remove the group on partner_id and add before the field is_template with invisible="1". In this way, the result of the attr can be evaluated by odoo.
groups="agreement.group_use_agreement_template" | |
<field name="is_template" invisible="1 /> | |
<field | |
name="partner_id" | |
attrs="{'required': [('is_template', '=', False)]}" | |
/> |
attrs="{'invisible': True}" | ||
/> | ||
</notebook> | ||
<!-- <notebook>--> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are you commenting this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good question
<field | ||
name="partner_id" | ||
attrs="{'required': [('is_template', '=', False)]}" | ||
groups="agreement.group_use_agreement_template" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
He added this group because the attr need the value of is_template but it is protected by a group. I prefer to remove the group on partner_id and add before the field is_template with invisible="1". In this way, the result of the attr can be evaluated by odoo.
groups="agreement.group_use_agreement_template" | |
<field name="is_template" invisible="1 /> | |
<field | |
name="partner_id" | |
attrs="{'required': [('is_template', '=', False)]}" | |
/> |
attrs="{'invisible': True}" | ||
/> | ||
</notebook> | ||
<!-- <notebook>--> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good question
@@ -0,0 +1 @@ | |||
../../../../agreement |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should comes in a separated commit named [MIG] agreement: pre-commit execution
@@ -0,0 +1,6 @@ | |||
import setuptools |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should comes in a separated commit named [MIG] agreement: pre-commit execution
@@ -0,0 +1 @@ | |||
../../../../agreement |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should comes in a separated commit named [MIG] agreement: pre-commit execution
@@ -0,0 +1,6 @@ | |||
import setuptools |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should comes in a separated commit named [MIG] agreement: pre-commit execution
There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. |
Closing as merged in #12 |
No description provided.