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
3f0d2e16924595e05171b970c3f7bbef828d62a0 to 61a8ef4d382aca79f0a8ba234b489774b2fe5391
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
61a8ef4d382aca79f0a8ba234b489774b2fe5391
Select Git revision
Swap
Target
lefilament/cgscop/cgscop_cotisation
Select target project
lefilament/cgscop/cgscop_cotisation
hsilvant/cgscop_cotisation
2 results
3f0d2e16924595e05171b970c3f7bbef828d62a0
Select Git revision
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (5)
[fix] fix errors due to account_payment_order module changes
· ae24d715
Benjamin - Le Filament
authored
2 years ago
ae24d715
[update] change CAE contribution condition
· 42883b23
Benjamin - Le Filament
authored
2 years ago
42883b23
[update] error message
· e8466446
Benjamin - Le Filament
authored
2 years ago
e8466446
[update] payment order attachment_ids view
· 8861fb5b
Benjamin - Le Filament
authored
1 year ago
8861fb5b
sync branch merge branch '14.0' into 14.0-new-process-adh
· 61a8ef4d
Benjamin - Le Filament
authored
1 year ago
61a8ef4d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
models/account_payment_order.py
+3
-3
3 additions, 3 deletions
models/account_payment_order.py
models/res_partner.py
+2
-1
2 additions, 1 deletion
models/res_partner.py
views/account_payment_order.xml
+18
-29
18 additions, 29 deletions
views/account_payment_order.xml
with
23 additions
and
33 deletions
models/account_payment_order.py
View file @
61a8ef4d
...
...
@@ -33,7 +33,8 @@ class AccountPaymentOrder(models.Model):
def
_compute_bank_line_amount
(
self
):
for
po
in
self
:
po
.
bank_line_amount
=
sum
(
po
.
bank_line_ids
.
mapped
(
"
amount_currency
"
))
po
.
bank_line_amount
=
sum
(
po
.
payment_ids
.
filtered
(
lambda
p
:
not
p
.
reversed_entry_id
).
mapped
(
"
amount_total_signed
"
))
def
_compute_attachment_ids
(
self
):
Attachment
=
self
.
env
[
"
ir.attachment
"
]
...
...
@@ -125,8 +126,7 @@ class AccountPaymentOrder(models.Model):
except
Exception
:
raise
UserError
(
_
(
"
Aucun modèle d
'
e-mail n
'
a été trouvé pour envoyer un
"
"
e-mail à la DIRECCTE
"
"
Aucun modèle d
'
e-mail n
'
a été trouvé.
"
)
)
# Get partners
...
...
This diff is collapsed.
Click to expand it.
models/res_partner.py
View file @
61a8ef4d
...
...
@@ -25,6 +25,7 @@ class ResPartner(models.Model):
contribution_type
.
append
(
self
.
env
.
ref
(
"
cgscop_partner.riga_14399
"
))
if
self
.
is_federation_com
:
contribution_type
.
append
(
self
.
env
.
ref
(
"
cgscop_partner.riga_14398
"
))
if
self
.
is_federation_cae
:
# TODO: Mettre à jour avec is_federation_cae après la maj des périodes par la CG
if
self
.
cae
:
contribution_type
.
append
(
self
.
env
.
ref
(
"
cgscop_partner.cotiz_fede_cae
"
))
return
contribution_type
This diff is collapsed.
Click to expand it.
views/account_payment_order.xml
View file @
61a8ef4d
...
...
@@ -78,7 +78,7 @@
</div>
</xpath>
<!-- Sheet Buttons -->
<xpath
expr=
"//field[@name='
bank_line
_count']"
position=
"after"
>
<xpath
expr=
"//field[@name='
payment
_count']"
position=
"after"
>
<field
name=
"payment_line_amount"
/>
<field
name=
"bank_line_amount"
/>
<button
...
...
@@ -119,44 +119,33 @@
<!-- Affichage des fichers XML -->
<xpath
expr=
"//notebook"
position=
"inside"
>
<page
name=
"attachments"
string=
"Fichiers de prélèvements"
>
<field
name=
"attachment_ids"
>
<tree>
<field
name=
"attachment_ids"
readonly=
"1"
mode=
"tree"
>
<tree
create=
"0"
edit=
"0"
>
<field
name=
"create_date"
/>
<field
name=
"name"
/>
<field
name=
"type"
/>
<field
name=
"datas"
filename=
"
datas_fname
"
/>
<field
name=
"datas"
filename=
"
name"
widget=
"binary
"
/>
<field
name=
"create_uid"
/>
<!-- <button-->
<!-- name="download_sdd_file"-->
<!-- type="object"-->
<!-- string="Télécharger le fichier"-->
<!-- class="btn-sm btn-o-info"-->
<!-- />-->
</tree>
<form>
<h1><field
name=
"name"
/></h1>
<h1><field
name=
"name"
/></h1>
<group>
<group>
<field
name=
"datas"
filename=
"name"
attrs=
"{'invisible':[('type','=','url')]}"
string=
"Télécharger le fichier"
/>
<field
name=
"name"
invisible=
"1"
attrs=
"{'invisible':[('type','=','url')]}"
class=
"oe_inline oe_right"
/>
<field
name=
"url"
widget=
"url"
attrs=
"{'invisible':[('type','=','binary')]}"
/>
<field
name=
"mimetype"
groups=
"base.group_no_one"
/>
<field
name=
"type"
/>
<field
name=
"datas"
filename=
"name"
attrs=
"{'invisible':[('type','=','url')]}"
string=
"Télécharger le fichier"
/>
<field
name=
"name"
invisible=
"1"
attrs=
"{'invisible':[('type','=','url')]}"
class=
"oe_inline oe_right"
/>
<field
name=
"url"
widget=
"url"
attrs=
"{'invisible':[('type','=','binary')]}"
/>
<field
name=
"mimetype"
groups=
"base.group_no_one"
/>
<field
name=
"type"
/>
</group>
<group>
<field
name=
"create_uid"
/>
<field
name=
"create_date"
/>
<field
name=
"create_uid"
/>
<field
name=
"create_date"
/>
</group>
</group>
</form>
...
...
This diff is collapsed.
Click to expand it.