You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

169 lines
7.0 KiB

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  1. ![Licence](https://img.shields.io/badge/licence-AGPL--3-blue.svg)
  2. [![Build Status](https://travis-ci.org/beescoop/Obeesdoo.svg?branch=12.0)](https://travis-ci.org/beescoop/Obeesdoo.svg?branch=12.0)
  3. # Obeesdoo
  4. Specific module for the Beescoop
  5. <!-- prettier-ignore-start -->
  6. [//]: # (addons)
  7. Available addons
  8. ----------------
  9. addon | version | summary
  10. --- | --- | ---
  11. [beesdoo_account](beesdoo_account/) | 12.0.1.0.0 | Makes date_invoice field required in account.invoice_form and account.invoice_supplier_form
  12. [beesdoo_base](beesdoo_base/) | 12.0.1.0.0 | Module that customize the base module and contains some python tools
  13. [beesdoo_crelan_csv](beesdoo_crelan_csv/) | 12.0.1.0.0 | Import Crelan CSV Wizard
  14. [beesdoo_easy_my_coop](beesdoo_easy_my_coop/) | 12.0.1.0.0 | Link between beesdoo customization and easy_my_coop
  15. [beesdoo_inventory](beesdoo_inventory/) | 12.0.1.0.0 | Adds a responsible, a max shipping date and a button to copy quantity to stock pickings.
  16. [beesdoo_pos](beesdoo_pos/) | 12.0.1.0.0 | This module adds the eaters of the customer to the POS ActionpadWidget and PaymentScreenWidget.
  17. [beesdoo_pos_reporting](beesdoo_pos_reporting/) | 12.0.1.0.0 | Enhance POS with features allowing statistics and reporting.
  18. [beesdoo_product](beesdoo_product/) | 12.0.1.0.0 | Modification of product module for the needs of beescoop - SOOO5 - Ajout de label bio/ethique/provenance
  19. [beesdoo_product_usability](beesdoo_product_usability/) | 12.0.1.0.0 | Adapt the product views.
  20. [beesdoo_purchase](beesdoo_purchase/) | 12.0.1.1.0 | - Adds a 'Responsible' field to purchase orders, - A filter w.r.t. the mail sellers is placed on the products field of a purchase order.
  21. [beesdoo_shift](beesdoo_shift/) | 12.0.1.0.0 | Generate and manage shifts for cooperators.
  22. [beesdoo_shift_attendance](beesdoo_shift_attendance/) | 12.0.1.0.1 | Volonteer Timetable Management Attendance Sheet for BEES coop
  23. [beesdoo_stock](beesdoo_stock/) | 12.0.1.0.0 | Enable action on multiple products of a stock receipt
  24. [beesdoo_stock_coverage](beesdoo_stock_coverage/) | 12.0.0.0.1 | Compute estimated stock coverage based on product sales over a date range.
  25. [beesdoo_website_eater](beesdoo_website_eater/) | 12.0.1.0.0 | Show the eaters of a cooperator in the website portal.
  26. [beesdoo_website_posorder_amount](beesdoo_website_posorder_amount/) | 12.0.1.0.0 | Show the total amount of pos order in the website portal.
  27. [beesdoo_website_shift](beesdoo_website_shift/) | 12.0.1.0.0 | Show available shifts for regular and irregular workers on the website and let workers manage their shifts with an easy web interface.
  28. [beesdoo_website_theme](beesdoo_website_theme/) | 12.0.0.0.1 | Apply BEES coop design rules.
  29. [beesdoo_worker_status](beesdoo_worker_status/) | 12.0.1.0.0 | Worker status management specific to beescoop.
  30. [macavrac_base](macavrac_base/) | 12.0.1.0.0 | Module with basic customizations for the Macavrac cooperative.
  31. [purchase_order_generator](purchase_order_generator/) | 12.0.1.0.0 | Generate purchase order from a product selection
  32. [website_portal_restrict_modification](website_portal_restrict_modification/) | 12.0.1.0.0 | Portal extension preventing modification of sensible data by the users
  33. [//]: # (end addons)
  34. <!-- prettier-ignore-end -->
  35. ## Migration to 12.0
  36. **Do not migrate the following modules**:
  37. - `admin_technical_features`
  38. - `base_technical_features`
  39. - `beesdoo_coda`
  40. - `beesdoo_crelan_csv` vérifier s'il n'existe pas dans l'oca.
  41. - `mass_editing`
  42. - `pos_price_to_weigth` Attention il y a eu des modification de Houssine.
  43. - `web_environment_ribbon`
  44. ## Install odoo
  45. - cf. [install-odoo-linux-server.md](install-odoo-linux-server.md) (review)
  46. - cf. [install-odoo-linux.md](install-odoo.md) (review)
  47. - cf. [install-odoo-mac.md](install-odoo-mac.md)
  48. - cf. [install-odoo-docker.md](install-odoo-docker.md)
  49. ## Setup obeesdoo
  50. ##### 1) clone repos
  51. ```
  52. $ cd projects
  53. $ git clone https://github.com/beescoop/Obeesdoo.git obeesdoo -b 12.0 --depth 1
  54. $ git clone https://github.com/coopiteasy/vertical-cooperative.git vertical-cooperative -b 12.0 --depth 1
  55. $ git clone https://github.com/coopiteasy/addons.git addons -b 12.0 --depth 1
  56. $ git clone https://github.com/OCA/partner-contact.git partner-contact -b 12.0 --depth 1
  57. # $ git clone https://github.com/coopiteasy/procurement-addons procurement-addons -b 12.0 --depth 1
  58. $ git clone https://github.com/OCA/l10n-belgium -b 12.0 --depth 1
  59. $ git clone https://github.com/OCA/mis-builder -b 12.0 --depth 1
  60. $ git clone https://github.com/OCA/account-financial-tools -b 12.0 --depth 1
  61. $ git clone https://github.com/OCA/account-financial-reporting -b 12.0 --depth 1
  62. $ git clone https://github.com/OCA/web -b 12.0 --depth 1
  63. $ git clone https://github.com/OCA/website -b 12.0 --depth 1
  64. $ git clone https://github.com/OCA/server-tools -b 12.0 --depth 1
  65. $ git clone https://github.com/OCA/reporting-engine -b 12.0 --depth 1
  66. $ git clone https://github.com/OCA/bank-payment.git -b 12.0 --depth 1
  67. $ git clone https://github.com/OCA/pos.git -b 12.0 --depth 1
  68. ```
  69. todo: setup git submodules
  70. ##### 2) install wkhtmltopdf
  71. Download and install [wkhtmltopdf version 0.12.5](https://github.com/wkhtmltopdf/wkhtmltopdf/releases/0.12.5)
  72. ##### 3) set up the database and import production data.
  73. ```
  74. $ createuser -d odoo
  75. $ createdb beescoop -o odoo
  76. $ gunzip <dump-file>.sql.gz
  77. $ psql beescoop < <dump-file>.sql
  78. ```
  79. ##### 4) deactivate cron jobs and mails
  80. ```
  81. $ psql -d beescoop -c "UPDATE ir_cron SET active='f' WHERE active='t';"
  82. $ psql -d beescoop -c "update ir_mail_server set smtp_encryption='none', smtp_port=1025, smtp_host='localhost',smtp_user='', smtp_pass='';"
  83. $ psql -d beescoop -c "UPDATE fetchmail_server SET active='f', password='', server='localhost';"
  84. ```
  85. ##### 5) create odoo.conf
  86. ```
  87. $ export ODOO_HOME='~/projects'
  88. $ vi $ODOO_HOME/odoo.conf
  89. ```
  90. ```
  91. [options]
  92. ; This is the password that allows database operations:
  93. ; admin_passwd = admin
  94. debug=True
  95. dev=True
  96. db_host=False
  97. db_port=False
  98. db_user=odoo
  99. db_password=False
  100. addons_path=addons,openerp/addons,
  101. $ODOO_HOME/obeesdoo,
  102. $ODOO_HOME/vertical-cooperative,
  103. $ODOO_HOME/addons,
  104. $ODOO_HOME/partner-contact,
  105. # $ODOO_HOME/procurement-addons,
  106. $ODOO_HOME/l10n-belgium,
  107. $ODOO_HOME/mis-builder,
  108. $ODOO_HOME/web,
  109. $ODOO_HOME/website,
  110. $ODOO_HOME/server-tools,
  111. $ODOO_HOME/account-financial-reporting,
  112. $ODOO_HOME/account-financial-tools,
  113. $ODOO_HOME/bank-payment,
  114. $ODOO_HOME/pos,
  115. $ODOO_HOME/reporting-engine
  116. ```
  117. ##### 6) update database structure
  118. ```
  119. $ cd ~/projects/odoo
  120. $ psql -d beescoop -c "truncate product_scale_log"
  121. $ python odoo.py -c $ODOO_HOME/odoo.conf -u all -d beescoop --stop-after-init
  122. ```
  123. ### Troubleshoot
  124. Missing libraries
  125. ```
  126. pip install pycoda
  127. pip install xlsxwriter
  128. ```
  129. Can't update `product_scale_log` table (I did not write down the exact error)
  130. ```
  131. truncate table product_scale_log
  132. ```
  133. ## Migrate barcode
  134. ```sql
  135. insert into member_card (active, barcode, partner_id, responsible_id, activation_date) select 't', barcode, id, 1, '2016-01-01' from res_partner where barcode is not null;
  136. update res_partner set eater = 'worker_eater' where barcode is not null;
  137. ```