Compare commits
2 Commits
7d32cc3009
...
18.0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9fe47fab6d | ||
| 9b85bd6483 |
@@ -15,10 +15,10 @@ jobs:
|
|||||||
python-version: "3.11"
|
python-version: "3.11"
|
||||||
- name: Get python version
|
- name: Get python version
|
||||||
run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV
|
run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV
|
||||||
- uses: actions/cache@v4
|
# - uses: actions/cache@v4
|
||||||
with:
|
# with:
|
||||||
path: ~/.cache/pre-commit
|
# path: ~/.cache/pre-commit
|
||||||
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
|
# key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
|
||||||
- name: Install pre-commit
|
- name: Install pre-commit
|
||||||
run: pip install pre-commit
|
run: pip install pre-commit
|
||||||
- name: Run pre-commit
|
- name: Run pre-commit
|
||||||
|
|||||||
@@ -48,8 +48,14 @@ repos:
|
|||||||
bash -c 'oca-fix-manifest-website "https://git.elabore.coop/elabore/$(basename
|
bash -c 'oca-fix-manifest-website "https://git.elabore.coop/elabore/$(basename
|
||||||
$(git rev-parse --show-toplevel))"'
|
$(git rev-parse --show-toplevel))"'
|
||||||
- id: oca-gen-addon-readme
|
- id: oca-gen-addon-readme
|
||||||
entry: bash -c 'oca-gen-addon-readme --addons-dir=. --branch=16.0 --repo-name=$(basename
|
entry:
|
||||||
$(git rev-parse --show-toplevel)) --org-name="Elabore" --if-source-changed --keep-source-digest'
|
bash -c 'oca-gen-addon-readme
|
||||||
|
--addons-dir=.
|
||||||
|
--branch=$(git symbolic-ref
|
||||||
|
refs/remotes/origin/HEAD | sed "s@^refs/remotes/origin/@@")
|
||||||
|
--repo-name=$(basename $(git rev-parse --show-toplevel))
|
||||||
|
--org-name="Elabore"
|
||||||
|
--if-source-changed --keep-source-digest'
|
||||||
|
|
||||||
- repo: https://github.com/OCA/odoo-pre-commit-hooks
|
- repo: https://github.com/OCA/odoo-pre-commit-hooks
|
||||||
rev: v0.1.4
|
rev: v0.1.4
|
||||||
|
|||||||
2
crm_usability_misc/.gitignore
vendored
2
crm_usability_misc/.gitignore
vendored
@@ -1,2 +1,2 @@
|
|||||||
*.*~
|
*.*~
|
||||||
*pyc
|
*pyc
|
||||||
45
crm_usability_misc/README.md
Normal file
45
crm_usability_misc/README.md
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
# CRM Usability Misc
|
||||||
|
|
||||||
|
Various modifications of the CRM app to streamline the lead/opportunity form.
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
Use the standard Odoo module installation procedure to install `crm_usability_misc`.
|
||||||
|
|
||||||
|
### Dependencies
|
||||||
|
|
||||||
|
- `base`
|
||||||
|
- `crm`
|
||||||
|
- `sales_team`
|
||||||
|
|
||||||
|
## Description
|
||||||
|
|
||||||
|
This module customizes the CRM lead/opportunity form view to simplify the layout and improve usability:
|
||||||
|
|
||||||
|
- **Hide Campaign and Medium fields** — Removes the entire Marketing group (`campaign_id`, `medium_id`) from the *Extra Information* tab.
|
||||||
|
- **Move "Source" and "Referred by" under Tags** — Relocates the `source_id` and `referred` fields directly after the `tag_ids` field for better visibility.
|
||||||
|
- **Move "Sales Team" under Phone** — Moves `team_id` from the *Misc* group to the main partner section (before `lost_reason_id`), with team creation and opening disabled (`no_open`, `no_create`).
|
||||||
|
|
||||||
|
## Known Issues / Roadmap
|
||||||
|
|
||||||
|
None yet.
|
||||||
|
|
||||||
|
## Bug Tracker
|
||||||
|
|
||||||
|
Bugs are tracked on [our issues page](https://github.com/elabore-coop/crm-tools/issues). In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smash it by providing detailed feedback.
|
||||||
|
|
||||||
|
## Credits
|
||||||
|
|
||||||
|
### Contributors
|
||||||
|
|
||||||
|
- [Elabore](https://elabore.coop) — Laetitia Da Costa
|
||||||
|
|
||||||
|
### Funders
|
||||||
|
|
||||||
|
The development of this module has been financially supported by:
|
||||||
|
|
||||||
|
- [Elabore](https://elabore.coop)
|
||||||
|
|
||||||
|
### Maintainer
|
||||||
|
|
||||||
|
This module is maintained by [Elabore](https://elabore.coop).
|
||||||
@@ -1,51 +0,0 @@
|
|||||||
===============
|
|
||||||
crm_usability_misc
|
|
||||||
===============
|
|
||||||
|
|
||||||
Various modification of CRM app
|
|
||||||
|
|
||||||
Installation
|
|
||||||
============
|
|
||||||
|
|
||||||
Use Odoo normal module installation procedure to install
|
|
||||||
``crm_usability_misc``.
|
|
||||||
|
|
||||||
Description
|
|
||||||
===========
|
|
||||||
|
|
||||||
- Hide the Campaign and Medium fields
|
|
||||||
- Hove “Source” and “Referred by” under Tags
|
|
||||||
- Move “Sales team” under Phone
|
|
||||||
|
|
||||||
Known issues / Roadmap
|
|
||||||
======================
|
|
||||||
|
|
||||||
None yet.
|
|
||||||
|
|
||||||
Bug Tracker
|
|
||||||
===========
|
|
||||||
|
|
||||||
Bugs are tracked on `our issues website <https://github.com/elabore-coop/crm_usability_misc/issues>`_. In case of
|
|
||||||
trouble, please check there if your issue has already been
|
|
||||||
reported. If you spotted it first, help us smashing it by providing a
|
|
||||||
detailed and welcomed feedback.
|
|
||||||
|
|
||||||
Credits
|
|
||||||
=======
|
|
||||||
|
|
||||||
Contributors
|
|
||||||
------------
|
|
||||||
|
|
||||||
* `Elabore <mailto:laetitia.dacosta@elabore.coop>`
|
|
||||||
|
|
||||||
Funders
|
|
||||||
-------
|
|
||||||
|
|
||||||
The development of this module has been financially supported by:
|
|
||||||
* Elabore (https://elabore.coop)
|
|
||||||
|
|
||||||
|
|
||||||
Maintainer
|
|
||||||
----------
|
|
||||||
|
|
||||||
This module is maintained by Elabore.
|
|
||||||
@@ -2,19 +2,17 @@
|
|||||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
|
|
||||||
{
|
{
|
||||||
"name": "crm usability misc",
|
"name": "CRM Usability Misc",
|
||||||
"version": "16.0.1.0.0",
|
"version": "18.0.1.0.0",
|
||||||
"author": "Elabore",
|
"author": "Elabore",
|
||||||
"website": "https://git.elabore.coop/elabore/crm-tools",
|
"website": "https://elabore.coop",
|
||||||
"maintainer": "Elabore",
|
"maintainer": "Elabore",
|
||||||
"license": "AGPL-3",
|
"license": "AGPL-3",
|
||||||
"category": "CRM",
|
"category": "CRM",
|
||||||
"summary": "Various modifications of CRM app",
|
"summary": "Various modifications of CRM app",
|
||||||
# any module necessary for this one to work correctly
|
# any module necessary for this one to work correctly
|
||||||
"depends": [
|
"depends": [
|
||||||
"base",
|
"base","crm","sales_team",
|
||||||
"crm",
|
|
||||||
"sales_team",
|
|
||||||
],
|
],
|
||||||
# always loaded
|
# always loaded
|
||||||
"data": [
|
"data": [
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<odoo>
|
<odoo>
|
||||||
<data>
|
<data>
|
||||||
<record id="crm_lead_form_inherit_usability_misc" model="ir.ui.view">
|
<record id="crm_lead_form_inherit_usability_misc" model="ir.ui.view">
|
||||||
@@ -7,29 +7,16 @@
|
|||||||
<field name="inherit_id" ref="crm.crm_lead_view_form" />
|
<field name="inherit_id" ref="crm.crm_lead_view_form" />
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<!-- remove chapter Marketing in page Extra Information -->
|
<!-- remove chapter Marketing in page Extra Information -->
|
||||||
<xpath
|
<xpath expr="//page[@name='lead']//field[@name='campaign_id']/ancestor::group[1]" position="replace" />
|
||||||
expr="//page[@name='lead']//field[@name='campaign_id']/ancestor::group[1]"
|
|
||||||
position="replace"
|
|
||||||
/>
|
|
||||||
<!-- move source_id and referred fields under Tags field -->
|
<!-- move source_id and referred fields under Tags field -->
|
||||||
<xpath expr="//field[@name='tag_ids']" position="after">
|
<xpath expr="//field[@name='tag_ids']" position="after" >
|
||||||
<field name="source_id" />
|
<field name="source_id"/>
|
||||||
<field name="referred" />
|
<field name="referred"/>
|
||||||
</xpath>
|
</xpath>
|
||||||
<!-- move team_id under Phone field -->
|
<!-- move team_id under Phone field -->
|
||||||
<xpath
|
<xpath expr="//group[@name='Misc']//field[@name='team_id']" position="replace" />
|
||||||
expr="//group[@name='Misc']//field[@name='team_id']"
|
<xpath expr="//group[@name='opportunity_partner']//field[@name='lost_reason_id']" position="before" >
|
||||||
position="replace"
|
<field name="team_id" options="{'no_open': True, 'no_create': True}" context="{'kanban_view_ref' : 'sales_team.crm_team_view_kanban'}"/>
|
||||||
/>
|
|
||||||
<xpath
|
|
||||||
expr="//group[@name='opportunity_partner']//field[@name='lost_reason_id']"
|
|
||||||
position="before"
|
|
||||||
>
|
|
||||||
<field
|
|
||||||
name="team_id"
|
|
||||||
options="{'no_open': True, 'no_create': True}"
|
|
||||||
context="{'kanban_view_ref' : 'sales_team.crm_team_view_kanban'}"
|
|
||||||
/>
|
|
||||||
</xpath>
|
</xpath>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|||||||
Reference in New Issue
Block a user