Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cgscop_cotisation
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Le Filament
Confédération Générale des SCOP
cgscop_cotisation
Compare revisions
908ffbcd421bd9d9fd1d39fd1ac6b63808a6a974 to 14.0
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
lefilament/cgscop/cgscop_cotisation
Select target project
No results found
14.0
Select Git revision
Swap
Target
hsilvant/cgscop_cotisation
Select target project
lefilament/cgscop/cgscop_cotisation
hsilvant/cgscop_cotisation
2 results
908ffbcd421bd9d9fd1d39fd1ac6b63808a6a974
Select Git revision
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
wizard/account_payment_line_create_view.xml
+29
-0
29 additions, 0 deletions
wizard/account_payment_line_create_view.xml
wizard/scop_deces_wizard.py
+31
-0
31 additions, 0 deletions
wizard/scop_deces_wizard.py
with
60 additions
and
0 deletions
wizard/account_payment_line_create_view.xml
0 → 100644
View file @
2fe48f13
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<data>
<record
id=
"account_payment_line_create_form"
model=
"ir.ui.view"
>
<field
name=
"name"
>
account_payment_line_create.form
</field>
<field
name=
"model"
>
account.payment.line.create
</field>
<field
name=
"inherit_id"
ref=
"account_payment_order.account_payment_line_create_form"
/>
<field
name=
"arch"
type=
"xml"
>
<xpath
expr=
"//field[@name='due_date']"
position=
"before"
>
<field
name=
"start_date"
attrs=
"{'invisible': [('date_type', '!=', 'due')]}"
/>
</xpath>
<xpath
expr=
"//field[@name='journal_ids']"
position=
"after"
>
<field
name=
"ur_ids"
widget=
"many2many_tags"
options=
"{'no_create': 1, 'no_edit': 1}"
placeholder=
"Laisser vide pour toutes les UR"
/>
</xpath>
</field>
</record>
</data>
</odoo>
This diff is collapsed.
Click to expand it.
wizard/scop_deces_wizard.py
0 → 100644
View file @
2fe48f13
# © 2020 Le Filament (<http://www.le-filament.com>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from
odoo
import
models
class
ScopDecesWizard
(
models
.
TransientModel
):
_inherit
=
"
scop.deces.wizard
"
def
deces_action
(
self
):
super
().
deces_action
()
partner_id
=
self
.
env
[
"
res.partner
"
].
browse
(
self
.
partner_id
)
mandate_ids
=
self
.
env
[
"
account.banking.mandate
"
].
search
(
[
(
"
partner_id
"
,
"
=
"
,
partner_id
.
id
),
(
"
state
"
,
"
=
"
,
"
valid
"
),
(
"
company_id
"
,
"
=
"
,
self
.
env
.
company
.
id
),
]
)
if
mandate_ids
:
for
mandate
in
mandate_ids
:
mandate
.
update
({
"
state
"
:
"
expired
"
})
invoice_ids
=
self
.
env
[
"
account.move
"
].
search
(
[
(
"
mandate_id
"
,
"
=
"
,
mandate
.
id
),
(
"
move_type
"
,
"
in
"
,
(
"
out_invoice
"
,
"
out_refund
"
)),
(
"
state
"
,
"
in
"
,
(
"
draft
"
,
"
posted
"
)),
(
"
payment_state
"
,
"
in
"
,
(
"
draft
"
,
"
not_paid
"
,
"
partial
"
)),
]
)
mandate
.
_remove_invoice_mandate
(
invoice_ids
)
This diff is collapsed.
Click to expand it.
Prev
1
2
Next