Compare commits

..

2 Commits

Author SHA1 Message Date
jscampucci
7d32cc3009 [WIP] test pre-commit
Some checks failed
pre-commit / pre-commit (pull_request) Failing after 5m59s
2025-09-17 11:34:16 +02:00
98c8a49640 Sync config from odoo-elabore-ci:16.0
Some checks failed
pre-commit / pre-commit (pull_request) Failing after 11m21s
2025-09-17 08:15:31 +00:00
5 changed files with 33 additions and 24 deletions

View File

@@ -15,10 +15,10 @@ jobs:
python-version: "3.11"
- name: Get python version
run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV
# - uses: actions/cache@v4
# with:
# path: ~/.cache/pre-commit
# key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
- uses: actions/cache@v4
with:
path: ~/.cache/pre-commit
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
- name: Install pre-commit
run: pip install pre-commit
- name: Run pre-commit

View File

@@ -48,14 +48,8 @@ repos:
bash -c 'oca-fix-manifest-website "https://git.elabore.coop/elabore/$(basename
$(git rev-parse --show-toplevel))"'
- id: oca-gen-addon-readme
entry:
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'
entry: bash -c 'oca-gen-addon-readme --addons-dir=. --branch=16.0 --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
rev: v0.1.4

View File

@@ -5,14 +5,16 @@
"name": "crm usability misc",
"version": "16.0.1.0.0",
"author": "Elabore",
"website": "https://elabore.coop",
"website": "https://git.elabore.coop/elabore/crm-tools",
"maintainer": "Elabore",
"license": "AGPL-3",
"category": "CRM",
"summary": "Various modifications of CRM app",
# any module necessary for this one to work correctly
"depends": [
"base","crm","sales_team",
"base",
"crm",
"sales_team",
],
# always loaded
"data": [

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<data>
<record id="crm_lead_form_inherit_usability_misc" model="ir.ui.view">
@@ -7,16 +7,29 @@
<field name="inherit_id" ref="crm.crm_lead_view_form" />
<field name="arch" type="xml">
<!-- remove chapter Marketing in page Extra Information -->
<xpath expr="//page[@name='lead']//field[@name='campaign_id']/ancestor::group[1]" position="replace" />
<xpath
expr="//page[@name='lead']//field[@name='campaign_id']/ancestor::group[1]"
position="replace"
/>
<!-- move source_id and referred fields under Tags field -->
<xpath expr="//field[@name='tag_ids']" position="after" >
<field name="source_id"/>
<field name="referred"/>
<xpath expr="//field[@name='tag_ids']" position="after">
<field name="source_id" />
<field name="referred" />
</xpath>
<!-- move team_id under Phone field -->
<xpath expr="//group[@name='Misc']//field[@name='team_id']" position="replace" />
<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
expr="//group[@name='Misc']//field[@name='team_id']"
position="replace"
/>
<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>
</field>
</record>