Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
odoo
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cooperatic-foodcoops
odoo
Commits
5a03d422
Commit
5a03d422
authored
Jun 06, 2024
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Merge branch…"
This reverts merge request
!74
parent
c649eae1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
26 deletions
+2
-26
__openerp__.py
lacagette_addons/lacagette_membership/__openerp__.py
+1
-2
res_partner.py
lacagette_addons/lacagette_membership/models/res_partner.py
+1
-7
actions.xml
lacagette_addons/lacagette_membership/views/actions.xml
+0
-17
No files found.
lacagette_addons/lacagette_membership/__openerp__.py
View file @
5a03d422
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
#
#
'category'
:
'Uncategorized'
,
'category'
:
'Uncategorized'
,
'version'
:
'0.0.
7.2
'
,
'version'
:
'0.0.
6
'
,
# any module necessary for this one to work correctly
# any module necessary for this one to work correctly
'depends'
:
[
'base'
,
'coop_membership'
,
'coop_shift'
],
'depends'
:
[
'base'
,
'coop_membership'
,
'coop_shift'
],
...
@@ -27,7 +27,6 @@
...
@@ -27,7 +27,6 @@
'data/ir_config_parameter_data.xml'
,
'data/ir_config_parameter_data.xml'
,
'static/src/xml/templates.xml'
,
'static/src/xml/templates.xml'
,
'views/res_partner.xml'
,
'views/res_partner.xml'
,
'views/actions.xml'
],
],
'installable'
:
True
,
'installable'
:
True
,
...
...
lacagette_addons/lacagette_membership/models/res_partner.py
View file @
5a03d422
...
@@ -18,7 +18,7 @@ EXTRA_COOPERATIVE_STATE_SELECTION = [
...
@@ -18,7 +18,7 @@ EXTRA_COOPERATIVE_STATE_SELECTION = [
(
'vacation'
,
'On Vacation'
),
(
'vacation'
,
'On Vacation'
),
(
'up_to_date'
,
'Up to date'
),
(
'up_to_date'
,
'Up to date'
),
(
'alert'
,
'Alert'
),
(
'alert'
,
'Alert'
),
(
'suspended'
,
'Suspended'
),
# translated as Rattrapage in LaCagette external app. context
(
'suspended'
,
'Suspended'
),
(
'delay'
,
'Delay'
),
(
'delay'
,
'Delay'
),
(
'blocked'
,
'Blocked'
),
(
'blocked'
,
'Blocked'
),
(
'unpayed'
,
'Unpayed'
),
(
'unpayed'
,
'Unpayed'
),
...
@@ -44,12 +44,6 @@ class ResPartner(models.Model):
...
@@ -44,12 +44,6 @@ class ResPartner(models.Model):
"Number of shift done with both of the associate"
,
"Number of shift done with both of the associate"
,
default
=
0
)
default
=
0
)
@api.multi
def
recompute_member_states
(
self
):
for
record
in
self
:
record
.
_compute_working_state
()
record
.
_compute_cooperative_state
()
@api.model
@api.model
def
run_process_target_status
(
self
):
def
run_process_target_status
(
self
):
"""Method called by cron task"""
"""Method called by cron task"""
...
...
lacagette_addons/lacagette_membership/views/actions.xml
deleted
100644 → 0
View file @
c649eae1
<?xml version="1.0"?>
<odoo>
<record
id=
"res_partner_recompute_cooperative_state"
model=
"ir.actions.server"
>
<field
name=
"name"
>
Recompute member status
</field>
<field
name=
"model_id"
ref=
"lacagette_membership.model_res_partner"
/>
<field
name=
"state"
>
code
</field>
<field
name=
"code"
>
action = self.recompute_member_states(cr, uid, context.get('active_ids', []), context=context)
</field>
</record>
<record
id=
"action_recompute_partner_status"
model=
"ir.values"
>
<field
name=
"model_id"
ref=
"base.model_res_partner"
/>
<field
name=
"name"
>
Recompute member status
</field>
<field
name=
"key2"
>
client_action_multi
</field>
<field
name=
"value"
eval=
"'ir.actions.server,%d'%res_partner_recompute_cooperative_state"
/>
<field
name=
"key"
>
action
</field>
<field
name=
"model"
>
res.partner
</field>
</record>
</odoo>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment