Compare commits
merge into: njeudy:12.0
njeudy:11.0
njeudy:12.0
njeudy:12.0-add-financial-risk
njeudy:12.0-backend_filter
njeudy:12.0-chg-monetary_fields
njeudy:12.0-easy_my_coop-module_category_cooperator_management
njeudy:12.0-emc-rest-connector
njeudy:12.0-emc_loan-o3-add-paid-amount
njeudy:12.0-emc_loan-o6-subscription_end_date
njeudy:12.0-fix-coop-validation
njeudy:12.0-flag-easymycoop-mail-template
njeudy:12.0-loan-improvements
njeudy:12.0-max-amount-per-share
njeudy:12.0-o4-net-interest-rate
njeudy:12.0-openupgrade
njeudy:12.0-small-changes
njeudy:12.0-touch-cooperator-type
njeudy:14.0-MIG-INITIAL
njeudy:9.0
njeudy:9.0-fix_tax_shelter_declaration_exclusion
njeudy:9.0-medor-hide_bank_and_birthdate
njeudy:9.0-tag
njeudy:9.0_remove_national_register_number
njeudy:myceliandre_usability
pull from: njeudy:9.0-fix_tax_shelter_declaration_exclusion
njeudy:11.0
njeudy:12.0
njeudy:12.0-add-financial-risk
njeudy:12.0-backend_filter
njeudy:12.0-chg-monetary_fields
njeudy:12.0-easy_my_coop-module_category_cooperator_management
njeudy:12.0-emc-rest-connector
njeudy:12.0-emc_loan-o3-add-paid-amount
njeudy:12.0-emc_loan-o6-subscription_end_date
njeudy:12.0-fix-coop-validation
njeudy:12.0-flag-easymycoop-mail-template
njeudy:12.0-loan-improvements
njeudy:12.0-max-amount-per-share
njeudy:12.0-o4-net-interest-rate
njeudy:12.0-openupgrade
njeudy:12.0-small-changes
njeudy:12.0-touch-cooperator-type
njeudy:14.0-MIG-INITIAL
njeudy:9.0
njeudy:9.0-fix_tax_shelter_declaration_exclusion
njeudy:9.0-medor-hide_bank_and_birthdate
njeudy:9.0-tag
njeudy:9.0_remove_national_register_number
njeudy:myceliandre_usability
129 Commits
12.0
...
9.0-fix_ta
54 changed files with 3805 additions and 2355 deletions
-
29easy_my_coop/__openerp__.py
-
124easy_my_coop/controllers/main.py
-
54easy_my_coop/data/mail_template_data.xml
-
173easy_my_coop/demo/coop.xml
-
1373easy_my_coop/i18n/fr.po
-
1083easy_my_coop/i18n/fr_BE.po
-
5easy_my_coop/i18n/nl_BE.po
-
15easy_my_coop/migrations/9.1.0.0.2/pre-migration.py
-
11easy_my_coop/models/account_invoice.py
-
68easy_my_coop/models/company.py
-
130easy_my_coop/models/coop.py
-
18easy_my_coop/models/operation_request.py
-
42easy_my_coop/models/partner.py
-
9easy_my_coop/report/cooperator_certificat_G001.xml
-
2easy_my_coop/view/account_invoice_view.xml
-
1easy_my_coop/view/cooperator_register_view.xml
-
2easy_my_coop/view/email_template_view.xml
-
33easy_my_coop/view/menu.xml
-
8easy_my_coop/view/menu_item_view.xml
-
8easy_my_coop/view/operation_request_view.xml
-
11easy_my_coop/view/product_view.xml
-
9easy_my_coop/view/res_company_view.xml
-
14easy_my_coop/view/res_partner_view.xml
-
15easy_my_coop/view/subscription_request_view.xml
-
263easy_my_coop/view/subscription_template.xml
-
41easy_my_coop/wizard/cooperative_history_wizard.xml
-
39easy_my_coop/wizard/create_subscription_from_partner.py
-
2easy_my_coop/wizard/create_subscription_from_partner.xml
-
52easy_my_coop/wizard/update_partner_info.py
-
7easy_my_coop/wizard/update_partner_info.xml
-
1easy_my_coop/wizard/update_share_line.py
-
1easy_my_coop_be/__init__.py
-
2easy_my_coop_be/models/__init__.py
-
11easy_my_coop_be/models/coop.py
-
11easy_my_coop_be/models/partner.py
-
1easy_my_coop_ch/__openerp__.py
-
1easy_my_coop_ch/models/__init__.py
-
17easy_my_coop_ch/models/coop.py
-
17easy_my_coop_ch/models/partner.py
-
13easy_my_coop_ch/views/subscription_request_view.xml
-
18easy_my_coop_ch/views/subscription_template.xml
-
3easy_my_coop_eater/__openerp__.py
-
28easy_my_coop_eater/demo/eaters.xml
-
14easy_my_coop_export_xlsx/wizard/export_global_wizard.py
-
1easy_my_coop_fr/models/__init__.py
-
10easy_my_coop_fr/models/coop.py
-
13easy_my_coop_fr/models/partner.py
-
5easy_my_coop_fr/views/subscription_template.xml
-
1easy_my_coop_online_payment/controllers/main.py
-
7easy_my_coop_taxshelter_report/models/tax_shelter_declaration.py
-
2easy_my_coop_website_document/__openerp__.py
-
2easy_my_coop_website_portal/__openerp__.py
-
2easy_my_coop_website_taxshelter/__openerp__.py
-
2website_portal_extend/__openerp__.py
@ -0,0 +1,173 @@ |
|||||
|
<?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> |
||||
|
|
||||
|
<record id="res_partner_cooperator_1_demo" model="res.partner"> |
||||
|
<field name="name">Virginie Leloup</field> |
||||
|
<field name="customer" eval="True"/> |
||||
|
<field name="member" eval="True"/> |
||||
|
<field name="is_company" eval="False"/> |
||||
|
<field name="email">virginie@demo.net</field> |
||||
|
<field name="street">Avenue des Dessus-de-Livres, 2</field> |
||||
|
<field name="city">Namur (Loyers)</field> |
||||
|
<field name="zip">5101</field> |
||||
|
<field name="country_id" ref="base.be"/> |
||||
|
</record> |
||||
|
|
||||
|
<record id="res_partner_cooperator_2_demo" model="res.partner"> |
||||
|
<field name="name">Houssine Intégrale</field> |
||||
|
<field name="customer" eval="True"/> |
||||
|
<field name="member" eval="True"/> |
||||
|
<field name="is_company" eval="False"/> |
||||
|
<field name="email">houssine@demo.net</field> |
||||
|
<field name="street">Avenue des Dessous-de-Livres, 3</field> |
||||
|
<field name="city">Namur (Loyers)</field> |
||||
|
<field name="zip">5101</field> |
||||
|
<field name="country_id" ref="base.be"/> |
||||
|
</record> |
||||
|
|
||||
|
<record id="res_partner_cooperator_3_demo" model="res.partner"> |
||||
|
<field name="name">Vincent Bixolon</field> |
||||
|
<field name="customer" eval="True"/> |
||||
|
<field name="member" eval="True"/> |
||||
|
<field name="is_company" eval="False"/> |
||||
|
<field name="email">vincent@demo.net</field> |
||||
|
<field name="street">Rue de la colocation, 23</field> |
||||
|
<field name="city">Namur (Loyers)</field> |
||||
|
<field name="zip">5101</field> |
||||
|
<field name="country_id" ref="base.be"/> |
||||
|
</record> |
||||
|
|
||||
|
<record id="res_partner_cooperator_4_demo" model="res.partner"> |
||||
|
<field name="name">Rémy Commit</field> |
||||
|
<field name="customer" eval="True"/> |
||||
|
<field name="member" eval="True"/> |
||||
|
<field name="is_company" eval="False"/> |
||||
|
<field name="email">remy@demo.net</field> |
||||
|
<field name="street">Rue Guido Van Rossum, 2</field> |
||||
|
<field name="city">Evere</field> |
||||
|
<field name="zip">5101</field> |
||||
|
<field name="country_id" ref="base.be"/> |
||||
|
</record> |
||||
|
|
||||
|
<record id="res_partner_cooperator_5_demo" model="res.partner"> |
||||
|
<field name="name">Anne de Brët</field> |
||||
|
<field name="customer" eval="True"/> |
||||
|
<field name="member" eval="True"/> |
||||
|
<field name="is_company" eval="False"/> |
||||
|
<field name="email">anne@demo.net</field> |
||||
|
<field name="street">Rue de la patrie, 6</field> |
||||
|
<field name="city">Nantes</field> |
||||
|
<field name="zip">44000</field> |
||||
|
<field name="country_id" ref="base.fr"/> |
||||
|
</record> |
||||
|
|
||||
|
<record id="res_partner_cooperator_6_demo" model="res.partner"> |
||||
|
<field name="name">Gildo Le Floch</field> |
||||
|
<field name="customer" eval="True"/> |
||||
|
<field name="member" eval="True"/> |
||||
|
<field name="is_company" eval="False"/> |
||||
|
<field name="email">gildo@demo.net</field> |
||||
|
<field name="street">Rue Printanière, 8</field> |
||||
|
<field name="city">Evere</field> |
||||
|
<field name="zip">5101</field> |
||||
|
<field name="country_id" ref="base.be"/> |
||||
|
</record> |
||||
|
|
||||
|
<record id="bank_account_1_demo" model="res.partner.bank"> |
||||
|
<field name="acc_number">FR7611808009101234567890147</field> |
||||
|
<field name="bank_name">Bank</field> |
||||
|
<field name="partner_id" ref="res_partner_cooperator_1_demo"/> |
||||
|
</record> |
||||
|
|
||||
|
<record id="bank_account_2_demo" model="res.partner.bank"> |
||||
|
<field name="acc_number">FR7630001007941234567890185</field> |
||||
|
<field name="bank_name">Bank</field> |
||||
|
<field name="partner_id" ref="res_partner_cooperator_2_demo"/> |
||||
|
</record> |
||||
|
|
||||
|
<record id="bank_account_3_demo" model="res.partner.bank"> |
||||
|
<field name="acc_number">BE71096123456769</field> |
||||
|
<field name="bank_name">Bank</field> |
||||
|
<field name="partner_id" ref="res_partner_cooperator_3_demo"/> |
||||
|
</record> |
||||
|
|
||||
|
<record id="bank_account_4_demo" model="res.partner.bank"> |
||||
|
<field name="acc_number">BE56596123456769</field> |
||||
|
<field name="bank_name">Bank</field> |
||||
|
<field name="partner_id" ref="res_partner_cooperator_4_demo"/> |
||||
|
</record> |
||||
|
|
||||
|
<record id="bank_account_5_demo" model="res.partner.bank"> |
||||
|
<field name="acc_number">FR7630001007958234567890186</field> |
||||
|
<field name="bank_name">Bank</field> |
||||
|
<field name="partner_id" ref="res_partner_cooperator_5_demo"/> |
||||
|
</record> |
||||
|
|
||||
|
<record id="bank_account_6_demo" model="res.partner.bank"> |
||||
|
<field name="acc_number">BE71096123753769</field> |
||||
|
<field name="bank_name">Bank</field> |
||||
|
<field name="partner_id" ref="res_partner_cooperator_6_demo"/> |
||||
|
</record> |
||||
|
|
||||
|
<record id="account_cooperator_demo" model="account.account"> |
||||
|
<field name="code">416000</field> |
||||
|
<field name="name">Cooperators</field> |
||||
|
<field name="user_type_id" ref="account.data_account_type_receivable"/> |
||||
|
<field name="reconcile" eval="True"/> |
||||
|
</record> |
||||
|
|
||||
|
<record id="product_template_share_type_1_demo" model="product.template"> |
||||
|
<field name="name">Part A - Founder</field> |
||||
|
<field name="short_name">Part A</field> |
||||
|
<field name="is_share" eval="True"/> |
||||
|
<field name="default_share_product" eval="True"/> |
||||
|
<field name="force_min_qty" eval="True"/> |
||||
|
<field name="minimum_quantity">2</field> |
||||
|
<field name="by_individual" eval="True"/> |
||||
|
<field name="by_company" eval="True"/> |
||||
|
<field name="list_price">50</field> |
||||
|
<field name="display_on_website" eval="True"/> |
||||
|
</record> |
||||
|
|
||||
|
<record id="product_product_share_type_1_demo" model="product.product"> |
||||
|
<field name="product_tmpl_id" ref="product_template_share_type_1_demo"/> |
||||
|
<field name="default_code">share_a</field> |
||||
|
</record> |
||||
|
|
||||
|
<record id="product_template_share_type_2_demo" model="product.template"> |
||||
|
<field name="name">Part B - Worker</field> |
||||
|
<field name="short_name">Part B</field> |
||||
|
<field name="is_share" eval="True"/> |
||||
|
<field name="default_share_product" eval="True"/> |
||||
|
<field name="force_min_qty" eval="True"/> |
||||
|
<field name="minimum_quantity">2</field> |
||||
|
<field name="by_individual" eval="True"/> |
||||
|
<field name="by_company" eval="False"/> |
||||
|
<field name="list_price">25</field> |
||||
|
<field name="display_on_website" eval="True"/> |
||||
|
</record> |
||||
|
|
||||
|
<record id="product_product_share_type_2_demo" model="product.product"> |
||||
|
<field name="product_tmpl_id" ref="product_template_share_type_2_demo"/> |
||||
|
<field name="default_code">share_b</field> |
||||
|
</record> |
||||
|
|
||||
|
<record id="subscription_request_1_demo" model="subscription.request"> |
||||
|
<field name="name">Manuel Dublues</field> |
||||
|
<field name="email">manuel@demo.net</field> |
||||
|
<field name="address">schaerbeekstraat</field> |
||||
|
<field name="zip_code">1111</field> |
||||
|
<field name="city">Brussels</field> |
||||
|
<field name="country_id" ref="base.be"/> |
||||
|
<field name="date" eval="datetime.now() - timedelta(days=12)"/> |
||||
|
<field name="source">manual</field> |
||||
|
<field name="ordered_parts">3</field> |
||||
|
<field name="share_product_id" ref="product_product_share_type_1_demo"/> |
||||
|
<field name="lang">en_US</field> |
||||
|
</record> |
||||
|
|
||||
|
</odoo> |
1373
easy_my_coop/i18n/fr.po
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
1083
easy_my_coop/i18n/fr_BE.po
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -0,0 +1,15 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
|
||||
|
def migrate(cr, version): |
||||
|
if not version: |
||||
|
return |
||||
|
|
||||
|
cr.execute("UPDATE res_company " |
||||
|
"SET internal_rules_approval_required = FALSE " |
||||
|
"WHERE display_internal_rules_approval = FALSE") |
||||
|
cr.execute("UPDATE res_company " |
||||
|
"SET data_policy_approval_required = FALSE " |
||||
|
"WHERE display_data_policy_approval = FALSE") |
||||
|
cr.execute("UPDATE res_company " |
||||
|
"SET financial_risk_approval_required = FALSE " |
||||
|
"WHERE display_financial_risk_approval = FALSE") |
@ -0,0 +1,33 @@ |
|||||
|
<?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> |
||||
|
<!-- top menus --> |
||||
|
|
||||
|
<menuitem name="Easy-My Coop" id="menu_main_easy_my_coop" sequence="40" groups="easy_my_coop.group_energiris_user"/> |
||||
|
<menuitem name="Cooperators" id="menu_easy_my_coop_main_coop" parent="menu_main_easy_my_coop" sequence="5" /> |
||||
|
<menuitem name="Subscription" id="menu_easy_my_coop_main_subscription" parent="menu_main_easy_my_coop" sequence="10" groups="easy_my_coop.group_energiris_manager"/> |
||||
|
<menuitem name="Reporting" id="menu_easy_my_coop_main_reporting" parent="menu_main_easy_my_coop" sequence="40" groups="easy_my_coop.group_energiris_manager"/> |
||||
|
<menuitem name="Configuration" id="menu_easy_my_coop_config" parent="menu_main_easy_my_coop" sequence="20"/> |
||||
|
|
||||
|
<!-- views --> |
||||
|
<menuitem action="action_invoice_tree_coop" id="menu_action_invoice_tree_coop" parent="menu_easy_my_coop_main_coop" groups="easy_my_coop.group_energiris_user"/> |
||||
|
<menuitem id="menu_easy_my_coop_cooperator" name="Cooperators" parent="menu_easy_my_coop_main_coop" action="action_partner_cooperator_form" sequence="100"/> |
||||
|
<menuitem id="menu_easy_my_coop_cooperator_candidate" name="Cooperator Candidates" parent="menu_easy_my_coop_main_coop" action="action_partner_cooperator_candidate_form" sequence="150"/> |
||||
|
<menuitem id="menu_easy_my_coop_company_representative" name="Company representative" parent="menu_easy_my_coop_main_coop" action="action_company_representative_form" sequence="160"/> |
||||
|
|
||||
|
<menuitem action="subscription_register_action" name="Subscription Register" id="menu_easy_my_coop_subscription_register" parent="menu_easy_my_coop_main_subscription" sequence="20"/> |
||||
|
<menuitem action="operation_request_action" name="Operation request" id="menu_easy_my_coop_operation_request" parent="menu_easy_my_coop_main_subscription" sequence="20" groups="easy_my_coop.group_energiris_manager"/> |
||||
|
<menuitem action="share_product_action" name="Share type" id="menu_easy_my_coop_share_product" parent="menu_easy_my_coop_main_subscription" sequence="20"/> |
||||
|
<menuitem action="subscription_request_action" name="Cooperator Subscription" id="menu_easy_my_coop_subscription_request" parent="menu_easy_my_coop_main_subscription" sequence="10"/> |
||||
|
<menuitem action="company_subscription_request_action" name="Company Subscription" id="menu_easy_my_coop_company_subscription_request" parent="menu_easy_my_coop_main_subscription" sequence="12"/> |
||||
|
<menuitem action="share_line_action" name="Share lines" id="menu_easy_my_coop_share_line" parent="menu_easy_my_coop_main_subscription" sequence="20" groups="group_energiris_super_manager"/> |
||||
|
|
||||
|
<menuitem id="menu_easy_my_coop_templates" parent="menu_easy_my_coop_config" action="action_easy_my_coop_email_templates" sequence="10" groups="group_energiris_manager"/> |
||||
|
|
||||
|
<!-- wizards --> |
||||
|
<menuitem action="action_view_update_partner_info" name="Update coop partner" id="menu_view_update_partner_info" parent="menu_easy_my_coop_main_subscription" sequence="60" groups="base.group_system"/> |
||||
|
|
||||
|
</odoo> |
@ -0,0 +1,8 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<odoo> |
||||
|
<data> |
||||
|
<menuitem name="Easy-My Coop" id="menu_main_easy_my_coop" sequence="40" groups="easy_my_coop.group_energiris_user"/> |
||||
|
<menuitem name="Subscription" id="menu_easy_my_coop_main_subscription" parent="menu_main_easy_my_coop" sequence="10" groups="easy_my_coop.group_energiris_manager"/> |
||||
|
<menuitem name="Reporting" id="menu_easy_my_coop_main_reporting" parent="menu_main_easy_my_coop" sequence="40" groups="easy_my_coop.group_energiris_manager"/> |
||||
|
</data> |
||||
|
</odoo> |
@ -1,41 +0,0 @@ |
|||||
<?xml version="1.0" ?> |
|
||||
<openerp> |
|
||||
<data> |
|
||||
<record id="view_cooperative_history_wizard" model="ir.ui.view"> |
|
||||
<field name="name">cooperative.history.wizard.form</field> |
|
||||
<field name="model">cooperative.history.report</field> |
|
||||
<field name="arch" type="xml"> |
|
||||
<form string="Reporting" version="7.0"> |
|
||||
<separator string="Cooperative History"/> |
|
||||
<group> |
|
||||
<field name="report"/> |
|
||||
</group> |
|
||||
<label string="This report allows you to print a pdf of history and number of share for each cooperator"/> |
|
||||
<group> |
|
||||
<field name="display_cooperator"/> |
|
||||
</group> |
|
||||
|
|
||||
<footer> |
|
||||
<button name="check_report" string="Print" type="object" default_focus="1" class="oe_highlight"/> |
|
||||
or |
|
||||
<button string="Cancel" class="oe_link" special="cancel" /> |
|
||||
</footer> |
|
||||
</form> |
|
||||
</field> |
|
||||
</record> |
|
||||
|
|
||||
<record id="action_cooperative_history_wizard" model="ir.actions.act_window"> |
|
||||
<field name="name">Cooperative history</field> |
|
||||
<field name="type">ir.actions.act_window</field> |
|
||||
<field name="res_model">cooperative.history.report</field> |
|
||||
<field name="view_type">form</field> |
|
||||
<field name="view_mode">form</field> |
|
||||
<field name="view_id" ref="view_cooperative_history_wizard"/> |
|
||||
<field name="target">new</field> |
|
||||
<field name="multi">True</field> |
|
||||
</record> |
|
||||
|
|
||||
<menuitem id="menu_energiris_reporting" name="Reporting" parent="menu_main_energiris" sequence="20"/> |
|
||||
<menuitem id="menu_coop_history_wizard_report" name="Cooperative history report" parent="menu_energiris_reporting" action="action_cooperative_history_wizard" sequence="10"/> |
|
||||
</data> |
|
||||
</openerp> |
|
@ -0,0 +1 @@ |
|||||
|
from . import models |
@ -0,0 +1,2 @@ |
|||||
|
from . import coop |
||||
|
from . import partner |
@ -0,0 +1,11 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
from openerp import fields, models |
||||
|
|
||||
|
|
||||
|
class SubscriptionRequest(models.Model): |
||||
|
_inherit = 'subscription.request' |
||||
|
|
||||
|
company_type = fields.Selection([('scrl', 'SCRL'), |
||||
|
('asbl', 'ASBL'), |
||||
|
('sprl', 'SPRL'), |
||||
|
('sa', 'SA')]) |
@ -0,0 +1,11 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
from openerp import fields, models |
||||
|
|
||||
|
|
||||
|
class ResPartner(models.Model): |
||||
|
_inherit = 'res.partner' |
||||
|
|
||||
|
legal_form = fields.Selection(selection_add=[('scrl', 'SCRL'), |
||||
|
('asbl', 'ASBL'), |
||||
|
('sprl', 'SPRL'), |
||||
|
('sa', 'SA')]) |
@ -1 +1,2 @@ |
|||||
from . import coop |
from . import coop |
||||
|
from . import partner |
@ -0,0 +1,17 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
from openerp import fields, models |
||||
|
|
||||
|
|
||||
|
class ResPartner(models.Model): |
||||
|
_inherit = 'res.partner' |
||||
|
|
||||
|
legal_form = fields.Selection(selection_add=[ |
||||
|
('ei', 'Individual company'), |
||||
|
('snc', 'Partnership'), |
||||
|
('sa', 'Limited company (SA)'), |
||||
|
('sarl', 'Limited liability company (Ltd)'), |
||||
|
('sc', 'Cooperative'), |
||||
|
('asso', 'Association'), |
||||
|
('fond', 'Foundation'), |
||||
|
('edp', 'Company under public law') |
||||
|
]) |
@ -1,13 +0,0 @@ |
|||||
<?xml version="1.0" encoding="utf-8"?> |
|
||||
<odoo> |
|
||||
<data> |
|
||||
<record id="subscription_request_form" model="ir.ui.view"> |
|
||||
<field name="name">subscription.request.form</field> |
|
||||
<field name="model">subscription.request</field> |
|
||||
<field name="inherit_id" ref="easy_my_coop.subscription_request_form"/> |
|
||||
<field name="arch" type="xml"> |
|
||||
<field name="no_registre" position="replace"/> |
|
||||
</field> |
|
||||
</record> |
|
||||
</data> |
|
||||
</odoo> |
|
@ -0,0 +1,28 @@ |
|||||
|
<?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> |
||||
|
|
||||
|
<record id="easy_my_coop.res_partner_cooperator_2_demo" model="res.partner"> |
||||
|
<field name="eater">worker_eater</field> |
||||
|
</record> |
||||
|
|
||||
|
<record id="easy_my_coop.res_partner_cooperator_3_demo" model="res.partner"> |
||||
|
<field name="eater">worker_eater</field> |
||||
|
</record> |
||||
|
|
||||
|
<record id="easy_my_coop.res_partner_cooperator_4_demo" model="res.partner"> |
||||
|
<field name="eater">worker_eater</field> |
||||
|
</record> |
||||
|
|
||||
|
<record id="easy_my_coop.res_partner_cooperator_5_demo" model="res.partner"> |
||||
|
<field name="eater">worker_eater</field> |
||||
|
</record> |
||||
|
|
||||
|
<record id="easy_my_coop.res_partner_cooperator_6_demo" model="res.partner"> |
||||
|
<field name="eater">worker_eater</field> |
||||
|
</record> |
||||
|
|
||||
|
</odoo> |
@ -1 +1,2 @@ |
|||||
from . import coop |
from . import coop |
||||
|
from . import partner |
@ -0,0 +1,13 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
from openerp import fields, models |
||||
|
|
||||
|
|
||||
|
class ResPartner(models.Model): |
||||
|
_inherit = 'res.partner' |
||||
|
|
||||
|
legal_form = fields.Selection(selection_add=[ |
||||
|
('asso', 'Association'), |
||||
|
('eurl', 'EURL / Entreprise individuelle'), |
||||
|
('sarl', 'SARL'), |
||||
|
('sa', 'SA / SAS') |
||||
|
]) |
Write
Preview
Loading…
Cancel
Save
Reference in new issue