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

16.0 mig agreement #7

Closed
wants to merge 38 commits into from
Closed

16.0 mig agreement #7

wants to merge 38 commits into from

Conversation

vibhascs
Copy link

No description provided.

ygol and others added 30 commits January 11, 2023 16:19
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/
oca-ci and others added 8 commits January 11, 2023 16:19
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/
Copy link

@sanchonuria sanchonuria left a 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"

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?

Copy link
Member

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.

Suggested change
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>-->

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?

Copy link
Member

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"
Copy link
Member

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.

Suggested change
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>-->
Copy link
Member

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
Copy link
Member

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
Copy link
Member

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
Copy link
Member

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
Copy link
Member

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

@rousseldenis
Copy link
Sponsor Contributor

@vibhascs Do you mind if we move to #12 ?

@github-actions
Copy link

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.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Jun 25, 2023
@gdgellatly
Copy link

Closing as merged in #12

@gdgellatly gdgellatly closed this Jul 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale PR/Issue without recent activity, it'll be soon closed automatically.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet