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

[17.0][MIG] crm_operating_unit: Migration to 17.0 #692

Merged
merged 26 commits into from
Aug 6, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
5e0186b
[ADD] migrated crm-operating-unit to 9.0
SerpentCS Aug 23, 2016
3638947
[ADD] added Readme file and minor fixes
SerpentCS Aug 29, 2016
a1e054b
[IMP] Added Copyrights in xml files and made minor changes.
SerpentCS Sep 14, 2016
8897d8e
[IMP]Style issues and change field position in view
AaronHForgeFlow Sep 15, 2016
397cf24
[IMP] added domain to see only OUs form that company.
AaronHForgeFlow Sep 15, 2016
9d04a93
[FIX] PEP8 issues
AaronHForgeFlow Sep 15, 2016
05e2c8e
[MIG] Make modules uninstallable
pedrobaeza Oct 6, 2016
739efb9
[MIG] Rename manifest files
pedrobaeza Oct 6, 2016
dabe947
[MIG] crm_operating_unit to v10.0
LoisRForgeFlow Jan 26, 2017
2ce9ba7
[MIG] Migrate crm_operating_unit to v12
AdriaGForgeFlow Jan 22, 2019
ec0bb58
[IMP] crm_operating_unit: black, isort
alan196 Feb 12, 2020
1b1e7d2
[MIG] crm_operating_unit: Migration to V13
alan196 Feb 12, 2020
0a7bc97
Added translation using Weblate (Spanish)
alan196 Feb 15, 2020
3eadb60
Added translation using Weblate (Spanish (Mexico))
alan196 Feb 15, 2020
4b9e360
Translated using Weblate (Spanish (Mexico))
alan196 Feb 15, 2020
a3d2f6f
pre-commit update
OCA-git-bot Mar 14, 2020
317d077
[IMP] crm_operating_unit: black, isort, prettier
alan196 Oct 10, 2020
db811c3
[MIG] crm_operating_unit: Migration to 14.0
alan196 Oct 10, 2020
54adb5a
[IMP] update dotfiles [ci skip]
OCA-git-bot Mar 31, 2022
513d61f
Added translation using Weblate (French)
kh-badep Jun 28, 2022
78dfae6
Translated using Weblate (French)
kh-badep Jun 28, 2022
00e3a31
[MIG] Migreted crm_operating_unit in v15
Rajan-SCS Jan 13, 2023
7638958
Update translation files
weblate Oct 9, 2023
1de0ec7
Translated using Weblate (Spanish)
Ivorra78 Nov 2, 2023
3160712
[IMP] crm_operating_unit: pre-commit auto fixes
traitrantrobz Jun 20, 2024
436759f
[MIG] crm_operating_unit: Migration to 17.0
traitrantrobz Jun 26, 2024
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
1 change: 1 addition & 0 deletions crm_operating_unit/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ Contributors
- ForgeFlow S.L. <contact@forgeflow.com>
- Serpent Consulting Services Pvt. Ltd. <support@serpentcs.com>
- Jarsa Sistemas, S.A. de C.V. <info@jarsa.com.mx>
- Tran Thanh Trai <traitt@trobz.com>

Maintainers
-----------
Expand Down
2 changes: 1 addition & 1 deletion crm_operating_unit/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

{
"name": "Operating Unit in CRM",
"version": "15.0.1.0.0",
"version": "17.0.1.0.0",
"author": "ForgeFlow, "
"Serpent Consulting Services Pvt. Ltd.,"
"Odoo Community Association (OCA)",
Expand Down
1 change: 1 addition & 0 deletions crm_operating_unit/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
- ForgeFlow S.L. \<<contact@forgeflow.com>\>
- Serpent Consulting Services Pvt. Ltd. \<<support@serpentcs.com>\>
- Jarsa Sistemas, S.A. de C.V. \<<info@jarsa.com.mx>\>
- Tran Thanh Trai \<<traitt@trobz.com>\>
3 changes: 1 addition & 2 deletions crm_operating_unit/security/crm_security.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
<record id="ir_rule_crm_lead_allowed_operating_units" model="ir.rule">
<field name="model_id" ref="crm.model_crm_lead" />
<field name="domain_force">
['|',('operating_unit_id','=',False),('operating_unit_id','in',[g.id for g
in user.operating_unit_ids])]
['|',('operating_unit_id','=',False),('operating_unit_id','in',operating_unit_ids)]
</field>
<field name="name">Leads from allowed operating units</field>
<field name="global" eval="True" />
Expand Down
1 change: 1 addition & 0 deletions crm_operating_unit/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,7 @@ <h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
<li>ForgeFlow S.L. &lt;<a class="reference external" href="mailto:contact&#64;forgeflow.com">contact&#64;forgeflow.com</a>&gt;</li>
<li>Serpent Consulting Services Pvt. Ltd. &lt;<a class="reference external" href="mailto:support&#64;serpentcs.com">support&#64;serpentcs.com</a>&gt;</li>
<li>Jarsa Sistemas, S.A. de C.V. &lt;<a class="reference external" href="mailto:info&#64;jarsa.com.mx">info&#64;jarsa.com.mx</a>&gt;</li>
<li>Tran Thanh Trai &lt;<a class="reference external" href="mailto:traitt&#64;trobz.com">traitt&#64;trobz.com</a>&gt;</li>
</ul>
</div>
<div class="section" id="maintainers">
Expand Down
2 changes: 1 addition & 1 deletion crm_operating_unit/tests/test_crm_operating_unit.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

class TestCrmOperatingUnit(common.TransactionCase):
def setUp(self):
super(TestCrmOperatingUnit, self).setUp()
super().setUp()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@traitrantrobz can you please update the test initialization:

@classmethod
    def setUpClass(cls):
        super().setUpClass()
        cls.env = cls.env(context=dict(cls.env.context, tracking_disable=True))

self.res_users_model = self.env["res.users"]
self.crm_lead_model = self.env["crm.lead"]
self.crm_team_model = self.env["crm.team"]
Expand Down
16 changes: 15 additions & 1 deletion crm_operating_unit/views/crm_lead_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,21 @@
<field name="model">crm.lead</field>
<field name="inherit_id" ref="crm.crm_lead_view_form" />
<field name="arch" type="xml">
<xpath expr="//field[@name='team_id']" position="after">
<xpath
expr="//field[@name='tag_ids']/../field[@name='user_id']"
position="after"
>
<field
name="operating_unit_id"
groups="operating_unit.group_multi_operating_unit"
domain="[('company_id','=', company_id), ('user_ids', 'in', uid)]"
options="{'no_create': True}"
/>
</xpath>
<xpath
expr="//field[@name='team_id']/../field[@name='user_id']"
position="after"
>
<field
name="operating_unit_id"
groups="operating_unit.group_multi_operating_unit"
Expand Down
Loading