robin.keunen
5 years ago
57 changed files with 4494 additions and 3112 deletions
-
13easy_my_coop/data/easy_my_coop_data.xml
-
116easy_my_coop/data/mail_template_data.xml
-
4easy_my_coop/data/paperformat.xml
-
30easy_my_coop/demo/coop.xml
-
6easy_my_coop/demo/users.xml
-
35easy_my_coop/report/cooperator_certificat_G001.xml
-
136easy_my_coop/report/cooperator_invoice_G002.xml
-
236easy_my_coop/report/cooperator_register_G001.xml
-
206easy_my_coop/report/cooperator_subscription_G001.xml
-
68easy_my_coop/report/easy_my_coop_report.xml
-
65easy_my_coop/report/layout.xml
-
6easy_my_coop/security/res_groups.xml
-
148easy_my_coop/views/account_invoice_view.xml
-
24easy_my_coop/views/account_journal_view.xml
-
145easy_my_coop/views/cooperator_register_view.xml
-
20easy_my_coop/views/email_template_view.xml
-
62easy_my_coop/views/menus.xml
-
224easy_my_coop/views/operation_request_view.xml
-
285easy_my_coop/views/product_view.xml
-
63easy_my_coop/views/res_company_view.xml
-
396easy_my_coop/views/res_partner_view.xml
-
301easy_my_coop/views/subscription_request_view.xml
-
43easy_my_coop/wizard/cooperative_history_wizard.xml
-
41easy_my_coop/wizard/create_subscription_from_partner.xml
-
27easy_my_coop/wizard/update_partner_info.xml
-
18easy_my_coop/wizard/update_share_line.xml
-
17easy_my_coop/wizard/validate_subscription_request.xml
-
56easy_my_coop_ch/views/subscription_template.xml
-
179easy_my_coop_dividend/views/dividend_views.xml
-
8easy_my_coop_eater/view/product_view.xml
-
27easy_my_coop_export_xlsx/wizard/export_global_wizard.xml
-
154easy_my_coop_fr/views/certificate_template.xml
-
23easy_my_coop_fr/views/layout_template.xml
-
24easy_my_coop_fr/views/subscription_template.xml
-
33easy_my_coop_loan/data/mail_template_data.xml
-
6easy_my_coop_loan/demo/coop.xml
-
451easy_my_coop_loan/views/loan_view.xml
-
14easy_my_coop_loan/views/menus.xml
-
85easy_my_coop_loan/views/partner_view.xml
-
12easy_my_coop_loan_website/data/website_loan_data.xml
-
123easy_my_coop_loan_website/template/loan_issue_template.xml
-
11easy_my_coop_taxshelter_report/data/mail_template_data.xml
-
6easy_my_coop_taxshelter_report/data/scheduler_data.xml
-
19easy_my_coop_taxshelter_report/demo/tax_shelter_demo.xml
-
32easy_my_coop_taxshelter_report/reports/tax_shelter_report.xml
-
101easy_my_coop_taxshelter_report/reports/tax_shelter_resold_report.xml
-
186easy_my_coop_taxshelter_report/reports/tax_shelter_shares_report.xml
-
157easy_my_coop_taxshelter_report/reports/tax_shelter_subscription_report.xml
-
44easy_my_coop_taxshelter_report/views/tax_shelter_declaration_view.xml
-
1690easy_my_coop_website/views/subscription_template.xml
-
348easy_my_coop_website_portal/views/easy_my_coop_website_portal_templates.xml
-
179easy_my_coop_website_taxshelter/views/easy_my_coop_website_taxshelter_templates.xml
-
27partner_age/view/partner_view.xml
-
375theme_light/report/header_report_G002.xml
-
417theme_light/views/layout_template.xml
-
73website_recaptcha_reloaded/views/res_config.xml
-
11website_recaptcha_reloaded/views/website_view.xml
@ -1,121 +1,145 @@ |
|||
<odoo> |
|||
<template id="cooperator_register_G001"> |
|||
<t t-call="web.html_container"> |
|||
<template id="cooperator_register_G001"> |
|||
<t t-call="web.html_container"> |
|||
|
|||
<t t-set="data_report_margin_top" t-value="5"/> |
|||
<t t-set="data_report_header_spacing" t-value="0"/> |
|||
<t t-set="data_report_dpi" t-value="110"/> |
|||
<t t-set="data_report_margin_top" t-value="5"/> |
|||
<t t-set="data_report_header_spacing" t-value="0"/> |
|||
<t t-set="data_report_dpi" t-value="110"/> |
|||
|
|||
<!--<t t-call="theme_light.report_layout_002">--> |
|||
<!--<t t-call="theme_light.report_layout_002">--> |
|||
|
|||
<div class="page"> |
|||
<head> |
|||
<!--<link href="/theme_light/static/css/invoice_G002.css" rel="stylesheet"/>--> |
|||
</head> |
|||
<div class="page"> |
|||
<head> |
|||
<!--<link href="/theme_light/static/css/invoice_G002.css" rel="stylesheet"/>--> |
|||
</head> |
|||
|
|||
<!--<t t-call="theme_light.list_header_G002"/>--> |
|||
<!--<t t-call="theme_light.list_header_G002"/>--> |
|||
|
|||
<br/><br/><br/><br/><br/> |
|||
<table class="title_table"> |
|||
<tr> |
|||
<td> |
|||
<span class="color_text" t-esc="time.strftime('%Y-%m-%d')"/> |
|||
</td> |
|||
<td> |
|||
<div class="title_doc" style="font-size:16px"> |
|||
<span>COOPERATOR REGISTER</span> |
|||
</div> |
|||
</td> |
|||
</tr> |
|||
</table> |
|||
<br/> |
|||
<br/> |
|||
<br/> |
|||
<br/> |
|||
<br/> |
|||
<table class="title_table"> |
|||
<tr> |
|||
<td> |
|||
<span class="color_text" |
|||
t-esc="time.strftime('%Y-%m-%d')"/> |
|||
</td> |
|||
<td> |
|||
<div class="title_doc" style="font-size:16px"> |
|||
<span>COOPERATOR REGISTER</span> |
|||
</div> |
|||
</td> |
|||
</tr> |
|||
</table> |
|||
|
|||
<br/><br/><br/><br/><br/> |
|||
<br/> |
|||
<br/> |
|||
<br/> |
|||
<br/> |
|||
<br/> |
|||
|
|||
|
|||
<table class="list_line_table_head" width="100%" > |
|||
<table class="list_line_table_head" width="100%"> |
|||
|
|||
<t t-set="total_quantity" t-value="0"/> |
|||
<t t-set="total_amount" t-value="0"/> |
|||
<t t-set="total_quantity" t-value="0"/> |
|||
<t t-set="total_amount" t-value="0"/> |
|||
|
|||
<br /> |
|||
<tr> |
|||
<th width="15%" style="text-align: center;" >Number</th> |
|||
<th width="25%" style="text-align: center;" >Name</th> |
|||
<th width="20%" style="text-align: center;" >Email</th> |
|||
<th width="15%" style="text-align: center;" >Effective date</th> |
|||
<th width="10%" style="text-align: center;" >Quantity</th> |
|||
<th width="15%" style="text-align: center;" >Total</th> |
|||
</tr> |
|||
<t t-set="nb_ligne" t-value="0"/> |
|||
<br/> |
|||
<tr> |
|||
<th width="15%" style="text-align: center;">Number</th> |
|||
<th width="25%" style="text-align: center;">Name</th> |
|||
<th width="20%" style="text-align: center;">Email</th> |
|||
<th width="15%" style="text-align: center;">Effective |
|||
date |
|||
</th> |
|||
<th width="10%" style="text-align: center;">Quantity |
|||
</th> |
|||
<th width="15%" style="text-align: center;">Total</th> |
|||
</tr> |
|||
<t t-set="nb_ligne" t-value="0"/> |
|||
|
|||
<t t-foreach="docs" t-as="partner"> |
|||
<t t-set="new_partner" t-value="0"/> |
|||
<t t-foreach="docs" t-as="partner"> |
|||
<t t-set="new_partner" t-value="0"/> |
|||
|
|||
<t t-foreach="partner.share_ids" t-as="line"> |
|||
<t t-set="nb_ligne" t-value="nb_ligne+1"/> |
|||
<tr height="40px"> |
|||
<div t-if="(nb_ligne%2)==1" > |
|||
<div t-if="(new_partner)==0"> |
|||
<td class="lgn_impair" style="text-align:left;text-indent:20px;"> |
|||
<span t-field="partner.cooperator_register_number" ></span> |
|||
</td> |
|||
<td style="text-align:left"> |
|||
<span t-field="partner.name" ></span> |
|||
</td> |
|||
<td style="text-align:left"> |
|||
<span t-field="partner.email" ></span> |
|||
</td> |
|||
</div> |
|||
<t t-foreach="partner.share_ids" t-as="line"> |
|||
<t t-set="nb_ligne" t-value="nb_ligne+1"/> |
|||
<tr height="40px"> |
|||
<div t-if="(nb_ligne%2)==1"> |
|||
<div t-if="(new_partner)==0"> |
|||
<td class="lgn_impair" |
|||
style="text-align:left;text-indent:20px;"> |
|||
<span t-field="partner.cooperator_register_number"></span> |
|||
</td> |
|||
<td style="text-align:left"> |
|||
<span t-field="partner.name"></span> |
|||
</td> |
|||
<td style="text-align:left"> |
|||
<span t-field="partner.email"></span> |
|||
</td> |
|||
</div> |
|||
|
|||
<div t-if="(new_partner)!=0"> |
|||
<td class="lgn_impair" style="text-align:left;text-indent:20px;" colspan="3"> |
|||
</td> |
|||
</div> |
|||
<td> |
|||
<span t-field="line.effective_date" ></span> |
|||
</td> |
|||
<td> |
|||
<span t-field="line.share_number" ></span> |
|||
</td> |
|||
<td> |
|||
<span t-field="line.total_amount_line" |
|||
t-field-options='{"widget": "monetary", "display_currency": "res_company.currency_id"}'/> |
|||
</td> |
|||
</div> |
|||
<div t-if="(nb_ligne%2)==0" > |
|||
<div t-if="(new_partner)==0" > |
|||
<td class="lgn_pair" style="text-align:left;text-indent:20px;background-color:#ffffff"> |
|||
<span t-field="partner.cooperator_register_number" ></span> |
|||
</td> |
|||
<td class="lgn_pair" style="background-color:#ffffff;text-align:left"> |
|||
<span t-field="partner.name" ></span> |
|||
</td> |
|||
<td class="lgn_pair" style="background-color:#ffffff;text-align:left"> |
|||
<span t-field="partner.email" ></span> |
|||
</td> |
|||
</div> |
|||
<div t-if="(new_partner)!=0" style="background-color:#ffffff"> |
|||
<td class="lgn_pair" style="text-align:left;text-indent:20px;background-color:#ffffff" colspan="3"> |
|||
</td> |
|||
</div> |
|||
<td class="lgn_pair" style="background-color:#ffffff"> |
|||
<span t-field="line.effective_date"> </span> |
|||
</td> |
|||
<td class="lgn_pair" style="background-color:#ffffff"> |
|||
<span t-field="line.share_number" ></span> |
|||
</td> |
|||
<td class="lgn_pair" style="background-color:#ffffff"> |
|||
<span t-field="line.total_amount_line" |
|||
t-field-options='{"widget": "monetary", "display_currency": "res_company.currency_id"}'/> |
|||
</td> |
|||
</div> |
|||
</tr> |
|||
<t t-set="new_partner" t-value="new_partner+1"/> |
|||
</t> |
|||
</t> |
|||
</table> |
|||
</div> |
|||
</t> |
|||
<!--</t>--> |
|||
</template> |
|||
<div t-if="(new_partner)!=0"> |
|||
<td class="lgn_impair" |
|||
style="text-align:left;text-indent:20px;" |
|||
colspan="3"> |
|||
</td> |
|||
</div> |
|||
<td> |
|||
<span t-field="line.effective_date"></span> |
|||
</td> |
|||
<td> |
|||
<span t-field="line.share_number"></span> |
|||
</td> |
|||
<td> |
|||
<span t-field="line.total_amount_line" |
|||
t-field-options='{"widget": "monetary", "display_currency": "res_company.currency_id"}'/> |
|||
</td> |
|||
</div> |
|||
<div t-if="(nb_ligne%2)==0"> |
|||
<div t-if="(new_partner)==0"> |
|||
<td class="lgn_pair" |
|||
style="text-align:left;text-indent:20px;background-color:#ffffff"> |
|||
<span t-field="partner.cooperator_register_number"></span> |
|||
</td> |
|||
<td class="lgn_pair" |
|||
style="background-color:#ffffff;text-align:left"> |
|||
<span t-field="partner.name"></span> |
|||
</td> |
|||
<td class="lgn_pair" |
|||
style="background-color:#ffffff;text-align:left"> |
|||
<span t-field="partner.email"></span> |
|||
</td> |
|||
</div> |
|||
<div t-if="(new_partner)!=0" |
|||
style="background-color:#ffffff"> |
|||
<td class="lgn_pair" |
|||
style="text-align:left;text-indent:20px;background-color:#ffffff" |
|||
colspan="3"> |
|||
</td> |
|||
</div> |
|||
<td class="lgn_pair" |
|||
style="background-color:#ffffff"> |
|||
<span t-field="line.effective_date"></span> |
|||
</td> |
|||
<td class="lgn_pair" |
|||
style="background-color:#ffffff"> |
|||
<span t-field="line.share_number"></span> |
|||
</td> |
|||
<td class="lgn_pair" |
|||
style="background-color:#ffffff"> |
|||
<span t-field="line.total_amount_line" |
|||
t-field-options='{"widget": "monetary", "display_currency": "res_company.currency_id"}'/> |
|||
</td> |
|||
</div> |
|||
</tr> |
|||
<t t-set="new_partner" t-value="new_partner+1"/> |
|||
</t> |
|||
</t> |
|||
</table> |
|||
</div> |
|||
</t> |
|||
<!--</t>--> |
|||
</template> |
|||
</odoo> |
@ -1,106 +1,130 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<odoo> |
|||
<template id="cooperator_subscription_G001"> |
|||
<t t-call="web.html_container"> |
|||
<template id="cooperator_subscription_G001"> |
|||
<t t-call="web.html_container"> |
|||
|
|||
<t t-set="data_report_margin_top" t-value="5"/> |
|||
<t t-set="data_report_header_spacing" t-value="0"/> |
|||
<t t-set="data_report_dpi" t-value="110"/> |
|||
<t t-set="data_report_margin_top" t-value="5"/> |
|||
<t t-set="data_report_header_spacing" t-value="0"/> |
|||
<t t-set="data_report_dpi" t-value="110"/> |
|||
|
|||
<!--<t t-call="theme_light.report_layout_002">--> |
|||
<!--<t t-call="theme_light.report_layout_002">--> |
|||
|
|||
<div class="page"> |
|||
<head> |
|||
<!--<link href="/theme_light/static/css/invoice_G002.css" rel="stylesheet"/>--> |
|||
</head> |
|||
<div class="page"> |
|||
<head> |
|||
<!--<link href="/theme_light/static/css/invoice_G002.css" rel="stylesheet"/>--> |
|||
</head> |
|||
|
|||
<!--<t t-call="theme_light.list_header_G002"/>--> |
|||
<!--<t t-call="theme_light.list_header_G002"/>--> |
|||
|
|||
<br/><br/><br/><br/><br/> |
|||
<br/> |
|||
<br/> |
|||
<br/> |
|||
<br/> |
|||
<br/> |
|||
|
|||
<table class="title_table"> |
|||
<tr> |
|||
<td> |
|||
<span class="color_text" t-esc="time.strftime('%Y-%m-%d')"/> |
|||
</td> |
|||
<td> |
|||
<div class="title_doc" style="font-size:16px"> |
|||
<span>SUBSCRIPTION REGISTER</span> |
|||
</div> |
|||
</td> |
|||
</tr> |
|||
</table> |
|||
<table class="title_table"> |
|||
<tr> |
|||
<td> |
|||
<span class="color_text" |
|||
t-esc="time.strftime('%Y-%m-%d')"/> |
|||
</td> |
|||
<td> |
|||
<div class="title_doc" style="font-size:16px"> |
|||
<span>SUBSCRIPTION REGISTER</span> |
|||
</div> |
|||
</td> |
|||
</tr> |
|||
</table> |
|||
|
|||
<br/><br/><br/><br/><br/> |
|||
<br/> |
|||
<br/> |
|||
<br/> |
|||
<br/> |
|||
<br/> |
|||
|
|||
<table class="list_line_table_head" width="100%" > |
|||
<br /> |
|||
<tr> |
|||
<th width="15%" style="text-align: center;" >Operation number</th> |
|||
<th width="30%" style="text-align: left;text-indent:15px" >Cooperator</th> |
|||
<th width="15%" style="text-align: center;" >Subscription date</th> |
|||
<th width="25%" style="text-align: center;" >Operation type</th> |
|||
<th width="15%" style="text-align: center;" >Share number</th> |
|||
</tr> |
|||
<t t-set="nb_ligne" t-value="0"/> |
|||
<table class="list_line_table_head" width="100%"> |
|||
<br/> |
|||
<tr> |
|||
<th width="15%" style="text-align: center;">Operation |
|||
number |
|||
</th> |
|||
<th width="30%" |
|||
style="text-align: left;text-indent:15px">Cooperator |
|||
</th> |
|||
<th width="15%" style="text-align: center;">Subscription |
|||
date |
|||
</th> |
|||
<th width="25%" style="text-align: center;">Operation |
|||
type |
|||
</th> |
|||
<th width="15%" style="text-align: center;">Share |
|||
number |
|||
</th> |
|||
</tr> |
|||
<t t-set="nb_ligne" t-value="0"/> |
|||
|
|||
<p t-foreach="docs" t-as="transaction"> |
|||
<t t-set="nb_ligne" t-value="nb_ligne+1"/> |
|||
<tr height="40px"> |
|||
<div t-if="(nb_ligne%2)==1" > |
|||
<td class="lgn_impair" style="text-align:left;text-indent:10px"> |
|||
<span t-field="transaction.register_number_operation" ></span> |
|||
</td> |
|||
<td style="text-align:left;text-indent:15px"> |
|||
<span t-field="transaction.partner_id.name" ></span> |
|||
</td> |
|||
<td style="text-align:center"> |
|||
<span t-field="transaction.date" ></span> |
|||
</td> |
|||
<td style="text-align:center"> |
|||
<span t-field="transaction.type"/> |
|||
</td> |
|||
<td style="text-align:center"> |
|||
<span t-field="transaction.quantity" ></span> |
|||
</td> |
|||
<p t-foreach="docs" t-as="transaction"> |
|||
<t t-set="nb_ligne" t-value="nb_ligne+1"/> |
|||
<tr height="40px"> |
|||
<div t-if="(nb_ligne%2)==1"> |
|||
<td class="lgn_impair" |
|||
style="text-align:left;text-indent:10px"> |
|||
<span t-field="transaction.register_number_operation"></span> |
|||
</td> |
|||
<td style="text-align:left;text-indent:15px"> |
|||
<span t-field="transaction.partner_id.name"></span> |
|||
</td> |
|||
<td style="text-align:center"> |
|||
<span t-field="transaction.date"></span> |
|||
</td> |
|||
<td style="text-align:center"> |
|||
<span t-field="transaction.type"/> |
|||
</td> |
|||
<td style="text-align:center"> |
|||
<span t-field="transaction.quantity"></span> |
|||
</td> |
|||
|
|||
</div> |
|||
<div t-if="(nb_ligne%2)==0" > |
|||
<td class="lgn_pair" style="text-align:left;text-indent:10px;background-color:#ffffff"> |
|||
<span t-field="transaction.register_number_operation" ></span> |
|||
</td> |
|||
<td class="lgn_pair" style="text-align:left;text-indent:15px;background-color:#ffffff"> |
|||
<span t-field="transaction.partner_id.name" ></span> |
|||
</td> |
|||
<td style="text-align:center;background-color:#ffffff"> |
|||
<span t-field="transaction.date" ></span> |
|||
</td> |
|||
<td style="text-align:center;background-color:#ffffff"> |
|||
<span t-field="transaction.type"/> |
|||
</td> |
|||
<td style="text-align:center;background-color:#ffffff"> |
|||
<span t-field="transaction.quantity" ></span> |
|||
</td> |
|||
</div> |
|||
</tr> |
|||
</p> |
|||
</table> |
|||
</div> |
|||
<div t-if="(nb_ligne%2)==0"> |
|||
<td class="lgn_pair" |
|||
style="text-align:left;text-indent:10px;background-color:#ffffff"> |
|||
<span t-field="transaction.register_number_operation"></span> |
|||
</td> |
|||
<td class="lgn_pair" |
|||
style="text-align:left;text-indent:15px;background-color:#ffffff"> |
|||
<span t-field="transaction.partner_id.name"></span> |
|||
</td> |
|||
<td style="text-align:center;background-color:#ffffff"> |
|||
<span t-field="transaction.date"></span> |
|||
</td> |
|||
<td style="text-align:center;background-color:#ffffff"> |
|||
<span t-field="transaction.type"/> |
|||
</td> |
|||
<td style="text-align:center;background-color:#ffffff"> |
|||
<span t-field="transaction.quantity"></span> |
|||
</td> |
|||
</div> |
|||
</tr> |
|||
</p> |
|||
</table> |
|||
|
|||
<table width="100%" > |
|||
<br /> |
|||
<tr height="40px"> |
|||
<th width="15%"></th> |
|||
<th width="30%"></th> |
|||
<th width="15%"></th> |
|||
<th class="total_table color_text" width="25%"> TOTAL : </th> |
|||
<table width="100%"> |
|||
<br/> |
|||
<tr height="40px"> |
|||
<th width="15%"></th> |
|||
<th width="30%"></th> |
|||
<th width="15%"></th> |
|||
<th class="total_table color_text" width="25%">TOTAL : |
|||
</th> |
|||
|
|||
<th class="total_table" style="text-align:center" width="15%"> |
|||
<span t-esc="sum(t.quantity for t in docs)"/> |
|||
</th> |
|||
</tr> |
|||
</table> |
|||
</div> |
|||
</t> |
|||
<!--</t>--> |
|||
</template> |
|||
<th class="total_table" style="text-align:center" |
|||
width="15%"> |
|||
<span t-esc="sum(t.quantity for t in docs)"/> |
|||
</th> |
|||
</tr> |
|||
</table> |
|||
</div> |
|||
</t> |
|||
<!--</t>--> |
|||
</template> |
|||
</odoo> |
@ -1,49 +1,49 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<odoo> |
|||
|
|||
<data noupdate="1"> |
|||
<data noupdate="1"> |
|||
|
|||
<report |
|||
id="action_cooperator_invoices" |
|||
model="account.invoice" |
|||
string="Capital release request" |
|||
report_type="qweb-pdf" |
|||
name="easy_my_coop.theme_invoice_G002" |
|||
file="easy_my_coop.cooperator_invoice_G002.xml" |
|||
attachment="(object.state in ('open','paid')) and ('SUBJ'+(object.number or '').replace('/','')+'.pdf')" |
|||
id="action_cooperator_invoices" |
|||
model="account.invoice" |
|||
string="Capital release request" |
|||
report_type="qweb-pdf" |
|||
name="easy_my_coop.theme_invoice_G002" |
|||
file="easy_my_coop.cooperator_invoice_G002.xml" |
|||
attachment="(object.state in ('open','paid')) and ('SUBJ'+(object.number or '').replace('/','')+'.pdf')" |
|||
/> |
|||
|
|||
<report |
|||
id="action_cooperator_subscription_report" |
|||
model="subscription.register" |
|||
string="Subscription Register Report" |
|||
report_type="qweb-pdf" |
|||
name="easy_my_coop.cooperator_subscription_G001" |
|||
file="easy_my_coop.cooperator_subscription_G001.xml" |
|||
multi="True" |
|||
menu="True" |
|||
id="action_cooperator_subscription_report" |
|||
model="subscription.register" |
|||
string="Subscription Register Report" |
|||
report_type="qweb-pdf" |
|||
name="easy_my_coop.cooperator_subscription_G001" |
|||
file="easy_my_coop.cooperator_subscription_G001.xml" |
|||
multi="True" |
|||
menu="True" |
|||
/> |
|||
|
|||
<report |
|||
id="action_cooperator_report_certificat" |
|||
model="res.partner" |
|||
string="Cooperator certificat" |
|||
report_type="qweb-pdf" |
|||
name="easy_my_coop.cooperator_certificat_G001" |
|||
file="easy_my_coop.cooperator_certificat_G001.xml" |
|||
multi="True" |
|||
menu="True" |
|||
<report |
|||
id="action_cooperator_report_certificat" |
|||
model="res.partner" |
|||
string="Cooperator certificat" |
|||
report_type="qweb-pdf" |
|||
name="easy_my_coop.cooperator_certificat_G001" |
|||
file="easy_my_coop.cooperator_certificat_G001.xml" |
|||
multi="True" |
|||
menu="True" |
|||
/> |
|||
|
|||
<report |
|||
id="action_report_cooperator_register" |
|||
model="res.partner" |
|||
string="Cooperator register" |
|||
report_type="qweb-pdf" |
|||
name="easy_my_coop.cooperator_register_G001" |
|||
file="easy_my_coop.cooperator_register_G001.xml" |
|||
multi="True" |
|||
menu="True" |
|||
id="action_report_cooperator_register" |
|||
model="res.partner" |
|||
string="Cooperator register" |
|||
report_type="qweb-pdf" |
|||
name="easy_my_coop.cooperator_register_G001" |
|||
file="easy_my_coop.cooperator_register_G001.xml" |
|||
multi="True" |
|||
menu="True" |
|||
/> |
|||
</data> |
|||
</data> |
|||
</odoo> |
@ -1,73 +1,93 @@ |
|||
<odoo> |
|||
<record id="invoice_form" model="ir.ui.view"> |
|||
<field name="name">account.invoice.form</field> |
|||
<field name="model">account.invoice</field> |
|||
<field name="inherit_id" ref="account.invoice_form" /> |
|||
<field name="arch" type="xml"> |
|||
<field name="move_id" position="after"> |
|||
<field name="subscription_request" /> |
|||
</field> |
|||
</field> |
|||
</record> |
|||
<record id="invoice_form" model="ir.ui.view"> |
|||
<field name="name">account.invoice.form</field> |
|||
<field name="model">account.invoice</field> |
|||
<field name="inherit_id" ref="account.invoice_form"/> |
|||
<field name="arch" type="xml"> |
|||
<field name="move_id" position="after"> |
|||
<field name="subscription_request"/> |
|||
</field> |
|||
</field> |
|||
</record> |
|||
|
|||
<record id="action_invoice_tree_coop" model="ir.actions.act_window"> |
|||
<field name="name">Cooperator Invoices</field> |
|||
<field name="res_model">account.invoice</field> |
|||
<field name="view_type">form</field> |
|||
<field name="view_mode">tree,kanban,form,calendar,pivot,graph,activity</field> |
|||
<field eval="False" name="view_id"/> |
|||
<field name="domain">[('type','in',('out_invoice', 'out_refund')),('release_capital_request','=',True)]</field> |
|||
<field name="context">{'default_type':'out_invoice', 'type':'out_invoice', 'journal_type': 'sale'}</field> |
|||
<field name="search_view_id" ref="account.view_account_invoice_filter"/> |
|||
<field name="help" type="html"> |
|||
<p class="o_view_nocontent_smiling_face"> |
|||
<record id="action_invoice_tree_coop" model="ir.actions.act_window"> |
|||
<field name="name">Cooperator Invoices</field> |
|||
<field name="res_model">account.invoice</field> |
|||
<field name="view_type">form</field> |
|||
<field name="view_mode">tree,kanban,form,calendar,pivot,graph,activity |
|||
</field> |
|||
<field eval="False" name="view_id"/> |
|||
<field name="domain">[('type','in',('out_invoice', |
|||
'out_refund')),('release_capital_request','=',True)] |
|||
</field> |
|||
<field name="context">{'default_type':'out_invoice', |
|||
'type':'out_invoice', 'journal_type': 'sale'} |
|||
</field> |
|||
<field name="search_view_id" ref="account.view_account_invoice_filter"/> |
|||
<field name="help" type="html"> |
|||
<p class="o_view_nocontent_smiling_face"> |
|||
Create a customer invoice |
|||
</p><p> |
|||
Create invoices, register payments and keep track of the discussions with your customers. |
|||
</p> |
|||
</field> |
|||
</record> |
|||
</p> |
|||
<p> |
|||
Create invoices, register payments and keep track of the |
|||
discussions with your customers. |
|||
</p> |
|||
</field> |
|||
</record> |
|||
|
|||
<record id="action_invoice_tree1_view1" model="ir.actions.act_window.view"> |
|||
<field eval="1" name="sequence"/> |
|||
<field name="view_mode">tree</field> |
|||
<field name="view_id" ref="account.invoice_tree"/> |
|||
<field name="act_window_id" ref="action_invoice_tree_coop"/> |
|||
</record> |
|||
<record id="action_invoice_tree1_view1" model="ir.actions.act_window.view"> |
|||
<field eval="1" name="sequence"/> |
|||
<field name="view_mode">tree</field> |
|||
<field name="view_id" ref="account.invoice_tree"/> |
|||
<field name="act_window_id" ref="action_invoice_tree_coop"/> |
|||
</record> |
|||
|
|||
<record id="action_invoice_tree1_view2" model="ir.actions.act_window.view"> |
|||
<field eval="2" name="sequence"/> |
|||
<field name="view_mode">form</field> |
|||
<field name="view_id" ref="account.invoice_form"/> |
|||
<field name="act_window_id" ref="action_invoice_tree_coop"/> |
|||
</record> |
|||
<record id="action_invoice_tree1_view2" model="ir.actions.act_window.view"> |
|||
<field eval="2" name="sequence"/> |
|||
<field name="view_mode">form</field> |
|||
<field name="view_id" ref="account.invoice_form"/> |
|||
<field name="act_window_id" ref="action_invoice_tree_coop"/> |
|||
</record> |
|||
|
|||
<record id="account.action_invoice_tree1" model="ir.actions.act_window"> |
|||
<field name="name">Customer Invoices</field> |
|||
<field name="res_model">account.invoice</field> |
|||
<field name="view_type">form</field> |
|||
<field name="view_mode">tree,kanban,form,calendar,pivot,graph,activity</field> |
|||
<field eval="False" name="view_id"/> |
|||
<field name="domain">[('type','in',('out_invoice', 'out_refund')),('release_capital_request','=',False)]</field> |
|||
<field name="context">{'default_type':'out_invoice', 'type':'out_invoice', 'journal_type': 'sale'}</field> |
|||
<field name="search_view_id" ref="account.view_account_invoice_filter"/> |
|||
<field name="help" type="html"> |
|||
<p class="o_view_nocontent_smiling_face"> |
|||
<record id="account.action_invoice_tree1" model="ir.actions.act_window"> |
|||
<field name="name">Customer Invoices</field> |
|||
<field name="res_model">account.invoice</field> |
|||
<field name="view_type">form</field> |
|||
<field name="view_mode">tree,kanban,form,calendar,pivot,graph,activity |
|||
</field> |
|||
<field eval="False" name="view_id"/> |
|||
<field name="domain">[('type','in',('out_invoice', |
|||
'out_refund')),('release_capital_request','=',False)] |
|||
</field> |
|||
<field name="context">{'default_type':'out_invoice', |
|||
'type':'out_invoice', 'journal_type': 'sale'} |
|||
</field> |
|||
<field name="search_view_id" ref="account.view_account_invoice_filter"/> |
|||
<field name="help" type="html"> |
|||
<p class="o_view_nocontent_smiling_face"> |
|||
Create a customer invoice |
|||
</p><p> |
|||
Create invoices, register payments and keep track of the discussions with your customers. |
|||
</p> |
|||
</field> |
|||
</record> |
|||
</p> |
|||
<p> |
|||
Create invoices, register payments and keep track of the |
|||
discussions with your customers. |
|||
</p> |
|||
</field> |
|||
</record> |
|||
|
|||
<record id="account.action_invoice_refund_out_tree" model="ir.actions.act_window"> |
|||
<field name="name">Invoices</field> |
|||
<field name="res_model">account.invoice</field> |
|||
<field name="view_type">form</field> |
|||
<field name="view_mode">tree,form,kanban,calendar,graph,pivot</field> |
|||
<field name="view_id" ref="account.invoice_tree"/> |
|||
<field name="domain">[('type','in', ['out_invoice', 'out_refund']), ('state', 'not in', ['draft', 'cancel']),('release_capital_request','=',False)]</field> |
|||
<field name="context">{'default_type':'out_invoice', 'type':'out_invoice', 'journal_type': 'sale'}</field> |
|||
<field name="search_view_id" ref="account.view_account_invoice_filter"/> |
|||
</record> |
|||
<record id="account.action_invoice_refund_out_tree" |
|||
model="ir.actions.act_window"> |
|||
<field name="name">Invoices</field> |
|||
<field name="res_model">account.invoice</field> |
|||
<field name="view_type">form</field> |
|||
<field name="view_mode">tree,form,kanban,calendar,graph,pivot</field> |
|||
<field name="view_id" ref="account.invoice_tree"/> |
|||
<field name="domain">[('type','in', ['out_invoice', 'out_refund']), |
|||
('state', 'not in', ['draft', |
|||
'cancel']),('release_capital_request','=',False)] |
|||
</field> |
|||
<field name="context">{'default_type':'out_invoice', |
|||
'type':'out_invoice', 'journal_type': 'sale'} |
|||
</field> |
|||
<field name="search_view_id" ref="account.view_account_invoice_filter"/> |
|||
</record> |
|||
</odoo> |
@ -1,26 +1,28 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<odoo> |
|||
<record id="view_account_journal_form_coop" model="ir.ui.view"> |
|||
<record id="view_account_journal_form_coop" model="ir.ui.view"> |
|||
<field name="name">account.journal.form</field> |
|||
<field name="model">account.journal</field> |
|||
<field name="inherit_id" ref="account.view_account_journal_form"/> |
|||
<field name="arch" type="xml"> |
|||
<field name="bank_id" position="after"> |
|||
<field name="get_cooperator_payment" groups="easy_my_coop.group_easy_my_coop_manager"/> |
|||
<field name="get_general_payment"/> |
|||
</field> |
|||
<field name="bank_id" position="after"> |
|||
<field name="get_cooperator_payment" |
|||
groups="easy_my_coop.group_easy_my_coop_manager"/> |
|||
<field name="get_general_payment"/> |
|||
</field> |
|||
</field> |
|||
</record> |
|||
</record> |
|||
|
|||
<record id="view_account_bank_journal_form_coop" model="ir.ui.view"> |
|||
<record id="view_account_bank_journal_form_coop" model="ir.ui.view"> |
|||
<field name="name">account.bank.journal.form</field> |
|||
<field name="model">account.journal</field> |
|||
<field name="inherit_id" ref="account.view_account_bank_journal_form"/> |
|||
<field name="arch" type="xml"> |
|||
<field name="currency_id" position="after"> |
|||
<field name="get_cooperator_payment" groups="easy_my_coop.group_easy_my_coop_manager"/> |
|||
<field name="get_general_payment"/> |
|||
</field> |
|||
<field name="currency_id" position="after"> |
|||
<field name="get_cooperator_payment" |
|||
groups="easy_my_coop.group_easy_my_coop_manager"/> |
|||
<field name="get_general_payment"/> |
|||
</field> |
|||
</field> |
|||
</record> |
|||
</odoo> |
@ -1,77 +1,84 @@ |
|||
<odoo> |
|||
<record id="subscription_register_tree" model="ir.ui.view"> |
|||
<field name="name">subscription.register.tree</field> |
|||
<field name="model">subscription.register</field> |
|||
<field name="arch" type="xml"> |
|||
<tree string="Subscription Register"> |
|||
<record id="subscription_register_tree" model="ir.ui.view"> |
|||
<field name="name">subscription.register.tree</field> |
|||
<field name="model">subscription.register</field> |
|||
<field name="arch" type="xml"> |
|||
<tree string="Subscription Register"> |
|||
<field name="register_number_operation"/> |
|||
<field name="date"/> |
|||
<field name="partner_id"/> |
|||
<field name="share_short_name"/> |
|||
<field name="quantity" sum="Total quantity"/> |
|||
<field name="share_unit_price"/> |
|||
<field name="total_amount_line" sum="Total amount"/> |
|||
<field name="type"/> |
|||
</tree> |
|||
</field> |
|||
</record> |
|||
<field name="date"/> |
|||
<field name="partner_id"/> |
|||
<field name="share_short_name"/> |
|||
<field name="quantity" sum="Total quantity"/> |
|||
<field name="share_unit_price"/> |
|||
<field name="total_amount_line" sum="Total amount"/> |
|||
<field name="type"/> |
|||
</tree> |
|||
</field> |
|||
</record> |
|||
|
|||
<record id="subscription_register_form" model="ir.ui.view"> |
|||
<field name="name">subscription.register.form</field> |
|||
<field name="model">subscription.register</field> |
|||
<field name="arch" type="xml"> |
|||
<form string="Subscription Register"> |
|||
<record id="subscription_register_form" model="ir.ui.view"> |
|||
<field name="name">subscription.register.form</field> |
|||
<field name="model">subscription.register</field> |
|||
<field name="arch" type="xml"> |
|||
<form string="Subscription Register"> |
|||
<group> |
|||
<group> |
|||
<field name="register_number_operation"/> |
|||
<field name="date"/> |
|||
<field name="partner_id"/> |
|||
<field name="share_short_name"/> |
|||
<field name="quantity"/> |
|||
<field name="share_unit_price"/> |
|||
<field name="total_amount_line"/> |
|||
</group> |
|||
<group> |
|||
<field name="partner_id_to" attrs="{'invisible':[('type','!=','transfer')]}"/> |
|||
<field name="type"/> |
|||
<field name="share_to_short_name"/> |
|||
<field name="quantity_to"/> |
|||
<field name="share_to_unit_price"/> |
|||
<field name="user_id" invisible="True"/> |
|||
</group> |
|||
</group> |
|||
</form> |
|||
</field> |
|||
</record> |
|||
<group> |
|||
<field name="register_number_operation"/> |
|||
<field name="date"/> |
|||
<field name="partner_id"/> |
|||
<field name="share_short_name"/> |
|||
<field name="quantity"/> |
|||
<field name="share_unit_price"/> |
|||
<field name="total_amount_line"/> |
|||
</group> |
|||
<group> |
|||
<field name="partner_id_to" |
|||
attrs="{'invisible':[('type','!=','transfer')]}"/> |
|||
<field name="type"/> |
|||
<field name="share_to_short_name"/> |
|||
<field name="quantity_to"/> |
|||
<field name="share_to_unit_price"/> |
|||
<field name="user_id" invisible="True"/> |
|||
</group> |
|||
</group> |
|||
</form> |
|||
</field> |
|||
</record> |
|||
|
|||
<record id="view_subscription_register_filter" model="ir.ui.view"> |
|||
<field name="name">Subscription Register Search</field> |
|||
<field name="model">subscription.register</field> |
|||
<field name="arch" type="xml"> |
|||
<search string="Search Subscription Register"> |
|||
<field name="partner_id" |
|||
filter_domain="[('partner_id','ilike',self)]"/> |
|||
<field name="register_number_operation"/> |
|||
<separator/> |
|||
<filter string="Subscription" name="type_subscription" domain="[('type','=','subscription')]"/> |
|||
<filter string="Transfer" name="type_transfer" domain="[('type','=','transfer')]"/> |
|||
<filter string="Sell back" name="type_sell_back" domain="[('type','=','sell_back')]"/> |
|||
<filter string="Convert" name="type_convert" domain="[('type','=','convert')]"/> |
|||
<separator/> |
|||
<group expand="0" name="group_by" string="Group By"> |
|||
<filter name="entry_type" string="Entry type" context="{'group_by' : 'type'}" /> |
|||
<filter name="subscription_date" string="Subscription Date" context="{'group_by': 'date'}"/> |
|||
</group> |
|||
</search> |
|||
</field> |
|||
</record> |
|||
<record id="view_subscription_register_filter" model="ir.ui.view"> |
|||
<field name="name">Subscription Register Search</field> |
|||
<field name="model">subscription.register</field> |
|||
<field name="arch" type="xml"> |
|||
<search string="Search Subscription Register"> |
|||
<field name="partner_id" |
|||
filter_domain="[('partner_id','ilike',self)]"/> |
|||
<field name="register_number_operation"/> |
|||
<separator/> |
|||
<filter string="Subscription" name="type_subscription" |
|||
domain="[('type','=','subscription')]"/> |
|||
<filter string="Transfer" name="type_transfer" |
|||
domain="[('type','=','transfer')]"/> |
|||
<filter string="Sell back" name="type_sell_back" |
|||
domain="[('type','=','sell_back')]"/> |
|||
<filter string="Convert" name="type_convert" |
|||
domain="[('type','=','convert')]"/> |
|||
<separator/> |
|||
<group expand="0" name="group_by" string="Group By"> |
|||
<filter name="entry_type" string="Entry type" |
|||
context="{'group_by' : 'type'}"/> |
|||
<filter name="subscription_date" string="Subscription Date" |
|||
context="{'group_by': 'date'}"/> |
|||
</group> |
|||
</search> |
|||
</field> |
|||
</record> |
|||
|
|||
<record id="subscription_register_action" model="ir.actions.act_window"> |
|||
<field name="name">Subscription Register</field> |
|||
<field name="res_model">subscription.register</field> |
|||
<field name="view_type">form</field> |
|||
<field name="view_id" ref="subscription_register_tree"/> |
|||
<field name="search_view_id" ref="view_subscription_register_filter"/> |
|||
</record> |
|||
<record id="subscription_register_action" model="ir.actions.act_window"> |
|||
<field name="name">Subscription Register</field> |
|||
<field name="res_model">subscription.register</field> |
|||
<field name="view_type">form</field> |
|||
<field name="view_id" ref="subscription_register_tree"/> |
|||
<field name="search_view_id" ref="view_subscription_register_filter"/> |
|||
</record> |
|||
|
|||
</odoo> |
@ -1,15 +1,15 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<odoo> |
|||
|
|||
<record model="ir.actions.act_window" |
|||
id="action_easy_my_coop_email_templates"> |
|||
<field name="name">Mail Templates</field> |
|||
<field name="res_model">mail.template</field> |
|||
<field name="view_type">form</field> |
|||
<field name="view_mode">form,tree</field> |
|||
<field name="domain">[('easy_my_coop','=',True)]</field> |
|||
<field name="view_id" ref="mail.email_template_tree" /> |
|||
<field name="search_view_id" ref="mail.view_email_template_search" /> |
|||
</record> |
|||
<record model="ir.actions.act_window" |
|||
id="action_easy_my_coop_email_templates"> |
|||
<field name="name">Mail Templates</field> |
|||
<field name="res_model">mail.template</field> |
|||
<field name="view_type">form</field> |
|||
<field name="view_mode">form,tree</field> |
|||
<field name="domain">[('easy_my_coop','=',True)]</field> |
|||
<field name="view_id" ref="mail.email_template_tree"/> |
|||
<field name="search_view_id" ref="mail.view_email_template_search"/> |
|||
</record> |
|||
|
|||
</odoo> |
@ -1,105 +1,133 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<odoo> |
|||
<record id="operation_request_tree" model="ir.ui.view"> |
|||
<field name="name">operation.request.tree</field> |
|||
<field name="model">operation.request</field> |
|||
<field name="arch" type="xml"> |
|||
<tree string="Operation requests" colors="green:state in ('approved'); blue:state in ('draft');grey: state in ('done')"> |
|||
<field name="request_date"/> |
|||
<field name="partner_id"/> |
|||
<field name="operation_type"/> |
|||
<field name="quantity"/> |
|||
<field name="user_id"/> |
|||
<field name="state"/> |
|||
</tree> |
|||
</field> |
|||
</record> |
|||
<record id="operation_request_tree" model="ir.ui.view"> |
|||
<field name="name">operation.request.tree</field> |
|||
<field name="model">operation.request</field> |
|||
<field name="arch" type="xml"> |
|||
<tree string="Operation requests" |
|||
colors="green:state in ('approved'); blue:state in ('draft');grey: state in ('done')"> |
|||
<field name="request_date"/> |
|||
<field name="partner_id"/> |
|||
<field name="operation_type"/> |
|||
<field name="quantity"/> |
|||
<field name="user_id"/> |
|||
<field name="state"/> |
|||
</tree> |
|||
</field> |
|||
</record> |
|||
|
|||
<record id="operation_request_form" model="ir.ui.view"> |
|||
<field name="name">operation.request.form</field> |
|||
<field name="model">operation.request</field> |
|||
<field name="arch" type="xml"> |
|||
<form string="Operation request"> |
|||
<header> |
|||
<button string="Submit" type="object" name="submit_operation" states="draft"/> |
|||
<button string="Approve" type="object" name="approve_operation" states="waiting"/> |
|||
<button string="Refuse" type="object" name="refuse_operation" states="waiting"/> |
|||
<button string="Cancel" type="object" name="cancel_operation" states="draft,waiting,approved"/> |
|||
<button string="Draft" type="object" name="reset_to_draft" states="waiting,cancelled"/> |
|||
<button string="Execute" type="object" name="execute_operation" states="approved"/> |
|||
<field name="state" widget="statusbar" statusbar_visible="draft,done,cancelled,refused" statusbar_colors='{"draft":"grey","done":"green","cancelled":"orange","refused":"red"}'/> |
|||
<record id="operation_request_form" model="ir.ui.view"> |
|||
<field name="name">operation.request.form</field> |
|||
<field name="model">operation.request</field> |
|||
<field name="arch" type="xml"> |
|||
<form string="Operation request"> |
|||
<header> |
|||
<button string="Submit" type="object" |
|||
name="submit_operation" states="draft"/> |
|||
<button string="Approve" type="object" |
|||
name="approve_operation" states="waiting"/> |
|||
<button string="Refuse" type="object" |
|||
name="refuse_operation" states="waiting"/> |
|||
<button string="Cancel" type="object" |
|||
name="cancel_operation" |
|||
states="draft,waiting,approved"/> |
|||
<button string="Draft" type="object" name="reset_to_draft" |
|||
states="waiting,cancelled"/> |
|||
<button string="Execute" type="object" |
|||
name="execute_operation" states="approved"/> |
|||
<field name="state" widget="statusbar" |
|||
statusbar_visible="draft,done,cancelled,refused" |
|||
statusbar_colors='{"draft":"grey","done":"green","cancelled":"orange","refused":"red"}'/> |
|||
</header> |
|||
<sheet> |
|||
<group> |
|||
<group> |
|||
<field name="request_date" attrs="{'readonly':[('state','!=','draft')]}"/> |
|||
<field name="operation_type" attrs="{'readonly':[('state','!=','draft')]}"/> |
|||
<field name="receiver_not_member" attrs="{'invisible':[('operation_type','!=','transfer')]}"/> |
|||
<field name="partner_id" options="{'no_create':True}" attrs="{'readonly':[('state','!=','draft')]}"/> |
|||
<field name="partner_id_to" options="{'no_create':True}" attrs="{'invisible':['|',('operation_type','!=','transfer'), ('receiver_not_member','=',True)]}"/> |
|||
</group> |
|||
<group> |
|||
<field name="user_id"/> |
|||
<field name="share_product_id" attrs="{'readonly':[('state','!=','draft')]}" widget="selection"/> |
|||
<field name="share_short_name" readonly="True"/> |
|||
<field name="share_to_product_id" attrs="{'invisible':[('operation_type','!=','convert')],'required':[('operation_type','=','convert')],'readonly':[('state','!=','draft')]}" widget="selection"/> |
|||
<field name="share_to_short_name" readonly="True"/> |
|||
<field name="quantity" attrs="{'readonly':[('state','!=','draft')]}"/> |
|||
<field name="share_unit_price" readonly="True"/> |
|||
<field name="subscription_amount" readonly="True" /> |
|||
</group> |
|||
</group> |
|||
<group> |
|||
<field name="subscription_request" attrs="{'invisible':['|',('operation_type','!=','transfer'),('receiver_not_member','=',False)]}" context="{'default_is_operation': True, 'default_ordered_parts':quantity,'default_share_product_id': share_product_id, 'default_source':'operation'}"> |
|||
<tree> |
|||
<field name="name"/> |
|||
<field name="birthdate"/> |
|||
<field name="phone"/> |
|||
<field name="email"/> |
|||
<field name="iban"/> |
|||
<field name="state" invisible="True"/> |
|||
</tree> |
|||
<form string="Subscription Requests"> |
|||
<sheet> |
|||
<group> |
|||
<group> |
|||
<field name="name"/> |
|||
<field name="firstname"/> |
|||
<field name="lastname"/> |
|||
<field name="birthdate"/> |
|||
<field name="gender"/> |
|||
<field name="email"/> |
|||
<field name="phone"/> |
|||
<field name="iban"/> |
|||
</group> |
|||
<group> |
|||
<field name="address"/> |
|||
<field name="zip_code"/> |
|||
<field name="city"/> |
|||
<field name="country_id"/> |
|||
<field name="lang"/> |
|||
<field name="validated"/> |
|||
<field name="skip_control_ng"/> |
|||
<field name="ordered_parts" invisible="True"/> |
|||
<field name="source" invisible="True"/> |
|||
<field name="state" invisible="True"/> |
|||
<field name="share_product_id" invisible="True"/> |
|||
</group> |
|||
</group> |
|||
</sheet> |
|||
</form> |
|||
</field> |
|||
</group> |
|||
</sheet> |
|||
</form> |
|||
</field> |
|||
</record> |
|||
<sheet> |
|||
<group> |
|||
<group> |
|||
<field name="request_date" |
|||
attrs="{'readonly':[('state','!=','draft')]}"/> |
|||
<field name="operation_type" |
|||
attrs="{'readonly':[('state','!=','draft')]}"/> |
|||
<field name="receiver_not_member" |
|||
attrs="{'invisible':[('operation_type','!=','transfer')]}"/> |
|||
<field name="partner_id" |
|||
options="{'no_create':True}" |
|||
attrs="{'readonly':[('state','!=','draft')]}"/> |
|||
<field name="partner_id_to" |
|||
options="{'no_create':True}" |
|||
attrs="{'invisible':['|',('operation_type','!=','transfer'), ('receiver_not_member','=',True)]}"/> |
|||
</group> |
|||
<group> |
|||
<field name="user_id"/> |
|||
<field name="share_product_id" |
|||
attrs="{'readonly':[('state','!=','draft')]}" |
|||
widget="selection"/> |
|||
<field name="share_short_name" readonly="True"/> |
|||
<field name="share_to_product_id" |
|||
attrs="{'invisible':[('operation_type','!=','convert')],'required':[('operation_type','=','convert')],'readonly':[('state','!=','draft')]}" |
|||
widget="selection"/> |
|||
<field name="share_to_short_name" readonly="True"/> |
|||
<field name="quantity" |
|||
attrs="{'readonly':[('state','!=','draft')]}"/> |
|||
<field name="share_unit_price" readonly="True"/> |
|||
<field name="subscription_amount" readonly="True"/> |
|||
</group> |
|||
</group> |
|||
<group> |
|||
<field name="subscription_request" |
|||
attrs="{'invisible':['|',('operation_type','!=','transfer'),('receiver_not_member','=',False)]}" |
|||
context="{'default_is_operation': True, 'default_ordered_parts':quantity,'default_share_product_id': share_product_id, 'default_source':'operation'}"> |
|||
<tree> |
|||
<field name="name"/> |
|||
<field name="birthdate"/> |
|||
<field name="phone"/> |
|||
<field name="email"/> |
|||
<field name="iban"/> |
|||
<field name="state" invisible="True"/> |
|||
</tree> |
|||
<form string="Subscription Requests"> |
|||
<sheet> |
|||
<group> |
|||
<group> |
|||
<field name="name"/> |
|||
<field name="firstname"/> |
|||
<field name="lastname"/> |
|||
<field name="birthdate"/> |
|||
<field name="gender"/> |
|||
<field name="email"/> |
|||
<field name="phone"/> |
|||
<field name="iban"/> |
|||
</group> |
|||
<group> |
|||
<field name="address"/> |
|||
<field name="zip_code"/> |
|||
<field name="city"/> |
|||
<field name="country_id"/> |
|||
<field name="lang"/> |
|||
<field name="validated"/> |
|||
<field name="skip_control_ng"/> |
|||
<field name="ordered_parts" |
|||
invisible="True"/> |
|||
<field name="source" |
|||
invisible="True"/> |
|||
<field name="state" |
|||
invisible="True"/> |
|||
<field name="share_product_id" |
|||
invisible="True"/> |
|||
</group> |
|||
</group> |
|||
</sheet> |
|||
</form> |
|||
</field> |
|||
</group> |
|||
</sheet> |
|||
</form> |
|||
</field> |
|||
</record> |
|||
|
|||
<record id="operation_request_action" model="ir.actions.act_window"> |
|||
<field name="name">Operation request</field> |
|||
<field name="res_model">operation.request</field> |
|||
<field name="view_type">form</field> |
|||
<field name="view_id" ref="operation_request_tree"/> |
|||
</record> |
|||
<record id="operation_request_action" model="ir.actions.act_window"> |
|||
<field name="name">Operation request</field> |
|||
<field name="res_model">operation.request</field> |
|||
<field name="view_type">form</field> |
|||
<field name="view_id" ref="operation_request_tree"/> |
|||
</record> |
|||
|
|||
</odoo> |
@ -1,153 +1,168 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<odoo> |
|||
<record id="product_template_share_form_view" model="ir.ui.view"> |
|||
<field name="name">product.template.share.form</field> |
|||
<field name="model">product.template</field> |
|||
<field name="inherit_id" ref="product.product_template_form_view"/> |
|||
<field name="arch" type="xml"> |
|||
<xpath expr="//field[@name='purchase_ok']/.." position="after"> |
|||
<div groups="easy_my_coop.group_easy_my_coop_manager"> |
|||
<field name="is_share"/> |
|||
<label for="is_share"/> |
|||
</div> |
|||
<div attrs="{'invisible':[('is_share','=',False)]}" groups="easy_my_coop.group_easy_my_coop_user"> |
|||
<field name="display_on_website"/> |
|||
<label for="display_on_website"/> |
|||
</div> |
|||
</xpath> |
|||
<page name="general_information" position="after"> |
|||
<page string="Share Information" name="share_information" attrs="{'invisible':[('is_share','=',False)]}" groups="easy_my_coop.group_easy_my_coop_user"> |
|||
<group> |
|||
<group name="Info" string="Info"> |
|||
<field name="short_name"/> |
|||
<field name="default_share_product"/> |
|||
<field name="mail_template"/> |
|||
</group> |
|||
<group name="configuration" string="Configuration"> |
|||
<field name="force_min_qty"/> |
|||
<field name="minimum_quantity"/> |
|||
<field name="customer" attrs="{'invisible':[('is_share','=',False)]}"/> |
|||
<field name="by_company"/> |
|||
<field name="by_individual"/> |
|||
</group> |
|||
</group> |
|||
</page> |
|||
<record id="product_template_share_form_view" model="ir.ui.view"> |
|||
<field name="name">product.template.share.form</field> |
|||
<field name="model">product.template</field> |
|||
<field name="inherit_id" ref="product.product_template_form_view"/> |
|||
<field name="arch" type="xml"> |
|||
<xpath expr="//field[@name='purchase_ok']/.." position="after"> |
|||
<div groups="easy_my_coop.group_easy_my_coop_manager"> |
|||
<field name="is_share"/> |
|||
<label for="is_share"/> |
|||
</div> |
|||
<div attrs="{'invisible':[('is_share','=',False)]}" |
|||
groups="easy_my_coop.group_easy_my_coop_user"> |
|||
<field name="display_on_website"/> |
|||
<label for="display_on_website"/> |
|||
</div> |
|||
</xpath> |
|||
<page name="general_information" position="after"> |
|||
<page string="Share Information" name="share_information" |
|||
attrs="{'invisible':[('is_share','=',False)]}" |
|||
groups="easy_my_coop.group_easy_my_coop_user"> |
|||
<group> |
|||
<group name="Info" string="Info"> |
|||
<field name="short_name"/> |
|||
<field name="default_share_product"/> |
|||
<field name="mail_template"/> |
|||
</group> |
|||
<group name="configuration" string="Configuration"> |
|||
<field name="force_min_qty"/> |
|||
<field name="minimum_quantity"/> |
|||
<field name="customer" |
|||
attrs="{'invisible':[('is_share','=',False)]}"/> |
|||
<field name="by_company"/> |
|||
<field name="by_individual"/> |
|||
</group> |
|||
</group> |
|||
</page> |
|||
</field> |
|||
</record> |
|||
|
|||
<record id="share_product_filter" model="ir.ui.view"> |
|||
<field name="name">product.template.share.filter</field> |
|||
<field name="model">product.template</field> |
|||
<field name="inherit_id" ref="product.product_template_search_view"/> |
|||
<field name="arch" type="xml"> |
|||
<xpath expr="." position="inside"> |
|||
<group expand="0" name="group_by" string="Group By"> |
|||
<filter name="Creation Date" context="{'group_by': 'create_date'}"/> |
|||
</group> |
|||
</xpath> |
|||
</field> |
|||
</record> |
|||
</page> |
|||
</field> |
|||
</record> |
|||
|
|||
<record id="product_template_only_form_view" model="ir.ui.view"> |
|||
<field name="name">product.template.product.form</field> |
|||
<field name="model">product.template</field> |
|||
<field name="inherit_id" ref="product.product_template_only_form_view"/> |
|||
<field name="arch" type="xml"> |
|||
<field name="default_code" position="attributes"> |
|||
<attribute name="attrs">{'required': [('is_share', '=', True)]}</attribute> |
|||
</field> |
|||
</field> |
|||
</record> |
|||
<record id="share_product_filter" model="ir.ui.view"> |
|||
<field name="name">product.template.share.filter</field> |
|||
<field name="model">product.template</field> |
|||
<field name="inherit_id" ref="product.product_template_search_view"/> |
|||
<field name="arch" type="xml"> |
|||
<xpath expr="." position="inside"> |
|||
<group expand="0" name="group_by" string="Group By"> |
|||
<filter name="Creation Date" |
|||
context="{'group_by': 'create_date'}"/> |
|||
</group> |
|||
</xpath> |
|||
</field> |
|||
</record> |
|||
|
|||
<record id="share_product_action" model="ir.actions.act_window"> |
|||
<field name="name">Share type</field> |
|||
<field name="type">ir.actions.act_window</field> |
|||
<field name="res_model">product.template</field> |
|||
<field name="view_type">form</field> |
|||
<field name="view_mode">kanban,tree,form</field> |
|||
<!-- <field name="context">{"search_default_filter_to_purchase":1}</field> --> |
|||
<field name="search_view_id" eval="False" /> <!-- Force empty --> |
|||
<field name="view_id" eval="False" /> <!-- Force empty --> |
|||
<field name="domain">[('is_share','=',True)]</field> |
|||
<field name="help" type="html"> |
|||
<p class="oe_view_nocontent_create"> |
|||
Click to define a new share product. |
|||
</p> |
|||
</field> |
|||
</record> |
|||
<record id="product_template_only_form_view" model="ir.ui.view"> |
|||
<field name="name">product.template.product.form</field> |
|||
<field name="model">product.template</field> |
|||
<field name="inherit_id" ref="product.product_template_only_form_view"/> |
|||
<field name="arch" type="xml"> |
|||
<field name="default_code" position="attributes"> |
|||
<attribute name="attrs">{'required': [('is_share', '=', |
|||
True)]} |
|||
</attribute> |
|||
</field> |
|||
</field> |
|||
</record> |
|||
|
|||
<record id="share_product_action" model="ir.actions.act_window"> |
|||
<field name="name">Share type</field> |
|||
<field name="type">ir.actions.act_window</field> |
|||
<field name="res_model">product.template</field> |
|||
<field name="view_type">form</field> |
|||
<field name="view_mode">kanban,tree,form</field> |
|||
<!-- <field name="context">{"search_default_filter_to_purchase":1}</field> --> |
|||
<field name="search_view_id" eval="False"/> <!-- Force empty --> |
|||
<field name="view_id" eval="False"/> <!-- Force empty --> |
|||
<field name="domain">[('is_share','=',True)]</field> |
|||
<field name="help" type="html"> |
|||
<p class="oe_view_nocontent_create"> |
|||
Click to define a new share product. |
|||
</p> |
|||
</field> |
|||
</record> |
|||
|
|||
<!-- overriding product views to not display share product in the purchase and sale views--> |
|||
|
|||
<record id="product.product_normal_action" model="ir.actions.act_window"> |
|||
<field name="name">Product</field> |
|||
<field name="type">ir.actions.act_window</field> |
|||
<field name="res_model">product.product</field> |
|||
<field name="view_mode">tree,form,kanban</field> |
|||
<field name="view_type">form</field> |
|||
<field name="search_view_id" ref="product.product_search_form_view"/> |
|||
<field name="view_id" eval="False"/> <!-- Force empty --> |
|||
<field name="domain">[('is_share','=',False)]</field> |
|||
<field name="help" type="html"> |
|||
<p class="oe_view_nocontent_create"> |
|||
Click to define a new product. |
|||
</p><p> |
|||
You must define a product for everything you sell, whether it's |
|||
a physical product, a consumable or a service you offer to |
|||
customers. |
|||
</p><p> |
|||
The product form contains information to simplify the sale |
|||
process: price, notes in the quotation, accounting data, |
|||
procurement methods, etc. |
|||
</p> |
|||
</field> |
|||
</record> |
|||
<!-- overriding product views to not display share product in the purchase and sale views--> |
|||
|
|||
<record id="product.product_template_action" model="ir.actions.act_window"> |
|||
<field name="name">Products</field> |
|||
<field name="type">ir.actions.act_window</field> |
|||
<field name="res_model">product.template</field> |
|||
<field name="view_mode">tree,form,kanban</field> |
|||
<field name="view_type">form</field> |
|||
<field name="view_id" ref="product.product_template_kanban_view"/> |
|||
<field name="context">{"search_default_filter_to_sell":1}</field> |
|||
<field name="domain">[('is_share','=',False)]</field> |
|||
<field name="help" type="html"> |
|||
<p class="oe_view_nocontent_create"> |
|||
Click to define a new product. |
|||
</p><p> |
|||
You must define a product for everything you sell, whether it's a physical product, a consumable or a service you offer to customers. |
|||
</p><p> |
|||
The product form contains information to simplify the sale process: price, notes in the quotation, accounting data, procurement methods, etc. |
|||
</p> |
|||
</field> |
|||
</record> |
|||
<record id="product.product_normal_action" model="ir.actions.act_window"> |
|||
<field name="name">Product</field> |
|||
<field name="type">ir.actions.act_window</field> |
|||
<field name="res_model">product.product</field> |
|||
<field name="view_mode">tree,form,kanban</field> |
|||
<field name="view_type">form</field> |
|||
<field name="search_view_id" ref="product.product_search_form_view"/> |
|||
<field name="view_id" eval="False"/> <!-- Force empty --> |
|||
<field name="domain">[('is_share','=',False)]</field> |
|||
<field name="help" type="html"> |
|||
<p class="oe_view_nocontent_create"> |
|||
Click to define a new product. |
|||
</p> |
|||
<p> |
|||
You must define a product for everything you sell, whether it's |
|||
a physical product, a consumable or a service you offer to |
|||
customers. |
|||
</p> |
|||
<p> |
|||
The product form contains information to simplify the sale |
|||
process: price, notes in the quotation, accounting data, |
|||
procurement methods, etc. |
|||
</p> |
|||
</field> |
|||
</record> |
|||
|
|||
<!-- move this action to another module cause the original action has been |
|||
moved to purchase module. So we want to avoid make purchase module installed |
|||
<record id="product.product_normal_action_puchased" model="ir.actions.act_window"> |
|||
<record id="product.product_template_action" model="ir.actions.act_window"> |
|||
<field name="name">Products</field> |
|||
<field name="type">ir.actions.act_window</field> |
|||
<field name="res_model">product.template</field> |
|||
<field name="view_mode">tree,form,kanban</field> |
|||
<field name="view_type">form</field> |
|||
<field name="view_mode">kanban,tree,form</field> |
|||
<field name="context">{"search_default_filter_to_purchase":1}</field> |
|||
<field name="search_view_id" eval="False"/> Force empty |
|||
<field name="view_id" eval="False"/> Force empty |
|||
<field name="view_id" ref="product.product_template_kanban_view"/> |
|||
<field name="context">{"search_default_filter_to_sell":1}</field> |
|||
<field name="domain">[('is_share','=',False)]</field> |
|||
<field name="help" type="html"> |
|||
<p class="oe_view_nocontent_create"> |
|||
Click to define a new product. |
|||
</p><p> |
|||
You must define a product for everything you purchase, whether |
|||
it's a physical product, a consumable or services you buy to |
|||
subcontractants. |
|||
</p><p> |
|||
The product form contains detailed information to improve the |
|||
purchase process: prices, procurement logistics, accounting data, |
|||
available vendors, etc. |
|||
</p> |
|||
<p class="oe_view_nocontent_create"> |
|||
Click to define a new product. |
|||
</p> |
|||
<p> |
|||
You must define a product for everything you sell, whether it's |
|||
a physical product, a consumable or a service you offer to |
|||
customers. |
|||
</p> |
|||
<p> |
|||
The product form contains information to simplify the sale |
|||
process: price, notes in the quotation, accounting data, |
|||
procurement methods, etc. |
|||
</p> |
|||
</field> |
|||
</record> --> |
|||
</record> |
|||
|
|||
<!-- move this action to another module cause the original action has been |
|||
moved to purchase module. So we want to avoid make purchase module installed |
|||
<record id="product.product_normal_action_puchased" model="ir.actions.act_window"> |
|||
<field name="name">Products</field> |
|||
<field name="type">ir.actions.act_window</field> |
|||
<field name="res_model">product.template</field> |
|||
<field name="view_type">form</field> |
|||
<field name="view_mode">kanban,tree,form</field> |
|||
<field name="context">{"search_default_filter_to_purchase":1}</field> |
|||
<field name="search_view_id" eval="False"/> Force empty |
|||
<field name="view_id" eval="False"/> Force empty |
|||
<field name="domain">[('is_share','=',False)]</field> |
|||
<field name="help" type="html"> |
|||
<p class="oe_view_nocontent_create"> |
|||
Click to define a new product. |
|||
</p><p> |
|||
You must define a product for everything you purchase, whether |
|||
it's a physical product, a consumable or services you buy to |
|||
subcontractants. |
|||
</p><p> |
|||
The product form contains detailed information to improve the |
|||
purchase process: prices, procurement logistics, accounting data, |
|||
available vendors, etc. |
|||
</p> |
|||
</field> |
|||
</record> --> |
|||
</odoo> |
@ -1,34 +1,35 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<odoo> |
|||
<record model="ir.ui.view" id="view_company_inherit_form2"> |
|||
<field name="name">res.company.form.easymy.coop</field> |
|||
<field name="inherit_id" ref="base.view_company_form"/> |
|||
<field name="model">res.company</field> |
|||
<field name="arch" type="xml"> |
|||
<group name="social_media" position="before"> |
|||
<group name="coop_grp" string="EasyMy Coop" groups="easy_my_coop.group_easy_my_coop_user"> |
|||
<field name="unmix_share_type"/> |
|||
<field name="allow_id_card_upload"/> |
|||
<field name="create_user"/> |
|||
<field name="display_logo1"/> |
|||
<field name="bottom_logo1"/> |
|||
<field name="display_logo2"/> |
|||
<field name="bottom_logo2"/> |
|||
<field name="coop_email_contact"/> |
|||
<field name="subscription_maximum_amount"/> |
|||
<field name="property_cooperator_account"/> |
|||
<field name="default_country_id"/> |
|||
<field name="default_lang_id"/> |
|||
<field name="board_representative"/> |
|||
<field name="signature_scan"/> |
|||
<field name="display_data_policy_approval"/> |
|||
<field name="data_policy_approval_required"/> |
|||
<field name="data_policy_approval_text"/> |
|||
<field name="display_internal_rules_approval"/> |
|||
<field name="internal_rules_approval_required"/> |
|||
<field name="internal_rules_approval_text"/> |
|||
</group> |
|||
</group> |
|||
</field> |
|||
</record> |
|||
<record model="ir.ui.view" id="view_company_inherit_form2"> |
|||
<field name="name">res.company.form.easymy.coop</field> |
|||
<field name="inherit_id" ref="base.view_company_form"/> |
|||
<field name="model">res.company</field> |
|||
<field name="arch" type="xml"> |
|||
<group name="social_media" position="before"> |
|||
<group name="coop_grp" string="EasyMy Coop" |
|||
groups="easy_my_coop.group_easy_my_coop_user"> |
|||
<field name="unmix_share_type"/> |
|||
<field name="allow_id_card_upload"/> |
|||
<field name="create_user"/> |
|||
<field name="display_logo1"/> |
|||
<field name="bottom_logo1"/> |
|||
<field name="display_logo2"/> |
|||
<field name="bottom_logo2"/> |
|||
<field name="coop_email_contact"/> |
|||
<field name="subscription_maximum_amount"/> |
|||
<field name="property_cooperator_account"/> |
|||
<field name="default_country_id"/> |
|||
<field name="default_lang_id"/> |
|||
<field name="board_representative"/> |
|||
<field name="signature_scan"/> |
|||
<field name="display_data_policy_approval"/> |
|||
<field name="data_policy_approval_required"/> |
|||
<field name="data_policy_approval_text"/> |
|||
<field name="display_internal_rules_approval"/> |
|||
<field name="internal_rules_approval_required"/> |
|||
<field name="internal_rules_approval_text"/> |
|||
</group> |
|||
</group> |
|||
</field> |
|||
</record> |
|||
</odoo> |
@ -1,171 +1,225 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<!-- |
|||
Copyright 2019 Coop IT Easy |
|||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). |
|||
--> |
|||
<odoo> |
|||
<data> |
|||
<record id="view_partner_form_easy_my_coop" model="ir.ui.view"> |
|||
<field name="name">res.partner.form.easy_my_coop</field> |
|||
<field name="model">res.partner</field> |
|||
<field name="inherit_id" ref="base.view_partner_form"/> |
|||
<field name="arch" type="xml"> |
|||
<sheet position="before"> |
|||
<header> |
|||
<button string="Create Subscription" name="%(action_view_create_subscription)d" |
|||
type="action" context="{'default_active_id': active_id}" groups="easy_my_coop.group_easy_my_coop_user"/> |
|||
<button id="action_view_update_partner_info" string="Update info" name="%(action_view_update_partner_info)d" |
|||
type="action" context="{'default_active_id': active_id}" groups="easy_my_coop.group_easy_my_coop_user"/> |
|||
</header> |
|||
</sheet> |
|||
|
|||
<xpath expr="/form/sheet/group" position='before'> |
|||
<group> |
|||
<group> |
|||
<field name="representative" attrs="{'invisible':['|',('parent_id','=',False),('is_company','=',True)]}"/> |
|||
<field name="cooperator_register_number" readonly="True" attrs="{'invisible':[('member','=',False)]}"/> |
|||
<field name="company_register_number" readonly="True" attrs="{'invisible':[('is_company','=',False)]}"/> |
|||
<field name="coop_candidate" groups="easy_my_coop.group_easy_my_coop_user"/> |
|||
<field name="cooperator" invisible="True" groups="easy_my_coop.group_easy_my_coop_manager"/> |
|||
<field name="member" groups="easy_my_coop.group_easy_my_coop_manager"/> |
|||
<field name="cooperator_type" attrs="{'invisible':[('member','=',False)]}"/> |
|||
<field name="effective_date" attrs="{'invisible':[('member','=',False)]}"/> |
|||
</group> |
|||
<group> |
|||
<field name="gender" attrs="{'invisible':[('is_company','=',True)]}"/> |
|||
</group> |
|||
<group name="approvals"> |
|||
<field name="internal_rules_approved" /> |
|||
<field name="data_policy_approved" /> |
|||
</group> |
|||
</group> |
|||
</xpath> |
|||
|
|||
<page name='sales_purchases' position="after"> |
|||
<page string="Shares" name="share" attrs="{'invisible':[('member','=',False)]}" groups="easy_my_coop.group_easy_my_coop_user"> |
|||
<group> |
|||
<field name="number_of_share"/> |
|||
<field name="total_value"/> |
|||
</group> |
|||
<field name="share_ids"> |
|||
<tree create="false"> |
|||
<field name="effective_date"/> |
|||
<field name="share_short_name"/> |
|||
<field name="share_number" sum="Total of shares"/> |
|||
<field name="share_unit_price"/> |
|||
<field name="total_amount_line" sum="Total subscribed amount"/> |
|||
</tree> |
|||
</field> |
|||
</page> |
|||
<page string="Share subscriptions" name="share_subscription" attrs="{'invisible':[('cooperator','=',False)]}" groups="easy_my_coop.group_easy_my_coop_user"> |
|||
<field name="subscription_request_ids"> |
|||
<tree create="false" delete="false" edit="false"> |
|||
<field name="share_short_name"/> |
|||
<field name="ordered_parts" sum="Total of shares"/> |
|||
<field name="share_unit_price"/> |
|||
<field name="subscription_amount" sum="Total subscribed amount"/> |
|||
<field name="type"/> |
|||
<field name="state"/> |
|||
</tree> |
|||
</field> |
|||
</page> |
|||
</page> |
|||
</field> |
|||
</record> |
|||
|
|||
<record id="view_partner_tree_easy_my_coop" model="ir.ui.view"> |
|||
<field name="name">res.partner.tree.easy_my_coop</field> |
|||
<field name="model">res.partner</field> |
|||
<field name="inherit_id" ref="base.view_partner_tree"/> |
|||
<field name="arch" type="xml"> |
|||
<xpath expr="/tree/field[@name='display_name']" position='after'> |
|||
<field name="cooperator_register_number" /> |
|||
<field name="cooperator_type"/> |
|||
<field name="effective_date"/> |
|||
</xpath> |
|||
</field> |
|||
</record> |
|||
|
|||
<record id="view_res_partner_filter_coop" model="ir.ui.view"> |
|||
<field name="name">res.partner.select</field> |
|||
<field name="model">res.partner</field> |
|||
<field name="inherit_id" ref="base.view_res_partner_filter"/> |
|||
<field name="arch" type="xml"> |
|||
<filter name="supplier" position='after'> |
|||
<filter string="Cooperators" name="cooperators" domain="[('member','=',1)]" help="Cooperator Partners"/> |
|||
<filter string="Old Cooperators" name="old_cooperators" domain="[('old_member','=',1)]" help="Cooperator Partners"/> |
|||
<filter string="Cooperator Candidates" name="cooperator_candidates" domain="[('coop_candidate','=',1)]" help="Cooperator Partners"/> |
|||
</filter> |
|||
<filter name="salesperson" position="before"> |
|||
<filter string="Cooperator Type" name="group_by_cooperator_type" context="{'group_by': 'cooperator_type'}"/> |
|||
</filter> |
|||
</field> |
|||
</record> |
|||
|
|||
<record id="action_partner_cooperator_form" model="ir.actions.act_window"> |
|||
<field name="name">Cooperators</field> |
|||
<field name="res_model">res.partner</field> |
|||
<field name="view_type">form</field> |
|||
<field name="view_mode">kanban,tree,form</field> |
|||
<field name="domain">['|', ('cooperator','=',True), '|', ('member','=',True),('old_member','=', True)]</field> |
|||
<field name="context">{'default_cooperator':1, 'search_default_cooperators':1}</field> |
|||
<field name="help" type="html"> |
|||
<p class="oe_view_nocontent_create"> |
|||
Click to add a contact in your address book. |
|||
</p><p> |
|||
OpenERP helps you easily track all activities related to |
|||
a cooperator: discussions, history of business opportunities, |
|||
documents, etc. |
|||
</p> |
|||
</field> |
|||
</record> |
|||
|
|||
<record id="action_partner_cooperator_candidate_form" model="ir.actions.act_window"> |
|||
<field name="name">Cooperator candidates</field> |
|||
<field name="type">ir.actions.act_window</field> |
|||
<field name="res_model">res.partner</field> |
|||
<field name="view_type">form</field> |
|||
<field name="view_mode">kanban,tree,form</field> |
|||
<field name="domain">[('cooperator','=',True)]</field> |
|||
<field name="context">{'default_cooperator':1, 'search_default_cooperator_candidates':1}</field> |
|||
<field name="filter" eval="True"/> |
|||
<field name="help" type="html"> |
|||
<p class="oe_view_nocontent_create"> |
|||
Click to add a contact in your address book. |
|||
</p><p> |
|||
OpenERP helps you easily track all activities related to |
|||
a cooperator: discussions, history of business opportunities, |
|||
documents, etc. |
|||
</p> |
|||
</field> |
|||
</record> |
|||
|
|||
<record id="action_company_representative_form" model="ir.actions.act_window"> |
|||
<field name="name">Company representative</field> |
|||
<field name="type">ir.actions.act_window</field> |
|||
<field name="res_model">res.partner</field> |
|||
<field name="view_type">form</field> |
|||
<field name="view_mode">kanban,tree,form</field> |
|||
<field name="domain">[('cooperator','=',True),('representative','=',True)]</field> |
|||
<field name="filter" eval="True"/> |
|||
<field name="help" type="html"> |
|||
<p class="oe_view_nocontent_create"> |
|||
Click to add a contact in your address book. |
|||
</p><p> |
|||
OpenERP helps you easily track all activities related to |
|||
a cooperator: discussions, history of business opportunities, |
|||
documents, etc. |
|||
</p> |
|||
</field> |
|||
</record> |
|||
|
|||
<record id="remove_partner_follower" model="ir.ui.view"> |
|||
<field name="name">res.partner.remove.follower.inherit</field> |
|||
<field name="model">res.partner</field> |
|||
<field name="inherit_id" ref="mail.res_partner_view_form_inherit_mail"/> |
|||
<field name="arch" type="xml"> |
|||
<field name="message_follower_ids" position="replace"/> |
|||
</field> |
|||
</record> |
|||
</data> |
|||
</odoo> |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<!-- |
|||
Copyright 2019 Coop IT Easy |
|||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). |
|||
--> |
|||
<odoo> |
|||
<data> |
|||
<record id="view_partner_form_easy_my_coop" model="ir.ui.view"> |
|||
<field name="name">res.partner.form.easy_my_coop</field> |
|||
<field name="model">res.partner</field> |
|||
<field name="inherit_id" ref="base.view_partner_form"/> |
|||
<field name="arch" type="xml"> |
|||
<sheet position="before"> |
|||
<header> |
|||
<button string="Create Subscription" |
|||
name="%(action_view_create_subscription)d" |
|||
type="action" |
|||
context="{'default_active_id': active_id}" |
|||
groups="easy_my_coop.group_easy_my_coop_user"/> |
|||
<button id="action_view_update_partner_info" |
|||
string="Update info" |
|||
name="%(action_view_update_partner_info)d" |
|||
type="action" |
|||
context="{'default_active_id': active_id}" |
|||
groups="easy_my_coop.group_easy_my_coop_user"/> |
|||
</header> |
|||
</sheet> |
|||
|
|||
<xpath expr="/form/sheet/group" position='before'> |
|||
<group> |
|||
<group> |
|||
<field name="representative" |
|||
attrs="{'invisible':['|',('parent_id','=',False),('is_company','=',True)]}"/> |
|||
<field name="cooperator_register_number" |
|||
readonly="True" |
|||
attrs="{'invisible':[('member','=',False)]}"/> |
|||
<field name="company_register_number" |
|||
readonly="True" |
|||
attrs="{'invisible':[('is_company','=',False)]}"/> |
|||
<field name="coop_candidate" |
|||
groups="easy_my_coop.group_easy_my_coop_user"/> |
|||
<field name="cooperator" invisible="True" |
|||
groups="easy_my_coop.group_easy_my_coop_manager"/> |
|||
<field name="member" |
|||
groups="easy_my_coop.group_easy_my_coop_manager"/> |
|||
<field name="cooperator_type" |
|||
attrs="{'invisible':[('member','=',False)]}"/> |
|||
<field name="effective_date" |
|||
attrs="{'invisible':[('member','=',False)]}"/> |
|||
</group> |
|||
<group> |
|||
<field name="gender" |
|||
attrs="{'invisible':[('is_company','=',True)]}"/> |
|||
</group> |
|||
<group name="approvals"> |
|||
<field name="internal_rules_approved"/> |
|||
<field name="data_policy_approved"/> |
|||
</group> |
|||
</group> |
|||
</xpath> |
|||
|
|||
<page name='sales_purchases' position="after"> |
|||
<page string="Shares" name="share" |
|||
attrs="{'invisible':[('member','=',False)]}" |
|||
groups="easy_my_coop.group_easy_my_coop_user"> |
|||
<group> |
|||
<field name="number_of_share"/> |
|||
<field name="total_value"/> |
|||
</group> |
|||
<field name="share_ids"> |
|||
<tree create="false"> |
|||
<field name="effective_date"/> |
|||
<field name="share_short_name"/> |
|||
<field name="share_number" |
|||
sum="Total of shares"/> |
|||
<field name="share_unit_price"/> |
|||
<field name="total_amount_line" |
|||
sum="Total subscribed amount"/> |
|||
</tree> |
|||
</field> |
|||
</page> |
|||
<page string="Share subscriptions" name="share_subscription" |
|||
attrs="{'invisible':[('cooperator','=',False)]}" |
|||
groups="easy_my_coop.group_easy_my_coop_user"> |
|||
<field name="subscription_request_ids"> |
|||
<tree create="false" delete="false" edit="false"> |
|||
<field name="share_short_name"/> |
|||
<field name="ordered_parts" |
|||
sum="Total of shares"/> |
|||
<field name="share_unit_price"/> |
|||
<field name="subscription_amount" |
|||
sum="Total subscribed amount"/> |
|||
<field name="type"/> |
|||
<field name="state"/> |
|||
</tree> |
|||
</field> |
|||
</page> |
|||
</page> |
|||
</field> |
|||
</record> |
|||
|
|||
<record id="view_partner_tree_easy_my_coop" model="ir.ui.view"> |
|||
<field name="name">res.partner.tree.easy_my_coop</field> |
|||
<field name="model">res.partner</field> |
|||
<field name="inherit_id" ref="base.view_partner_tree"/> |
|||
<field name="arch" type="xml"> |
|||
<xpath expr="/tree/field[@name='display_name']" |
|||
position='after'> |
|||
<field name="cooperator_register_number"/> |
|||
<field name="cooperator_type"/> |
|||
<field name="effective_date"/> |
|||
</xpath> |
|||
</field> |
|||
</record> |
|||
|
|||
<record id="view_res_partner_filter_coop" model="ir.ui.view"> |
|||
<field name="name">res.partner.select</field> |
|||
<field name="model">res.partner</field> |
|||
<field name="inherit_id" ref="base.view_res_partner_filter"/> |
|||
<field name="arch" type="xml"> |
|||
<filter name="supplier" position='after'> |
|||
<filter string="Cooperators" name="cooperators" |
|||
domain="[('member','=',1)]" |
|||
help="Cooperator Partners"/> |
|||
<filter string="Old Cooperators" name="old_cooperators" |
|||
domain="[('old_member','=',1)]" |
|||
help="Cooperator Partners"/> |
|||
<filter string="Cooperator Candidates" |
|||
name="cooperator_candidates" |
|||
domain="[('coop_candidate','=',1)]" |
|||
help="Cooperator Partners"/> |
|||
</filter> |
|||
<filter name="salesperson" position="before"> |
|||
<filter string="Cooperator Type" |
|||
name="group_by_cooperator_type" |
|||
context="{'group_by': 'cooperator_type'}"/> |
|||
</filter> |
|||
</field> |
|||
</record> |
|||
|
|||
<record id="action_partner_cooperator_form" |
|||
model="ir.actions.act_window"> |
|||
<field name="name">Cooperators</field> |
|||
<field name="res_model">res.partner</field> |
|||
<field name="view_type">form</field> |
|||
<field name="view_mode">kanban,tree,form</field> |
|||
<field name="domain">['|', ('cooperator','=',True), '|', |
|||
('member','=',True),('old_member','=', True)] |
|||
</field> |
|||
<field name="context">{'default_cooperator':1, |
|||
'search_default_cooperators':1} |
|||
</field> |
|||
<field name="help" type="html"> |
|||
<p class="oe_view_nocontent_create"> |
|||
Click to add a contact in your address book. |
|||
</p> |
|||
<p> |
|||
OpenERP helps you easily track all activities related to |
|||
a cooperator: discussions, history of business |
|||
opportunities, |
|||
documents, etc. |
|||
</p> |
|||
</field> |
|||
</record> |
|||
|
|||
<record id="action_partner_cooperator_candidate_form" |
|||
model="ir.actions.act_window"> |
|||
<field name="name">Cooperator candidates</field> |
|||
<field name="type">ir.actions.act_window</field> |
|||
<field name="res_model">res.partner</field> |
|||
<field name="view_type">form</field> |
|||
<field name="view_mode">kanban,tree,form</field> |
|||
<field name="domain">[('cooperator','=',True)]</field> |
|||
<field name="context">{'default_cooperator':1, |
|||
'search_default_cooperator_candidates':1} |
|||
</field> |
|||
<field name="filter" eval="True"/> |
|||
<field name="help" type="html"> |
|||
<p class="oe_view_nocontent_create"> |
|||
Click to add a contact in your address book. |
|||
</p> |
|||
<p> |
|||
OpenERP helps you easily track all activities related to |
|||
a cooperator: discussions, history of business |
|||
opportunities, |
|||
documents, etc. |
|||
</p> |
|||
</field> |
|||
</record> |
|||
|
|||
<record id="action_company_representative_form" |
|||
model="ir.actions.act_window"> |
|||
<field name="name">Company representative</field> |
|||
<field name="type">ir.actions.act_window</field> |
|||
<field name="res_model">res.partner</field> |
|||
<field name="view_type">form</field> |
|||
<field name="view_mode">kanban,tree,form</field> |
|||
<field name="domain"> |
|||
[('cooperator','=',True),('representative','=',True)] |
|||
</field> |
|||
<field name="filter" eval="True"/> |
|||
<field name="help" type="html"> |
|||
<p class="oe_view_nocontent_create"> |
|||
Click to add a contact in your address book. |
|||
</p> |
|||
<p> |
|||
OpenERP helps you easily track all activities related to |
|||
a cooperator: discussions, history of business |
|||
opportunities, |
|||
documents, etc. |
|||
</p> |
|||
</field> |
|||
</record> |
|||
|
|||
<record id="remove_partner_follower" model="ir.ui.view"> |
|||
<field name="name">res.partner.remove.follower.inherit</field> |
|||
<field name="model">res.partner</field> |
|||
<field name="inherit_id" |
|||
ref="mail.res_partner_view_form_inherit_mail"/> |
|||
<field name="arch" type="xml"> |
|||
<field name="message_follower_ids" position="replace"/> |
|||
</field> |
|||
</record> |
|||
</data> |
|||
</odoo> |
@ -1,26 +1,38 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<odoo> |
|||
<data> |
|||
<template id="subscription_i18n_ch" inherit_id="easy_my_coop_website.becomecooperator" name="Removing fields"> |
|||
<xpath expr="//label[@for='iban']/.." position="replace"> |
|||
<div t-attf-class="form-group #{error and 'iban' in error and 'has-error' or ''}"> |
|||
<label class="col-md-3 col-sm-4 control-label" for="iban">Bank Account Number</label> |
|||
<div class="col-md-7 col-sm-8"> |
|||
<input type="text" class="form-control mandatory-field" name="iban" t-attf-value="#{iban or ''}" placeholder="BE48523080767127"/> |
|||
</div> |
|||
</div> |
|||
</xpath> |
|||
</template> |
|||
<data> |
|||
<template id="subscription_i18n_ch" |
|||
inherit_id="easy_my_coop_website.becomecooperator" |
|||
name="Removing fields"> |
|||
<xpath expr="//label[@for='iban']/.." position="replace"> |
|||
<div t-attf-class="form-group #{error and 'iban' in error and 'has-error' or ''}"> |
|||
<label class="col-md-3 col-sm-4 control-label" for="iban"> |
|||
Bank Account Number |
|||
</label> |
|||
<div class="col-md-7 col-sm-8"> |
|||
<input type="text" class="form-control mandatory-field" |
|||
name="iban" t-attf-value="#{iban or ''}" |
|||
placeholder="BE48523080767127"/> |
|||
</div> |
|||
</div> |
|||
</xpath> |
|||
</template> |
|||
|
|||
<template id="company_subscription_i18n_ch" inherit_id="easy_my_coop_website.becomecompanycooperator" name="Company Removing fields"> |
|||
<xpath expr="//label[@for='iban']/.." position="replace"> |
|||
<div t-attf-class="form-group #{error and 'iban' in error and 'has-error' or ''}"> |
|||
<label class="col-md-3 col-sm-4 control-label" for="iban">Bank Account Number</label> |
|||
<div class="col-md-7 col-sm-8"> |
|||
<input type="text" class="form-control mandatory-field" name="iban" t-attf-value="#{iban or ''}" placeholder="BE48523080767127"/> |
|||
</div> |
|||
</div> |
|||
</xpath> |
|||
</template> |
|||
</data> |
|||
<template id="company_subscription_i18n_ch" |
|||
inherit_id="easy_my_coop_website.becomecompanycooperator" |
|||
name="Company Removing fields"> |
|||
<xpath expr="//label[@for='iban']/.." position="replace"> |
|||
<div t-attf-class="form-group #{error and 'iban' in error and 'has-error' or ''}"> |
|||
<label class="col-md-3 col-sm-4 control-label" for="iban"> |
|||
Bank Account Number |
|||
</label> |
|||
<div class="col-md-7 col-sm-8"> |
|||
<input type="text" class="form-control mandatory-field" |
|||
name="iban" t-attf-value="#{iban or ''}" |
|||
placeholder="BE48523080767127"/> |
|||
</div> |
|||
</div> |
|||
</xpath> |
|||
</template> |
|||
</data> |
|||
</odoo> |
@ -1,12 +1,14 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<odoo> |
|||
<record id="product_template_form_view_eater" model="ir.ui.view"> |
|||
<record id="product_template_form_view_eater" model="ir.ui.view"> |
|||
<field name="name">product.template.share.form</field> |
|||
<field name="model">product.template</field> |
|||
<field name="inherit_id" ref="easy_my_coop.product_template_share_form_view"/> |
|||
<field name="inherit_id" |
|||
ref="easy_my_coop.product_template_share_form_view"/> |
|||
<field name="arch" type="xml"> |
|||
<xpath expr="//field[@name='minimum_quantity']" position="after"> |
|||
<field name="eater" attrs="{'invisible':[('is_share','=',False)]}"/> |
|||
<field name="eater" |
|||
attrs="{'invisible':[('is_share','=',False)]}"/> |
|||
</xpath> |
|||
</field> |
|||
</record> |
|||
|
@ -1,49 +1,115 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<odoo> |
|||
<data> |
|||
<template id="certificate_i18n_fr" inherit_id="easy_my_coop.cooperator_certificat_G001_document" name="French Layout Certificate"> |
|||
<xpath expr="//p[@name='label_coop_number']" position="replace"> |
|||
<p name="label_coop_number" class="mt16"> |
|||
<span>Ce document atteste de la souscription de parts sociales au capital de la SAS Coopérative à Capital Variable SuperQuinquin par </span> |
|||
<b><span t-field="o.name"></span></b> |
|||
<span>, enregistré(e) sous le <b>numéro de coopérateur </b></span> |
|||
<span t-field="o.cooperator_register_number"></span> |
|||
</p> |
|||
</xpath> |
|||
<data> |
|||
<template id="certificate_i18n_fr" |
|||
inherit_id="easy_my_coop.cooperator_certificat_G001_document" |
|||
name="French Layout Certificate"> |
|||
<xpath expr="//p[@name='label_coop_number']" position="replace"> |
|||
<p name="label_coop_number" class="mt16"> |
|||
<span>Ce document atteste de la souscription de parts |
|||
sociales au capital de la SAS Coopérative à Capital |
|||
Variable SuperQuinquin par |
|||
</span> |
|||
<b> |
|||
<span t-field="o.name"></span> |
|||
</b> |
|||
<span>, enregistré(e) sous le |
|||
<b>numéro de coopérateur</b> |
|||
</span> |
|||
<span t-field="o.cooperator_register_number"></span> |
|||
</p> |
|||
</xpath> |
|||
|
|||
<xpath expr="//div[@name='total_table']" position="after"> |
|||
<div name="legal_text" style="position:relative;top:145px;font-size:12;"> |
|||
<div>Ce document atteste d’une souscription en numéraire au capital d’une société, répondant à la définition communautaire de la Petite et Moyenne Entreprise, dont les titres ne sont pas admis aux négociations sur un marché d’instruments financiers français ou étranger en application de l’article 199 terdecies 0A du CGI.<br/> |
|||
Conformément aux statuts, les souscriptions de parts sociales de type A et B n’ouvre pas droit à rémunération.<br/> |
|||
La société remplit les conditions mentionnées aux c, d et e du 2° du I de l’article 199 terdecies-0 A du code général des impôts : <br/> |
|||
c) La société est soumise à l’impôt sur les sociétés dans les conditions de droit commun ;<br/> |
|||
<br/> |
|||
c bis) La société compte au moins deux salariés à la clôture de son premier exercice ou un salarié si elle est soumise à l’obligation de s’inscrire à la chambre de métiers et de l’artisanat ;<br/> |
|||
<br/> |
|||
d) La société exerce une activité commerciale, industrielle, artisanale, libérale ou agricole, à l’exclusion des activités procurant des revenus garantis en raison de l’existence d’un tarif réglementé de rachat de la production, des activités financières, des activités de gestion de patrimoine mobilier définie à l’article 885 O quater et des activités immobilières. Toutefois, les exclusions relatives à l’exercice d’une activité financière ou immobilière ne sont pas applicables aux entreprises solidaires mentionnées à l’article L. 3332-17-1 du code du travail.<br/> |
|||
La société n’exerce pas une activité de production d’électricité utilisant l’énergie radiative du soleil ;<br/> |
|||
<br/> |
|||
d bis) Les actifs de la société ne sont pas constitués de façon prépondérante de métaux précieux, d’œuvres d’art, d’objets de collection, d’antiquités, de chevaux de course ou de concours ou, sauf si l’objet même de son activité consiste en leur consommation ou en leur vente au détail, de vins ou d’alcools ;<br/> |
|||
<br/> |
|||
d ter) Les souscriptions au capital de la société confèrent aux souscripteurs les seuls droits résultant de la qualité d’actionnaire ou d’associé, à l’exclusion de toute autre contrepartie notamment sous la forme de tarifs préférentiels ou d’accès prioritaire aux biens produits ou aux services rendus par la société ;<br/> |
|||
<br/> |
|||
e) La société doit être une petite et moyenne entreprise qui satisfait à la définition des petites et moyennes entreprises qui figure à l’annexe I au règlement (CE) n° 800/2008 de la Commission du 6 août 2008 déclarant certaines catégories d’aide compatibles avec le marché commun en application des articles 87 et 88 du traité (Règlement général d’exemption par catégorie) ;<br/> |
|||
</div> |
|||
</div> |
|||
</xpath> |
|||
<xpath expr="//div[@name='board_commitee']" position="replace"> |
|||
<div name="" class="col-xs-6 pull-left" style="position:relative;top:105px;font-size:20;color:black;font-family:Roboto-Regular;"> |
|||
<div style="position:relative;top:105px;"> |
|||
Pour le Conseil d'administration de <span t-field="o.company_id.name"/>. |
|||
</div> |
|||
<div style="position:relative;top:110px;"> |
|||
<strong><span t-field="o.company_id.board_representative"/></strong> |
|||
</div> |
|||
<div style="position:relative;top:115px;"> |
|||
<img t-if="o.company_id.signature_scan" t-att-src="'data:image/png;base64,%s' % o.company_id.signature_scan" style="width:240px;height:180px;padding-bottom:5px;"/> |
|||
</div> |
|||
<xpath expr="//div[@name='total_table']" position="after"> |
|||
<div name="legal_text" |
|||
style="position:relative;top:145px;font-size:12;"> |
|||
<div>Ce document atteste d’une souscription en numéraire au |
|||
capital d’une société, répondant à la définition |
|||
communautaire de la Petite et Moyenne Entreprise, dont |
|||
les titres ne sont pas admis aux négociations sur un |
|||
marché d’instruments financiers français ou étranger en |
|||
application de l’article 199 terdecies 0A du CGI. |
|||
<br/> |
|||
Conformément aux statuts, les souscriptions de parts |
|||
sociales de type A et B n’ouvre pas droit à |
|||
rémunération. |
|||
<br/> |
|||
La société remplit les conditions mentionnées aux c, d |
|||
et e du 2° du I de l’article 199 terdecies-0 A du code |
|||
général des impôts : |
|||
<br/> |
|||
c) La société est soumise à l’impôt sur les sociétés |
|||
dans les conditions de droit commun ; |
|||
<br/> |
|||
<br/> |
|||
c bis) La société compte au moins deux salariés à la |
|||
clôture de son premier exercice ou un salarié si elle |
|||
est soumise à l’obligation de s’inscrire à la chambre de |
|||
métiers et de l’artisanat ; |
|||
<br/> |
|||
<br/> |
|||
d) La société exerce une activité commerciale, |
|||
industrielle, artisanale, libérale ou agricole, à |
|||
l’exclusion des activités procurant des revenus garantis |
|||
en raison de l’existence d’un tarif réglementé de rachat |
|||
de la production, des activités financières, des |
|||
activités de gestion de patrimoine mobilier définie à |
|||
l’article 885 O quater et des activités immobilières. |
|||
Toutefois, les exclusions relatives à l’exercice d’une |
|||
activité financière ou immobilière ne sont pas |
|||
applicables aux entreprises solidaires mentionnées à |
|||
l’article L. 3332-17-1 du code du travail. |
|||
<br/> |
|||
La société n’exerce pas une activité de production |
|||
d’électricité utilisant l’énergie radiative du soleil ; |
|||
<br/> |
|||
<br/> |
|||
d bis) Les actifs de la société ne sont pas constitués |
|||
de façon prépondérante de métaux précieux, d’œuvres |
|||
d’art, d’objets de collection, d’antiquités, de chevaux |
|||
de course ou de concours ou, sauf si l’objet même de son |
|||
activité consiste en leur consommation ou en leur vente |
|||
au détail, de vins ou d’alcools ; |
|||
<br/> |
|||
<br/> |
|||
d ter) Les souscriptions au capital de la société |
|||
confèrent aux souscripteurs les seuls droits résultant |
|||
de la qualité d’actionnaire ou d’associé, à l’exclusion |
|||
de toute autre contrepartie notamment sous la forme de |
|||
tarifs préférentiels ou d’accès prioritaire aux biens |
|||
produits ou aux services rendus par la société ; |
|||
<br/> |
|||
<br/> |
|||
e) La société doit être une petite et moyenne entreprise |
|||
qui satisfait à la définition des petites et moyennes |
|||
entreprises qui figure à l’annexe I au règlement (CE) n° |
|||
800/2008 de la Commission du 6 août 2008 déclarant |
|||
certaines catégories d’aide compatibles avec le marché |
|||
commun en application des articles 87 et 88 du traité |
|||
(Règlement général d’exemption par catégorie) ; |
|||
<br/> |
|||
</div> |
|||
</div> |
|||
</xpath> |
|||
</template> |
|||
</data> |
|||
</xpath> |
|||
<xpath expr="//div[@name='board_commitee']" position="replace"> |
|||
<div name="" class="col-xs-6 pull-left" |
|||
style="position:relative;top:105px;font-size:20;color:black;font-family:Roboto-Regular;"> |
|||
<div style="position:relative;top:105px;"> |
|||
Pour le Conseil d'administration de<span |
|||
t-field="o.company_id.name"/>. |
|||
</div> |
|||
<div style="position:relative;top:110px;"> |
|||
<strong> |
|||
<span t-field="o.company_id.board_representative"/> |
|||
</strong> |
|||
</div> |
|||
<div style="position:relative;top:115px;"> |
|||
<img t-if="o.company_id.signature_scan" |
|||
t-att-src="'data:image/png;base64,%s' % o.company_id.signature_scan" |
|||
style="width:240px;height:180px;padding-bottom:5px;"/> |
|||
</div> |
|||
</div> |
|||
</xpath> |
|||
</template> |
|||
</data> |
|||
</odoo> |
@ -1,13 +1,16 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<odoo> |
|||
<data> |
|||
<template id="layout_i18n_fr" inherit_id="theme_light.invoice_footer" name="French Layout Customization"> |
|||
<xpath expr="//t[@t-if='company.company_registry']" position="before"> |
|||
<t t-if="company.siret"> |
|||
<span>Siret</span> : |
|||
<span t-field="company.siret"/> |
|||
</t> |
|||
</xpath> |
|||
</template> |
|||
</data> |
|||
<data> |
|||
<template id="layout_i18n_fr" inherit_id="theme_light.invoice_footer" |
|||
name="French Layout Customization"> |
|||
<xpath expr="//t[@t-if='company.company_registry']" |
|||
position="before"> |
|||
<t t-if="company.siret"> |
|||
<span>Siret</span> |
|||
: |
|||
<span t-field="company.siret"/> |
|||
</t> |
|||
</xpath> |
|||
</template> |
|||
</data> |
|||
</odoo> |
@ -1,14 +1,18 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<odoo> |
|||
<data> |
|||
<template id="subscription_i18n_fr" inherit_id="easy_my_coop_website.becomecooperator" name="Removing fields"> |
|||
<xpath expr="//label[@for='iban']/.." position="replace"> |
|||
</xpath> |
|||
</template> |
|||
<data> |
|||
<template id="subscription_i18n_fr" |
|||
inherit_id="easy_my_coop_website.becomecooperator" |
|||
name="Removing fields"> |
|||
<xpath expr="//label[@for='iban']/.." position="replace"> |
|||
</xpath> |
|||
</template> |
|||
|
|||
<template id="company_subscription_i18n_fr" inherit_id="easy_my_coop_website.becomecompanycooperator" name="Company Removing fields"> |
|||
<xpath expr="//label[@for='iban']/.." position="replace"> |
|||
</xpath> |
|||
</template> |
|||
</data> |
|||
<template id="company_subscription_i18n_fr" |
|||
inherit_id="easy_my_coop_website.becomecompanycooperator" |
|||
name="Company Removing fields"> |
|||
<xpath expr="//label[@for='iban']/.." position="replace"> |
|||
</xpath> |
|||
</template> |
|||
</data> |
|||
</odoo> |
@ -1,54 +1,79 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<odoo> |
|||
<template id="assets_frontend" inherit_id="web.assets_frontend" name="Coop"> |
|||
<xpath expr="." position="inside"> |
|||
<script type="text/javascript" src="/easy_my_coop_loan_website/static/src/js/loan_issue.js"></script> |
|||
</xpath> |
|||
</template> |
|||
<template id="assets_frontend" inherit_id="web.assets_frontend" name="Coop"> |
|||
<xpath expr="." position="inside"> |
|||
<script type="text/javascript" |
|||
src="/easy_my_coop_loan_website/static/src/js/loan_issue.js"></script> |
|||
</xpath> |
|||
</template> |
|||
|
|||
<template id="loanissuesubscription" name="Loan Issue Subscription"> |
|||
<t t-call="website.layout"> |
|||
<div id="wrap"> |
|||
<div class="oe_structure"/> |
|||
<div class="container oe_easymy_coop_loan"> |
|||
<h2 class="energie">Subscribe to Loan Issue</h2><br/> |
|||
<div class="row"> |
|||
<div class="col-md-8"> |
|||
<form action="/subscription/subscribe_loan_issue" method="post" class="form-horizontal mt32" enctype="multipart/form-data"> |
|||
<p style="color:red;"><t t-esc="error_msg"/></p> |
|||
<input type="hidden" name="csrf_token" t-att-value="request.csrf_token()"/> |
|||
<template id="loanissuesubscription" name="Loan Issue Subscription"> |
|||
<t t-call="website.layout"> |
|||
<div id="wrap"> |
|||
<div class="oe_structure"/> |
|||
<div class="container oe_easymy_coop_loan"> |
|||
<h2 class="energie">Subscribe to Loan Issue</h2> |
|||
<br/> |
|||
<div class="row"> |
|||
<div class="col-md-8"> |
|||
<form action="/subscription/subscribe_loan_issue" |
|||
method="post" class="form-horizontal mt32" |
|||
enctype="multipart/form-data"> |
|||
<p style="color:red;"> |
|||
<t t-esc="error_msg"/> |
|||
</p> |
|||
<input type="hidden" name="csrf_token" |
|||
t-att-value="request.csrf_token()"/> |
|||
|
|||
<div t-attf-class="form-group #{error and 'loan_issue_id' in error and 'has-error' or ''}"> |
|||
<label class="col-md-3 col-sm-4 control-label" style="width:25%" for="share_product_id">Loan issue</label> |
|||
<select id="loan_issue" name="loan_issue_id" class="col-md-7 col-sm-8 form-control" style="width:54%;margin-left:15px"> |
|||
<t t-foreach="loan_issues or []" t-as="loan_issue"> |
|||
<option t-att-value="loan_issue.id" t-att-selected="loan_issue.id == int(loan_issue_id)"><t t-esc="loan_issue.name"/></option> |
|||
</t> |
|||
</select> |
|||
</div> |
|||
<div t-attf-class="form-group #{error and 'subscription_amount' in error and 'has-error' or ''}"> |
|||
<label class="col-md-3 col-sm-4 control-label" style="width:25%" for="subscription_amount">Amount</label> |
|||
<input id="subscription_amount" type="number" class="col-md-7 col-sm-8 form-control total" name="subscription_amount" min="0" step="100" max="5000"/> |
|||
</div> |
|||
<table style="margin-left:195px"> |
|||
<tr> |
|||
<!--<td width="80%"> |
|||
<div class="g-recaptcha" t-att-data-sitekey="website.recaptcha_key_site" data-theme="green"/><br/> |
|||
</td>--> |
|||
<td> |
|||
<div class="form-group"> |
|||
<div class="col-md-offset-3 col-sm-offset-4 col-sm-8 col-md-7"> |
|||
<button class="btn btn-primary btn-lg">Send</button> |
|||
</div> |
|||
</div> |
|||
</td> |
|||
</tr> |
|||
</table> |
|||
</form> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</t> |
|||
</template> |
|||
<div t-attf-class="form-group #{error and 'loan_issue_id' in error and 'has-error' or ''}"> |
|||
<label class="col-md-3 col-sm-4 control-label" |
|||
style="width:25%" |
|||
for="share_product_id">Loan issue |
|||
</label> |
|||
<select id="loan_issue" name="loan_issue_id" |
|||
class="col-md-7 col-sm-8 form-control" |
|||
style="width:54%;margin-left:15px"> |
|||
<t t-foreach="loan_issues or []" |
|||
t-as="loan_issue"> |
|||
<option t-att-value="loan_issue.id" |
|||
t-att-selected="loan_issue.id == int(loan_issue_id)"> |
|||
<t t-esc="loan_issue.name"/> |
|||
</option> |
|||
</t> |
|||
</select> |
|||
</div> |
|||
<div t-attf-class="form-group #{error and 'subscription_amount' in error and 'has-error' or ''}"> |
|||
<label class="col-md-3 col-sm-4 control-label" |
|||
style="width:25%" |
|||
for="subscription_amount">Amount |
|||
</label> |
|||
<input id="subscription_amount" |
|||
type="number" |
|||
class="col-md-7 col-sm-8 form-control total" |
|||
name="subscription_amount" min="0" |
|||
step="100" max="5000"/> |
|||
</div> |
|||
<table style="margin-left:195px"> |
|||
<tr> |
|||
<!--<td width="80%"> |
|||
<div class="g-recaptcha" t-att-data-sitekey="website.recaptcha_key_site" data-theme="green"/><br/> |
|||
</td>--> |
|||
<td> |
|||
<div class="form-group"> |
|||
<div class="col-md-offset-3 col-sm-offset-4 col-sm-8 col-md-7"> |
|||
<button class="btn btn-primary btn-lg"> |
|||
Send |
|||
</button> |
|||
</div> |
|||
</div> |
|||
</td> |
|||
</tr> |
|||
</table> |
|||
</form> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</t> |
|||
</template> |
|||
</odoo> |
1690
easy_my_coop_website/views/subscription_template.xml
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -1,24 +1,27 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<odoo> |
|||
<record id="view_partner_from_age" model="ir.ui.view"> |
|||
<record id="view_partner_from_age" model="ir.ui.view"> |
|||
<field name="name">res.partner.form.age</field> |
|||
<field name="model">res.partner</field> |
|||
<field name="inherit_id" ref="easy_my_coop.view_partner_form_easy_my_coop"/> |
|||
<field name="inherit_id" |
|||
ref="easy_my_coop.view_partner_form_easy_my_coop"/> |
|||
<field name="arch" type="xml"> |
|||
<xpath expr="//field[@name='birthdate_date']" position='after'> |
|||
<field name="age" attrs="{'invisible':[('is_company','=',True)]}"/> |
|||
<field name="age" |
|||
attrs="{'invisible':[('is_company','=',True)]}"/> |
|||
</xpath> |
|||
</field> |
|||
</record> |
|||
|
|||
<record id="view_partner_tree_age" model="ir.ui.view"> |
|||
<field name="name">res.partner.tree.easy_my_coop</field> |
|||
<field name="model">res.partner</field> |
|||
<field name="inherit_id" ref="easy_my_coop.view_partner_tree_easy_my_coop"/> |
|||
<field name="arch" type="xml"> |
|||
<xpath expr="//field[@name='cooperator_type']" position='after'> |
|||
<field name="age"/> |
|||
</xpath> |
|||
</field> |
|||
</record> |
|||
<field name="name">res.partner.tree.easy_my_coop</field> |
|||
<field name="model">res.partner</field> |
|||
<field name="inherit_id" |
|||
ref="easy_my_coop.view_partner_tree_easy_my_coop"/> |
|||
<field name="arch" type="xml"> |
|||
<xpath expr="//field[@name='cooperator_type']" position='after'> |
|||
<field name="age"/> |
|||
</xpath> |
|||
</field> |
|||
</record> |
|||
</odoo> |
@ -1,189 +1,216 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<odoo> |
|||
<template id="theme_light.invoice_header_G002"> |
|||
<table style="width: 100%;font-size:10px"> |
|||
<tr height="30px"> |
|||
<td style="width:20%;padding-right:15px" rowspan="4"> |
|||
<img t-if="o.company_id.logo" t-att-src="'data:image/png;base64,%s' % o.company_id.logo" style="max-height: 100px;"/> |
|||
</td> |
|||
<td style="width:29%"></td> |
|||
<td style='width:17%'> |
|||
<img src="theme_light/static/img/gallery/location_green.png" style="max-height: 30px;padding-bottom:10px"/> |
|||
</td> |
|||
<td style='width:17%'> |
|||
<img src="theme_light/static/img/gallery/phone_green.png" style="max-height: 30px;padding-bottom:10px"/> |
|||
</td> |
|||
<td style='width:17%'> |
|||
<img src="theme_light/static/img/gallery/www_green.png" style="max-height: 30px;padding-bottom:10px"/> |
|||
</td> |
|||
</tr> |
|||
<template id="theme_light.invoice_header_G002"> |
|||
<table style="width: 100%;font-size:10px"> |
|||
<tr height="30px"> |
|||
<td style="width:20%;padding-right:15px" rowspan="4"> |
|||
<img t-if="o.company_id.logo" |
|||
t-att-src="'data:image/png;base64,%s' % o.company_id.logo" |
|||
style="max-height: 100px;"/> |
|||
</td> |
|||
<td style="width:29%"></td> |
|||
<td style='width:17%'> |
|||
<img src="theme_light/static/img/gallery/location_green.png" |
|||
style="max-height: 30px;padding-bottom:10px"/> |
|||
</td> |
|||
<td style='width:17%'> |
|||
<img src="theme_light/static/img/gallery/phone_green.png" |
|||
style="max-height: 30px;padding-bottom:10px"/> |
|||
</td> |
|||
<td style='width:17%'> |
|||
<img src="theme_light/static/img/gallery/www_green.png" |
|||
style="max-height: 30px;padding-bottom:10px"/> |
|||
</td> |
|||
</tr> |
|||
|
|||
<tr height="20px"> |
|||
<td style="font-size:14px"></td> |
|||
<td> |
|||
<span t-field="o.company_id.partner_id.street"/> |
|||
</td> |
|||
<td> |
|||
<span>Phone</span> |
|||
<span t-field="o.company_id.partner_id.phone"/> |
|||
</td> |
|||
<td> |
|||
<span t-field="o.company_id.partner_id.website"/> |
|||
</td> |
|||
</tr> |
|||
<tr height="20px"> |
|||
<td style="font-size:14px"></td> |
|||
<td> |
|||
<span t-field="o.company_id.partner_id.street"/> |
|||
</td> |
|||
<td> |
|||
<span>Phone</span> |
|||
<span t-field="o.company_id.partner_id.phone"/> |
|||
</td> |
|||
<td> |
|||
<span t-field="o.company_id.partner_id.website"/> |
|||
</td> |
|||
</tr> |
|||
|
|||
<tr style="vertical-align:top" height="20px"> |
|||
<td style="vertical-align:middle"></td> |
|||
<td style="vertical-align:middle"> |
|||
<span t-field="o.company_id.partner_id.zip"/> - |
|||
<span t-field="o.company_id.partner_id.city"/> |
|||
</td> |
|||
<td style="vertical-align:middle"> |
|||
<span>Fax</span> |
|||
<span t-field="o.company_id.partner_id.fax"/> |
|||
</td> |
|||
</tr> |
|||
<tr> |
|||
<tr style="vertical-align:top" height="20px"> |
|||
<td style="vertical-align:middle"></td> |
|||
<td style="vertical-align:middle"> |
|||
<span t-field="o.company_id.partner_id.zip"/> |
|||
- |
|||
<span t-field="o.company_id.partner_id.city"/> |
|||
</td> |
|||
<td style="vertical-align:middle"> |
|||
<span>Fax</span> |
|||
<span t-field="o.company_id.partner_id.fax"/> |
|||
</td> |
|||
</tr> |
|||
<tr> |
|||
|
|||
<td></td> |
|||
<td style="vertical-align:top"> |
|||
<span t-field="o.company_id.partner_id.country_id.name"/> |
|||
</td> |
|||
<td></td> |
|||
</tr> |
|||
<tr> |
|||
<td colspan="2"><span style="margin-left:10px" t-field="o.company_id.rml_header1"/> </td> |
|||
<td style="vertical-align:bottom"> |
|||
<span t-field="o.company_id.partner_id.vat"/> |
|||
</td> |
|||
<td></td> |
|||
<td></td> |
|||
</tr> |
|||
</table> |
|||
</template> |
|||
<td></td> |
|||
<td style="vertical-align:top"> |
|||
<span t-field="o.company_id.partner_id.country_id.name"/> |
|||
</td> |
|||
<td></td> |
|||
</tr> |
|||
<tr> |
|||
<td colspan="2"> |
|||
<span style="margin-left:10px" |
|||
t-field="o.company_id.rml_header1"/> |
|||
</td> |
|||
<td style="vertical-align:bottom"> |
|||
<span t-field="o.company_id.partner_id.vat"/> |
|||
</td> |
|||
<td></td> |
|||
<td></td> |
|||
</tr> |
|||
</table> |
|||
</template> |
|||
|
|||
<template id="theme_light.invoice_header_P002"> |
|||
<template id="theme_light.invoice_header_P002"> |
|||
|
|||
<table style="width: 100%;font-size:10px"> |
|||
<tr height="30px"> |
|||
<td style="width:20%;padding-right:15px" rowspan="4"> |
|||
<img t-if="o.company_id.logo" t-att-src="'data:image/png;base64,%s' % o.company_id.logo" style="max-height: 100px;"/> |
|||
</td> |
|||
<td style="width:29%"></td> |
|||
<td style='width:17%'> |
|||
<img src="theme_light/static/img/gallery/location_purple.png" style="max-height: 30px;padding-bottom:10px"/> |
|||
</td> |
|||
<td style='width:17%'> |
|||
<img src="theme_light/static/img/gallery/phone_purple.png" style="max-height: 30px;padding-bottom:10px"/> |
|||
</td> |
|||
<td style='width:17%'> |
|||
<img src="theme_light/static/img/gallery/www_purple.png" style="max-height: 30px;padding-bottom:10px"/> |
|||
</td> |
|||
</tr> |
|||
<table style="width: 100%;font-size:10px"> |
|||
<tr height="30px"> |
|||
<td style="width:20%;padding-right:15px" rowspan="4"> |
|||
<img t-if="o.company_id.logo" |
|||
t-att-src="'data:image/png;base64,%s' % o.company_id.logo" |
|||
style="max-height: 100px;"/> |
|||
</td> |
|||
<td style="width:29%"></td> |
|||
<td style='width:17%'> |
|||
<img src="theme_light/static/img/gallery/location_purple.png" |
|||
style="max-height: 30px;padding-bottom:10px"/> |
|||
</td> |
|||
<td style='width:17%'> |
|||
<img src="theme_light/static/img/gallery/phone_purple.png" |
|||
style="max-height: 30px;padding-bottom:10px"/> |
|||
</td> |
|||
<td style='width:17%'> |
|||
<img src="theme_light/static/img/gallery/www_purple.png" |
|||
style="max-height: 30px;padding-bottom:10px"/> |
|||
</td> |
|||
</tr> |
|||
|
|||
<tr height="20px"> |
|||
<td style="font-size:14px"></td> |
|||
<td> |
|||
<span t-field="o.company_id.partner_id.street"/> |
|||
</td> |
|||
<td> |
|||
<span>Phone</span> |
|||
<span t-field="o.company_id.partner_id.phone"/> |
|||
</td> |
|||
<td> |
|||
<span t-field="o.company_id.partner_id.website"/> |
|||
</td> |
|||
</tr> |
|||
<tr height="20px"> |
|||
<td style="font-size:14px"></td> |
|||
<td> |
|||
<span t-field="o.company_id.partner_id.street"/> |
|||
</td> |
|||
<td> |
|||
<span>Phone</span> |
|||
<span t-field="o.company_id.partner_id.phone"/> |
|||
</td> |
|||
<td> |
|||
<span t-field="o.company_id.partner_id.website"/> |
|||
</td> |
|||
</tr> |
|||
|
|||
<tr style="vertical-align:top" height="20px"> |
|||
<td style="vertical-align:middle"></td> |
|||
<td style="vertical-align:middle"> |
|||
<span t-field="o.company_id.partner_id.zip"/> - |
|||
<span t-field="o.company_id.partner_id.city"/> |
|||
</td> |
|||
<td style="vertical-align:middle"> |
|||
<span>Fax</span> |
|||
<span t-field="o.company_id.partner_id.fax"/> |
|||
</td> |
|||
</tr> |
|||
<tr> |
|||
<tr style="vertical-align:top" height="20px"> |
|||
<td style="vertical-align:middle"></td> |
|||
<td style="vertical-align:middle"> |
|||
<span t-field="o.company_id.partner_id.zip"/> |
|||
- |
|||
<span t-field="o.company_id.partner_id.city"/> |
|||
</td> |
|||
<td style="vertical-align:middle"> |
|||
<span>Fax</span> |
|||
<span t-field="o.company_id.partner_id.fax"/> |
|||
</td> |
|||
</tr> |
|||
<tr> |
|||
|
|||
<td></td> |
|||
<td style="vertical-align:top"> |
|||
<span t-field="o.company_id.partner_id.country_id.name"/> |
|||
</td> |
|||
<td></td> |
|||
</tr> |
|||
<tr> |
|||
<td colspan="2"><span style="margin-left:10px" t-field="o.company_id.rml_header1"/> </td> |
|||
<td style="vertical-align:bottom"> |
|||
<span t-field="o.company_id.partner_id.vat"/> |
|||
</td> |
|||
<td></td> |
|||
<td></td> |
|||
</tr> |
|||
</table> |
|||
</template> |
|||
<td></td> |
|||
<td style="vertical-align:top"> |
|||
<span t-field="o.company_id.partner_id.country_id.name"/> |
|||
</td> |
|||
<td></td> |
|||
</tr> |
|||
<tr> |
|||
<td colspan="2"> |
|||
<span style="margin-left:10px" |
|||
t-field="o.company_id.rml_header1"/> |
|||
</td> |
|||
<td style="vertical-align:bottom"> |
|||
<span t-field="o.company_id.partner_id.vat"/> |
|||
</td> |
|||
<td></td> |
|||
<td></td> |
|||
</tr> |
|||
</table> |
|||
</template> |
|||
|
|||
<template id="theme_light.list_header_G002"> |
|||
<table style="width: 100%;font-size:10px"> |
|||
<tr height="30px"> |
|||
<td style="width:20%;padding-right:15px" rowspan="4"> |
|||
<img t-if="res_company.logo" t-att-src="'data:image/png;base64,%s' % res_company.logo" style="max-height: 100px;"/> |
|||
</td> |
|||
<td style="width:29%"></td> |
|||
<td style='width:17%'> |
|||
<img src="theme_light/static/img/gallery/location_green.png" style="max-height: 30px;padding-bottom:10px"/> |
|||
</td> |
|||
<td style='width:17%'> |
|||
<img src="theme_light/static/img/gallery/phone_green.png" style="max-height: 30px;padding-bottom:10px"/> |
|||
</td> |
|||
<td style='width:17%'> |
|||
<img src="theme_light/static/img/gallery/www_green.png" style="max-height: 30px;padding-bottom:10px"/> |
|||
</td> |
|||
</tr> |
|||
<template id="theme_light.list_header_G002"> |
|||
<table style="width: 100%;font-size:10px"> |
|||
<tr height="30px"> |
|||
<td style="width:20%;padding-right:15px" rowspan="4"> |
|||
<img t-if="res_company.logo" |
|||
t-att-src="'data:image/png;base64,%s' % res_company.logo" |
|||
style="max-height: 100px;"/> |
|||
</td> |
|||
<td style="width:29%"></td> |
|||
<td style='width:17%'> |
|||
<img src="theme_light/static/img/gallery/location_green.png" |
|||
style="max-height: 30px;padding-bottom:10px"/> |
|||
</td> |
|||
<td style='width:17%'> |
|||
<img src="theme_light/static/img/gallery/phone_green.png" |
|||
style="max-height: 30px;padding-bottom:10px"/> |
|||
</td> |
|||
<td style='width:17%'> |
|||
<img src="theme_light/static/img/gallery/www_green.png" |
|||
style="max-height: 30px;padding-bottom:10px"/> |
|||
</td> |
|||
</tr> |
|||
|
|||
<tr height="20px"> |
|||
<td style="font-size:14px"></td> |
|||
<td> |
|||
<span t-field="res_company.partner_id.street"/> |
|||
</td> |
|||
<td> |
|||
<span>Phone</span> |
|||
<span t-field="res_company.partner_id.phone"/> |
|||
</td> |
|||
<td> |
|||
<span t-field="res_company.partner_id.website"/> |
|||
</td> |
|||
</tr> |
|||
<tr height="20px"> |
|||
<td style="font-size:14px"></td> |
|||
<td> |
|||
<span t-field="res_company.partner_id.street"/> |
|||
</td> |
|||
<td> |
|||
<span>Phone</span> |
|||
<span t-field="res_company.partner_id.phone"/> |
|||
</td> |
|||
<td> |
|||
<span t-field="res_company.partner_id.website"/> |
|||
</td> |
|||
</tr> |
|||
|
|||
<tr style="vertical-align:top" height="20px"> |
|||
<td style="vertical-align:middle"></td> |
|||
<td style="vertical-align:middle"> |
|||
<span t-field="res_company.partner_id.zip"/> - |
|||
<span t-field="res_company.partner_id.city"/> |
|||
</td> |
|||
<td style="vertical-align:middle"> |
|||
<span>Fax</span> |
|||
<span t-field="res_company.partner_id.fax"/> |
|||
</td> |
|||
</tr> |
|||
<tr> |
|||
<tr style="vertical-align:top" height="20px"> |
|||
<td style="vertical-align:middle"></td> |
|||
<td style="vertical-align:middle"> |
|||
<span t-field="res_company.partner_id.zip"/> |
|||
- |
|||
<span t-field="res_company.partner_id.city"/> |
|||
</td> |
|||
<td style="vertical-align:middle"> |
|||
<span>Fax</span> |
|||
<span t-field="res_company.partner_id.fax"/> |
|||
</td> |
|||
</tr> |
|||
<tr> |
|||
|
|||
<td></td> |
|||
<td style="vertical-align:top"> |
|||
<span t-field="res_company.partner_id.country_id.name"/> |
|||
</td> |
|||
<td></td> |
|||
</tr> |
|||
<tr> |
|||
<td colspan="2"><span style="margin-left:10px" t-field="res_company.rml_header1"/> </td> |
|||
<td style="vertical-align:bottom"> |
|||
<span t-field="res_company.partner_id.vat"/> |
|||
</td> |
|||
<td></td> |
|||
<td></td> |
|||
</tr> |
|||
</table> |
|||
</template> |
|||
<td></td> |
|||
<td style="vertical-align:top"> |
|||
<span t-field="res_company.partner_id.country_id.name"/> |
|||
</td> |
|||
<td></td> |
|||
</tr> |
|||
<tr> |
|||
<td colspan="2"> |
|||
<span style="margin-left:10px" |
|||
t-field="res_company.rml_header1"/> |
|||
</td> |
|||
<td style="vertical-align:bottom"> |
|||
<span t-field="res_company.partner_id.vat"/> |
|||
</td> |
|||
<td></td> |
|||
<td></td> |
|||
</tr> |
|||
</table> |
|||
</template> |
|||
</odoo> |
@ -1,205 +1,244 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<odoo> |
|||
<!-- ****************** POUR IMPRESSION FACTURE **************** --> |
|||
<template id="theme_light.layout" inherit_id="web.layout" primary="True"> |
|||
<!-- Add report attributes --> |
|||
<xpath expr="//html" position="attributes"> |
|||
<attribute name="t-att-data-report-margin-top">data_report_margin_top if data_report_margin_top else None</attribute> |
|||
<attribute name="t-att-data-report-header-spacing">data_report_header_spacing if data_report_header_spacing else None</attribute> |
|||
<attribute name="t-att-data-report-dpi">data_report_dpi if data_report_dpi else None</attribute> |
|||
</xpath> |
|||
<!-- Add report style --> |
|||
<xpath expr="//head" position="inside"> |
|||
<link href="/web/static/lib/bootstrap/css/bootstrap.css" rel="stylesheet"/> |
|||
<link href="/website/static/src/css/website.css" rel="stylesheet"/> |
|||
<link href="/web/static/lib/fontawesome/css/font-awesome.css" rel="stylesheet"/> |
|||
<link href="/theme_light/static/css/invoice_orange.css" rel="stylesheet"/> |
|||
<style type="text/css"> |
|||
<t t-call="theme_light.style"/> |
|||
</style> |
|||
</xpath> |
|||
</template> |
|||
<!-- ****************** POUR IMPRESSION FACTURE **************** --> |
|||
<template id="theme_light.layout" inherit_id="web.layout" primary="True"> |
|||
<!-- Add report attributes --> |
|||
<xpath expr="//html" position="attributes"> |
|||
<attribute name="t-att-data-report-margin-top"> |
|||
data_report_margin_top if data_report_margin_top else None |
|||
</attribute> |
|||
<attribute name="t-att-data-report-header-spacing"> |
|||
data_report_header_spacing if data_report_header_spacing else |
|||
None |
|||
</attribute> |
|||
<attribute name="t-att-data-report-dpi">data_report_dpi if |
|||
data_report_dpi else None |
|||
</attribute> |
|||
</xpath> |
|||
<!-- Add report style --> |
|||
<xpath expr="//head" position="inside"> |
|||
<link href="/web/static/lib/bootstrap/css/bootstrap.css" |
|||
rel="stylesheet"/> |
|||
<link href="/website/static/src/css/website.css" rel="stylesheet"/> |
|||
<link href="/web/static/lib/fontawesome/css/font-awesome.css" |
|||
rel="stylesheet"/> |
|||
<link href="/theme_light/static/css/invoice_orange.css" |
|||
rel="stylesheet"/> |
|||
<style type="text/css"> |
|||
<t t-call="theme_light.style"/> |
|||
</style> |
|||
</xpath> |
|||
</template> |
|||
|
|||
<!-- CSS --> |
|||
<template id="style"> |
|||
/* Montserrat */ |
|||
@font-face { |
|||
font-family: 'Montserrat-Regular'; |
|||
font-style: normal; |
|||
src: local('Montserrat Regular'), url('/theme_light/static/font/Montserrat-Regular.ttf') format('truetype'); |
|||
} |
|||
/* Roboto Regular */ |
|||
@font-face { |
|||
font-family: 'Roboto-Regular'; |
|||
font-style: normal; |
|||
src: local('Roboto Regular'), url('/theme_light/static/font/Roboto-Regular.ttf') format('truetype'); |
|||
} |
|||
/* Roboto Bold */ |
|||
@font-face { |
|||
font-family: 'Roboto-Bold'; |
|||
font-style: normal; |
|||
src: local('Roboto Bold'), url('/theme_light/static/font/Roboto-Bold.ttf') format('truetype'); |
|||
} |
|||
/* BEBASNEUE Bold */ |
|||
@font-face { |
|||
font-family: 'Bebasneue-Bold'; |
|||
font-style: normal; |
|||
src: local('Bebasneue-Bold'), url('/theme_light/static/font/BEBASNEUE_BOLD.ttf') format('truetype'); |
|||
} |
|||
</template> |
|||
<!-- CSS --> |
|||
<template id="style"> |
|||
/* Montserrat */ |
|||
@font-face { |
|||
font-family: 'Montserrat-Regular'; |
|||
font-style: normal; |
|||
src: local('Montserrat Regular'), |
|||
url('/theme_light/static/font/Montserrat-Regular.ttf') |
|||
format('truetype'); |
|||
} |
|||
/* Roboto Regular */ |
|||
@font-face { |
|||
font-family: 'Roboto-Regular'; |
|||
font-style: normal; |
|||
src: local('Roboto Regular'), |
|||
url('/theme_light/static/font/Roboto-Regular.ttf') format('truetype'); |
|||
} |
|||
/* Roboto Bold */ |
|||
@font-face { |
|||
font-family: 'Roboto-Bold'; |
|||
font-style: normal; |
|||
src: local('Roboto Bold'), |
|||
url('/theme_light/static/font/Roboto-Bold.ttf') format('truetype'); |
|||
} |
|||
/* BEBASNEUE Bold */ |
|||
@font-face { |
|||
font-family: 'Bebasneue-Bold'; |
|||
font-style: normal; |
|||
src: local('Bebasneue-Bold'), |
|||
url('/theme_light/static/font/BEBASNEUE_BOLD.ttf') format('truetype'); |
|||
} |
|||
</template> |
|||
|
|||
<template id="theme_light.html_container"> |
|||
<t t-set="body_classname" t-value="'container'"/> |
|||
<t t-call="theme_light.layout"> |
|||
<t t-raw="0"/> |
|||
</t> |
|||
</template> |
|||
<template id="theme_light.html_container"> |
|||
<t t-set="body_classname" t-value="'container'"/> |
|||
<t t-call="theme_light.layout"> |
|||
<t t-raw="0"/> |
|||
</t> |
|||
</template> |
|||
|
|||
<template id="theme_light.invoice_footer"> |
|||
<div class="footer"> |
|||
<table style="width: 100%;font-size:13;color:black;font-family:Roboto-Regular;text-align:center"> |
|||
<tr style="height:20px;"> |
|||
<td/> |
|||
<td/> |
|||
<t t-if="company.display_logo1"> |
|||
<td rowspan="5" style="padding-left:15px;text-align:center;width:135px;border-left:1px solid #adadad" > |
|||
<img t-if="company.bottom_logo1" t-att-src="'data:image/png;base64,%s' % company.bottom_logo1" style="width:98px;height:auto;padding-bottom:5px;"/> |
|||
<img t-if="not company.bottom_logo1" src="/theme_light/static/img/gallery/label_fin.jpg" style="width:98px;height:auto;padding-bottom:5px;"/> |
|||
</td> |
|||
</t> |
|||
<t t-if="company.display_logo2"> |
|||
<td rowspan="5" style="padding-left:15px;text-align:center;width:135px;border-left:1px solid #adadad" > |
|||
<img t-if="company.bottom_logo2" t-att-src="'data:image/png;base64,%s' % company.bottom_logo2" style="width:162px;height:auto;padding-bottom:5px;"/> |
|||
<img t-if="not company.bottom_logo2" src="/theme_light/static/img/gallery/cnc_agree.jpg" style="width:162px;height:auto;padding-bottom:5px;"/> |
|||
</td> |
|||
</t> |
|||
</tr> |
|||
<tr style="height:20px;"> |
|||
<td style="align: left;"> |
|||
<t t-if="company.rml_header1"> |
|||
<span t-field="company.rml_header1"/> - |
|||
</t> |
|||
<b><span t-field="company.name"/></b> |
|||
</td> |
|||
<td/> |
|||
<td/> |
|||
<td/> |
|||
</tr> |
|||
<tr style="height:20px"> |
|||
<td style="align: left;"> |
|||
<span t-field="company.partner_id.street"/> - |
|||
<t t-if="company.partner_id.street2"> |
|||
<span t-field="company.partner_id.street2"/> - |
|||
</t> |
|||
<span t-field="company.partner_id.zip"/> |
|||
<span t-field="company.partner_id.city"/> |
|||
</td> |
|||
<td/> |
|||
<td/> |
|||
<td/> |
|||
</tr> |
|||
<tr style="height:20px"> |
|||
<td style="align: left;"> |
|||
<t t-if="company.company_registry"> |
|||
<span>N.Entr.</span> : |
|||
<span t-field="company.company_registry"/> |
|||
</t> |
|||
<t t-if="company.vat"> |
|||
- |
|||
<span>VAT Number</span> : |
|||
<span t-field="company.vat"/> |
|||
</t> |
|||
<t t-foreach="o.company_id.bank_journal_ids" t-as="journal"> |
|||
<t t-set="b" t-value="journal.bank_account_id"/> |
|||
<t t-if="journal.display_on_footer"> |
|||
- |
|||
<span t-field="b.bank_name"/> |
|||
<span t-field="b.acc_number"/> |
|||
<span t-field="b.bank_bic"/> |
|||
</t> |
|||
</t> |
|||
</td> |
|||
<td/> |
|||
<td/> |
|||
<td/> |
|||
</tr> |
|||
</table> |
|||
</div> |
|||
</template> |
|||
<template id="theme_light.invoice_footer"> |
|||
<div class="footer"> |
|||
<table style="width: 100%;font-size:13;color:black;font-family:Roboto-Regular;text-align:center"> |
|||
<tr style="height:20px;"> |
|||
<td/> |
|||
<td/> |
|||
<t t-if="company.display_logo1"> |
|||
<td rowspan="5" |
|||
style="padding-left:15px;text-align:center;width:135px;border-left:1px solid #adadad"> |
|||
<img t-if="company.bottom_logo1" |
|||
t-att-src="'data:image/png;base64,%s' % company.bottom_logo1" |
|||
style="width:98px;height:auto;padding-bottom:5px;"/> |
|||
<img t-if="not company.bottom_logo1" |
|||
src="/theme_light/static/img/gallery/label_fin.jpg" |
|||
style="width:98px;height:auto;padding-bottom:5px;"/> |
|||
</td> |
|||
</t> |
|||
<t t-if="company.display_logo2"> |
|||
<td rowspan="5" |
|||
style="padding-left:15px;text-align:center;width:135px;border-left:1px solid #adadad"> |
|||
<img t-if="company.bottom_logo2" |
|||
t-att-src="'data:image/png;base64,%s' % company.bottom_logo2" |
|||
style="width:162px;height:auto;padding-bottom:5px;"/> |
|||
<img t-if="not company.bottom_logo2" |
|||
src="/theme_light/static/img/gallery/cnc_agree.jpg" |
|||
style="width:162px;height:auto;padding-bottom:5px;"/> |
|||
</td> |
|||
</t> |
|||
</tr> |
|||
<tr style="height:20px;"> |
|||
<td style="align: left;"> |
|||
<t t-if="company.rml_header1"> |
|||
<span t-field="company.rml_header1"/> |
|||
- |
|||
</t> |
|||
<b> |
|||
<span t-field="company.name"/> |
|||
</b> |
|||
</td> |
|||
<td/> |
|||
<td/> |
|||
<td/> |
|||
</tr> |
|||
<tr style="height:20px"> |
|||
<td style="align: left;"> |
|||
<span t-field="company.partner_id.street"/> |
|||
- |
|||
<t t-if="company.partner_id.street2"> |
|||
<span t-field="company.partner_id.street2"/> |
|||
- |
|||
</t> |
|||
<span t-field="company.partner_id.zip"/> |
|||
<span t-field="company.partner_id.city"/> |
|||
</td> |
|||
<td/> |
|||
<td/> |
|||
<td/> |
|||
</tr> |
|||
<tr style="height:20px"> |
|||
<td style="align: left;"> |
|||
<t t-if="company.company_registry"> |
|||
<span>N.Entr.</span> |
|||
: |
|||
<span t-field="company.company_registry"/> |
|||
</t> |
|||
<t t-if="company.vat"> |
|||
- |
|||
<span>VAT Number</span> |
|||
: |
|||
<span t-field="company.vat"/> |
|||
</t> |
|||
<t t-foreach="o.company_id.bank_journal_ids" |
|||
t-as="journal"> |
|||
<t t-set="b" t-value="journal.bank_account_id"/> |
|||
<t t-if="journal.display_on_footer"> |
|||
- |
|||
<span t-field="b.bank_name"/> |
|||
<span t-field="b.acc_number"/> |
|||
<span t-field="b.bank_bic"/> |
|||
</t> |
|||
</t> |
|||
</td> |
|||
<td/> |
|||
<td/> |
|||
<td/> |
|||
</tr> |
|||
</table> |
|||
</div> |
|||
</template> |
|||
|
|||
<template id="theme_light.invoice_footer_002"> |
|||
<div class="footer"> |
|||
<table style="width: 100%;font-size:13;color :black;font-family:Montserrat-Regular;text-align:center"> |
|||
<tr style="height:20px;"> |
|||
<td width="85%"></td> |
|||
<td rowspan="5" style="padding-left:15px;text-align:center;width:260px;border-left:1px solid #adadad" > |
|||
<img src="/theme_light/static/img/gallery/cnc_agree.png" style="max-height: 80px;padding-bottom:5px;"/> |
|||
<div style="color :#adadad;" t-field="company.company_registry"/> |
|||
</td> |
|||
</tr> |
|||
</table> |
|||
</div> |
|||
</template> |
|||
<template id="theme_light.invoice_footer_002"> |
|||
<div class="footer"> |
|||
<table style="width: 100%;font-size:13;color :black;font-family:Montserrat-Regular;text-align:center"> |
|||
<tr style="height:20px;"> |
|||
<td width="85%"></td> |
|||
<td rowspan="5" |
|||
style="padding-left:15px;text-align:center;width:260px;border-left:1px solid #adadad"> |
|||
<img src="/theme_light/static/img/gallery/cnc_agree.png" |
|||
style="max-height: 80px;padding-bottom:5px;"/> |
|||
<div style="color :#adadad;" |
|||
t-field="company.company_registry"/> |
|||
</td> |
|||
</tr> |
|||
</table> |
|||
</div> |
|||
</template> |
|||
|
|||
<template id="theme_light.invoice_header"> |
|||
<div> |
|||
<div class="row"> |
|||
<div class="col-xs-3"> |
|||
<img t-if="o.company_id.logo" t-att-src="'data:image/png;base64,%s' % o.company_id.logo" style="height: 113px;"/> |
|||
<template id="theme_light.invoice_header"> |
|||
<div> |
|||
<div class="row"> |
|||
<div class="col-xs-3"> |
|||
<img t-if="o.company_id.logo" |
|||
t-att-src="'data:image/png;base64,%s' % o.company_id.logo" |
|||
style="height: 113px;"/> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</template> |
|||
</template> |
|||
|
|||
<template id="theme_light.invoice_layout"> |
|||
<!-- Multicompany --> |
|||
<t t-if="o and 'company_id' in o"> |
|||
<t t-set="company" t-value="o.company_id"></t> |
|||
</t> |
|||
<t t-if="not o or not 'company_id' in o"> |
|||
<t t-set="company" t-value="res_company"></t> |
|||
</t> |
|||
<t t-raw="0" /> |
|||
<t t-call="theme_light.invoice_footer" /> |
|||
</template> |
|||
<template id="theme_light.invoice_layout"> |
|||
<!-- Multicompany --> |
|||
<t t-if="o and 'company_id' in o"> |
|||
<t t-set="company" t-value="o.company_id"></t> |
|||
</t> |
|||
<t t-if="not o or not 'company_id' in o"> |
|||
<t t-set="company" t-value="res_company"></t> |
|||
</t> |
|||
<t t-raw="0"/> |
|||
<t t-call="theme_light.invoice_footer"/> |
|||
</template> |
|||
|
|||
<template id="theme_light.invoice_layout_002"> |
|||
<!-- Multicompany --> |
|||
<t t-if="o and 'company_id' in o"> |
|||
<t t-set="company" t-value="o.company_id"></t> |
|||
</t> |
|||
<t t-if="not o or not 'company_id' in o"> |
|||
<t t-set="company" t-value="res_company"></t> |
|||
</t> |
|||
<t t-raw="0" /> |
|||
<t t-call="theme_light.invoice_footer_002" /> |
|||
</template> |
|||
<template id="theme_light.invoice_layout_002"> |
|||
<!-- Multicompany --> |
|||
<t t-if="o and 'company_id' in o"> |
|||
<t t-set="company" t-value="o.company_id"></t> |
|||
</t> |
|||
<t t-if="not o or not 'company_id' in o"> |
|||
<t t-set="company" t-value="res_company"></t> |
|||
</t> |
|||
<t t-raw="0"/> |
|||
<t t-call="theme_light.invoice_footer_002"/> |
|||
</template> |
|||
|
|||
|
|||
<template id="theme_light.report_footer_002"> |
|||
<div class="footer"> |
|||
<table style="width: 100%;font-size:13;color :black;font-family:Montserrat-Regular;text-align:center"> |
|||
<tr style="height:20px;"> |
|||
<td width="90%"></td> |
|||
<td rowspan="5" style="padding-left:15px;text-align:center;width:260px;border-left:1px solid #adadad" > |
|||
Page : |
|||
<span class="page"/> |
|||
</td> |
|||
</tr> |
|||
</table> |
|||
</div> |
|||
</template> |
|||
<template id="theme_light.report_footer_002"> |
|||
<div class="footer"> |
|||
<table style="width: 100%;font-size:13;color :black;font-family:Montserrat-Regular;text-align:center"> |
|||
<tr style="height:20px;"> |
|||
<td width="90%"></td> |
|||
<td rowspan="5" |
|||
style="padding-left:15px;text-align:center;width:260px;border-left:1px solid #adadad"> |
|||
Page : |
|||
<span class="page"/> |
|||
</td> |
|||
</tr> |
|||
</table> |
|||
</div> |
|||
</template> |
|||
|
|||
<template id="theme_light.report_layout_002"> |
|||
<!-- Multicompany --> |
|||
<t t-if="o and 'company_id' in o"> |
|||
<t t-set="company" t-value="o.company_id"></t> |
|||
</t> |
|||
<t t-if="not o or not 'company_id' in o"> |
|||
<t t-set="company" t-value="res_company"></t> |
|||
</t> |
|||
<template id="theme_light.report_layout_002"> |
|||
<!-- Multicompany --> |
|||
<t t-if="o and 'company_id' in o"> |
|||
<t t-set="company" t-value="o.company_id"></t> |
|||
</t> |
|||
<t t-if="not o or not 'company_id' in o"> |
|||
<t t-set="company" t-value="res_company"></t> |
|||
</t> |
|||
|
|||
<t t-raw="0" /> |
|||
<t t-call="theme_light.report_footer_002" /> |
|||
</template> |
|||
<t t-raw="0"/> |
|||
<t t-call="theme_light.report_footer_002"/> |
|||
</template> |
|||
</odoo> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue