config.md 16.1 KB
Newer Older
Administrator committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
# Company specific data values

(TODO : Specify which one are mandatory)

### General

- OPEN_ON_SUNDAY = True

        Used to show Sunday on calendars (set SHIFT_EXCHANGE_DAYS_TO_HIDE = '' to show sunday shifts)

- EMAIL_DOMAIN = 'lesgrainsdesel.fr'

- MAG_NAME = ''

        Could be "Cleme" for example, at Cagette (Location are associated to shift template)

- OFFICE_NAME = ''

        Was used for La Cagette (shift template)

- MAX_BEGIN_HOUR = '19:00'

        Used to draw weeks planning

25 26 27 28
- COMPANY_NAME = 'lgds'

        Used for company spesific code

Administrator committed
29 30
- COMPANY_NAME = 'Les Grains de Sel'

31 32 33
- COMPANY_LOGO = 'https://domaine.name/img/logo.png'


Administrator committed
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
- ADMIN_IDS = [13]

        Used to show hidden things. for example, input barcode in shelf adding product (Odoo user id array)

- ADMINS = ['webmaster@coop.dom']


- TOOLS_SERVER = 'https://outils.lacagette-coop.fr'

        Used for file generation (scale or print purpose)

- BRINKS_MUST_IDENTIFY = True

        If True, visitor has to use its Odoo user to identify

- UNITE_UOM_ID = 1

        DB uom unit id (only use for shares invoice)


### Member subscription

- FORCE_HYPHEN_IN_SUBSCRIPTION_FIRSTNAME = False

- CONCAT_NAME_ORDER = 'LF'

- SUBSCRIPTION_ADD_SECOND_PHONE = True

- SUBSCRIPTION_ADD_STREET2 = True

- SUBSCRIPTION_ASK_FOR_SEX = True

- SUBSCRIPTION_INPUT_BARCODE = True

- SUBSCRIPTION_NAME_SEP = ', '

- COOP_BARCODE_RULE_ID = 11

72 73
- ASSOCIATE_BARCODE_RULE_ID = 12

Administrator committed
74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109
- FUNDRAISING_CAT_ID = 1

- PARTS_PRICE_UNIT = 10.0

- PARTS_A_PRICE_UNIT = PARTS_PRICE_UNIT

- PARTS_A_PRODUCT_ID = 5

- PARTS_B_PRODUCT_ID = 6

- PARTS_C_PRODUCT_ID = 7

- CAP_APPELE_NON_VERSE_ACCOUNT_ID = 529

- CAP_APPELE_VERSE_ACCOUNT_ID = 8

- CAP_INVOICE_LINE_ACCOUNT_ID = 8

- CAP_JOURNAL_ID = 9

- CASH_PAYMENT_ID = 18

- CB_PAYMENT_ID = 15

- CHECK_PAYMENT_ID = 8

- VIREMENT_PAYMENT_ID = 16

- HELLO_ASSO_PAYMENT_ID = 29

- SUMUP_PAYMENT_ID = 30

- SUBSCRIPTION_PAYMENT_MEANINGS = [
                                  {'code': 'cash', 'title': 'Espèces','journal_id': CASH_PAYMENT_ID},
                                  {'code': 'ch', 'title': 'Chèque', 'journal_id': CHECK_PAYMENT_ID},
                                  {'code': 'cb', 'title': 'Carte bancaire', 'journal_id': CB_PAYMENT_ID},
110
                                  {'code': 'vir', 'title': 'Virement', 'journal_id': VIREMENT_PAYMENT_ID}]
Administrator committed
111 112 113

        Used to generate payment meanings in subscription form

114 115 116 117
- MAX_CHQ_NB = 12

        Maximum accepted checks numbers

118 119 120 121 122 123 124 125
- INPUT_PHONE_PATTERN = "^(0\d{9})$"
        Regexp pattern which is used to validate values input in phone fields
        Default is "^((\+33(-| )\d{1})|\d{2})(\.| )\d{2}(\.| )\d{2}(\.| )\d{2}(\.| )\d{2}$"

- PHONE_PAIRS_SEPARATOR = "."
        Character which by used to separate every 2 phone figures (04.67.23.89.21 for example)
        Default is " "

126 127 128 129
- SHOW_FTOP_BUTTON = True (by default)

        If True, in shift_template calendar choice view, "Volant" button is included

130 131 132 133
- USE_STANDARD_SHIFT = True (by default)

        La Cagette use False to implement custom rules

134 135
- CAN_CREATE_BINOME = True (by default)

136
        If set to True, in new member creation form,  a member can be selected to be associated with.
137

Etienne Freiss committed
138 139 140 141
- ASSOCIATE_MEMBER_SHIFT = ''

        Id number of the associate shift template

142 143 144
- PREPA_ODOO_URL = ''
        URL of the "prepa_odoo" page

Administrator committed
145 146 147 148 149 150 151 152 153 154
### Scales and labels files generation

- DAV_PATH = '/data/dav/cagette'

        DAV_PATH is a directory managed by Apache2 dav module

- CATEG_FRUIT = 151

- CATEG_LEGUME = 152

155 156 157 158
- FR_CATEGS = [CATEG_FRUIT]

- FR_CATEGS = [CATEG_LEGUME]

Administrator committed
159 160 161 162 163 164 165 166
- FIXED_BARCODE_PREFIX = '0491'

- FLV_CSV_NB = 4

        How many distinct file for scale input have to be generated

- VRAC_CATEGS = [166, 167, 174]

167 168 169 170
- SHELF_LABELS_ADD_FIELDS = ['category_print_id', 'categ_id', 'country_id', 'label_ids', 'uom_id']

        Fields add to generated text file

171 172 173 174
- EXPORT_POS_CAT_FOR_SCALES = True

        Exports POS categories data as a JSON file, and add a POS Category column in CSV file for scale database update

Administrator committed
175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244
### Shop module

- SHOP_CAN_BUY = False

        If set to False, visitors can only see products (quantities and prices)

- SHOP_SLOT_SIZE = 30

        How many minutes for a slot

- DEFAULT_MAX_TIMESLOT_CARTS = 5

        How many carts can be produced by slot
        This value can be changed in shop admin page

- HOURS_FOR_VALIDATION_SHOP = 2

        How many hours are left for people to complete cart (for the choosen date)
        Once time has left, booked picking hour is canceled.
        Visitor has to choose a new picking date and hour

- MIN_DELAY_FOR_SLOT = 4

        How far has to be the closest picking date (in hours)
        For example, with 4 value, if it's 08:00 am, the picking date could not be before 12:00 am (even if a slot is free before)

- DISCOUNT_SHELFS_IDS = [74]

- EXCLUDE_SHOP_CATEGORIES = [108]

- FL_SHELFS = [16, 17, 18]

        Fruits et Légumes shelves (Odoo database ids)

- VRAC_SHELFS = [20, 38]


- PROMOTE_SHELFS_IDS = [68]


- CART_VALIDATION_BOTTOM_MSG = "Pour des raisons d'hygiène les commandes seront préparées dans des sacs en papier kraft qui vous seront facturées, 0,24€ pour les petits et 0,77€ pour les grands. Merci de votre compréhension"


- SHOP_CATEGORIES = {}

- SHOP_EXTRA_MENUS = ['shop/planning_livraison_pains.html', 'shop/combien_ca_pese.html']

- SHOP_HEADER_IMG = 'https://supercafoutch.fr/wp-content/uploads/2018/02/SC-logo-4-invert@1x.png'

- SHOP_LIMIT_PRODUCTS = ['relatively_available', 'no_shelf']

- SHOP_OPENING = {'mar.': [{'start': '10:30', 'end': '14:00'}, {'start': '15:30', 'end': '20:00'}],
                'mer.': [{'start': '10:30', 'end': '14:00'}, {'start': '15:30', 'end': '20:00'}],
                'jeu.': [{'start': '10:30', 'end': '14:00'}, {'start': '15:30', 'end': '20:00'}],
                'ven.': [{'start': '10:30', 'end': '14:00'}, {'start': '15:30', 'end': '20:00'}],
                'sam.': [{'start': '10:30', 'end': '14:00'}, {'start': '15:30', 'end': '20:00'}]
                }

- SHOP_OPENING_START_DATE = '2020-06-02'

- SHOP_SURVEY_LINK = 'https://docs.google.com/forms/d/e/1FAIpQLSczl0mMRwx3s9LbUSPYwwFTiiRa6agx7YkQM9cL41eiQnXNUw/viewform'

- SHOW_SUBSTITUTION_OPTION = False

- VALIDATION_ORDER_MAIL_TEMPLATE = 'shop/supercafoutch_validation_mail.html'



### Entrance module

245 246 247 248 249 250 251 252
- WELCOME_ENTRANCE_MSG = "Bienvenue dans ce super-marché"

        Message shown as H1 at screen top

- WELCOME_SUBTITLE_ENTRANCE_MSG = "Vous êtes venu aujourd'hui pour..."

        Text to introduce button texts (Here for shopping or for a shift)

Administrator committed
253 254 255 256 257 258
- ENTRANCE_COME_FOR_SHOPING_MSG = "Hey coucou toi ! Cet été nous sommes plus de <strong>1000 acheteur·euses</strong> pour seulement  <strong>300 coopérateur·rice·s</strong> en service. <br />Tu fais tes courses à La Cagette cet été ?<br/> Inscris-toi sur ton espace membre !"

- ENTRANCE_FTOP_BUTTON_DISPLAY = False

        Hide the "I come as FTOP" button when set on False

259 260 261
- ENTRANCE_SHOPPING_BTN = "…faire <b>mes courses 🛒"

- ENTRANCE_SERVICE_BTN = "…faire <b>mon service 🤝"
Administrator committed
262

263 264
- ENTRANCE_EXTRA_BUTTONS_DISPLAY = False (no button is shown above shift coop. list) (True if not set)

265
- ENTRANCE_EASY_SHIFT_VALIDATE = False (default value)
266

267 268 269
        When set to True allow coop to identify and have 1 point (only if FTOP)

- ENTRANCE_ADD_PT_EVENT_NAME = 'Add 1 point name throught easy validate' (default : 'Validation service comité'')
270 271 272 273 274

- ENTRANCE_MISSED_SHIFT_BEGIN_MSG (default :  "")

        This message is dispayed when time to register is last

275 276 277 278
- ENTRANCE_EASY_SHIFT_VALIDATE_MSG (default = 'Je valide mon service "Comité"')

        (makes sens if ENTRANCE_EASY_SHIFT_VALIDATE is True)

279 280 281 282 283 284 285 286
- ENTRANCE_WITH_LATE_MODE = True

        (If member is coming within the grace delay)

- ENTRANCE_VALIDATION_GRACE_DELAY = 60

        (if not set, 60 minutes is the default)

287 288 289 290 291 292 293 294 295
- ENTRANCE_VALIDATE_PRESENCE_MESSAGE = """
    <div class="explanations">
     Ta présence a bien été validée ! Merci de te diriger au fond du magasin pour le lancement du créneau !
    </div>
    Ton prochain service <span class="service_verb">est prévu</span> le <span class="next_shift"></span>
"""

        (La Cagette message, where no point data is displayed)

Administrator committed
296 297 298 299 300 301 302 303 304 305
### Member space

- EM_URL = ''

        Url to redirect once member has validated its data (empty in simple use)

- WITH_WEBSITE_MENU = True

        If set to True, a "personnal data" menu is shown, permitting connected member to modify its data.

306 307 308 309 310 311 312 313
- SHIFTS_MOVING_ALLOWED = True

        If set to False, ABCD members cannot move their shifts using calendar

- FTOP_SHIFTS_VIEW_LIMIT = 2

        By default, no limit is set. Unit must be weeks

Administrator committed
314 315 316 317 318 319 320 321 322
- CALENDAR_NO_MORE_LINK = True

        If True, in shifts calendar view (to choose one or exchange one)
        all shifts are shown (if False, a link to show more shifts is shown)

- CAL_INITIAL_VIEW = 'dayGridWeek'

        If not set, default view is 'dayGridMonth'

323
- SHIFT_EXCHANGE_DAYS_TO_HIDE = '0'
Administrator committed
324 325 326

        By default, if this variable is not set, sunday is hidden
        To hide Sunday and Monday, set this to "0,1"
327 328 329 330
- SHIFT_COLOR_TOGGLE_NUM = 7

        If not set, shift class for rendering color is based on % (toggle limit = 50%)
        If set with a number, this number is used (toggle limit = this number, including it)
Administrator committed
331 332 333 334 335 336

- SHIFT_INFO = """A la cagette, un service est une plage de trois heures un jour en particulier, par exemple : le mardi 25/09/2018 à 13h15.
<br />A l'inverse, un créneau est une plage de trois heures régulière, par exemple, tous les mardi de semaine A à 13h15."""

- PB_INSTRUCTIONS = """Si j'ai un problème, que je suis désinscrit, que je veux changer de créneaux ou quoi que ce soit, merci de vous rendre dans la section \"J'ai un problème\" sur le site web de <a href=\"https://lacagette-coop.fr/?MonEspaceMembre\">La Cagette</a>"""

337
- UNSUBSCRIBED_FORM_LINK = 'https://docs.google.com/forms/d/e/1FAIpQLScWcpls-ruYIp7HdrjRF1B1TyuzdqhvlUIcUWynbEujfj3dTg/viewform'
Administrator committed
338 339 340 341
- UNSUBSCRIBED_MSG = 'Vous êtes désincrit·e, merci de remplir <a href="https://docs.google.com/forms/d/e/1FAIpQLSfPiC2PkSem9x_B5M7LKpoFNLDIz0k0V5I2W3Mra9AnqnQunw/viewform">ce formulaire</a> pour vous réinscrire sur un créneau.<br />Vous pouvez également contacter le Bureau des Membres en remplissant <a href="https://docs.google.com/forms/d/e/1FAIpQLSeZP0m5-EXPVJxEKJk6EjwSyZJtnbiGdYDuAeFI3ENsHAOikg/viewform">ce formulaire</a>'

        Message shown to people when they connect to the Member Space

342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361
-  MEMBERS_GUIDE_URL = 'https://.....'

        URL to Members guide page

- MIN_SHIFT_DURATION = 3

        Define minimum shift duration (in hours). 2 is not set.

- FTOP_BLOCK_SERVICE_EXCHANGE_DELAY = 1

        Define duration, in hours, before shift starts within exchange is not more available, for ftop shift_type member

- STANDARD_BLOCK_SERVICE_EXCHANGE_DELAY = 48

        Define duration, in hours, before shift starts within exchange is not more available, for standard shift_type member

- FTOP_SERVICES_RULES = {'successive_shifts_allowed': 0, 'max_shifts_per_cycle': 3}

        Define ftop members constraints (Les amis de La Coopé ex.)

362 363 364
- MEMBERS_SPACE_FAQ_TEMPLATE = None

        If set to None, "FAQ menu" will not be shown. To use a custom content add a template and set it's relative path
365 366 367 368 369

- MEMBERS_SPACE_HOME_TEMPLATE = 'members_space/supercafoutch/home.html'

        If not set, 'members_space/home.html' (la Cagette)

370 371 372
- MEMBERS_SPACE_SHOW_UNDERSTAND_MY_STATUS = False

        By default, is True. If False, tile showing explanations is not shown
373

374 375 376
- BLOCK_ACTIONS_FOR_ATTACHED_PEOPLE = False
        Attached people can or not change his services

377 378 379 380
- CAN_ADD_SHIFT = True

        By default, False. Set if coop can or not add shifts in their memberspace calendar

381 382 383 384
- ASSOCIATE_PEOPLE_CAN_CHANGE_SHIFT_TEMPLE_REGISTRATION = True

        By default, False.

385 386 387 388
- EXTENSION_TYPE_ID = 6

        By default 1. Extension type id (from shift_extension_type table) used to create extension

389 390 391
- COMMITTEES_SHIFT_NAME = 'Coolisses'
        By default "service des Comités"

Administrator committed
392 393 394 395
### Reception

- RECEPTION_ADD_ADMIN_MODE = True

396
- RECEPTION_ADD_ALL_LEFT_IS_GOOD_QTIES = False
Administrator committed
397

398 399 400 401 402 403
        During qties step, a  second button appears to make all pending products (left list) to be considered as "good"
        (RECEPTION_ADD_ADMIN_MODE needs to be set at True)

- RECEPTION_ADD_ALL_LEFT_IS_GOOD_PRICES = False

        During prices step, a second button appears to make all pending products (left list) to be considered as "good"
Administrator committed
404 405 406 407 408 409 410
        (RECEPTION_ADD_ADMIN_MODE needs to be set at True)

- RECEPTION_MERGE_ORDERS_PSWD = 'pass2makeApause'

        Password to enter to validate merge orders processing
        It has been set only to stop member action, considering the impact of the merge

411 412 413 414 415
- RECEPTION_ADD_PRODUCTS_PSWD = 'pass2makeApause'

        Password to enter to add products to an order during reception
        Same principle as previous pswd

416 417
- RECEPTION_UPDATE_QTY_PSWD = 'pass2makeApause'

Damien Moulard committed
418
        Password to update a product qty during prices update.
419

Administrator committed
420 421 422 423 424 425
- RECEPTION_PDT_LABELS_BTN_TEXT = 'Lancer l\'impression'

- RECEPTION_PDT_LABELS_FN = 'print_product_labels()'

- RECEPTION_PDT_LABELS_TEXT = 'Cliquez sur ce bouton pour imprimer les étiquettes code-barres à coller sur les produits'

426 427 428 429
- RECEPTION_PDT_LABELS_NB_FORCE_TO_NB = 65

        If set, force , by example, to 65 labels per product

Administrator committed
430 431
- RECEPTION_SHELF_LABEL_PRINT = True

432 433 434 435
- DISPLAY_COL_AUTRES = True

        Display "Autres" column (showing select with action "rupture fournisseur")

Administrator committed
436 437 438 439
- COEFF_MAG_ID = 1

        DB coeff id, needed to compute product shelf price

440 441 442 443 444 445
### Orders helper

- ORDERS_HELPER_CUSTOMIZE = False

        If lacagette_connection Odoo module is actived, True can be set, in order to allow user to record its preferences

446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463
### Stocks

- STOCK_LOC_ID = 12

        Only used in Inventory module, which is no more in use

- LOSSES_LOC_ID = 33

- LOSSES_PICKING_TYPE_ID = 10

- AUTOCONSO_LOC_ID = 27

- AUTOCONSO_PICKING_TYPE_ID = 7

- MEALS_LOC_ID = 33

- MEALS_PICKING_TYPE_ID = 10

464 465 466 467 468 469
### Inventory

- SHELFS_TO_BE_AHEAD_IN_SELECT_LIST = [90,74]

        These shelfs (odoo ids) will be shown first in select list

470 471
### New members space

472 473 474 475
- USE_NEW_MEMBERS_SPACE = True

        Should be set to False by default if parameter not set

476
- START_DATE_FOR_SHIFTS_HISTORY = "2018-01-01"
477

478
- AMNISTIE_DATE = "2021-11-24 00:00:00"
479

480
        In members_space history display a special activity about amnistie
481

482 483 484 485 486 487 488 489 490 491 492 493 494 495 496
- MEMBERS_SPACE_FAQ_TEMPLATE = 'members_space/supercoop/faq.html'

        Set alternative template for FAQ

- MEMBERS_SPACE_HOME_TEMPLATE = 'members_space/supercoop/home.html'

        Set alternative template for home page

- MEMBERS_SPACE_UNDERSTAND_MY_STATUS_TEMPLATE = 'members_space/supercoop/understand_my_status.html'

        Set alternative template for understand my status

- SHOW_ABCD_CALENDAR_TAB = False

        True by default
497

498 499 500
- PERMANENT_MESSAGE_BELOW_CONNECTION_FIELDS = "Si vous avez des difficultés à vous connecter, ...."

        Default is None
501 502 503
- STANDARD_BLOCK_SERVICE_EXCHANGE_DELAY = 36 (default = 24)

        Define duration, in hours, before shift starts within exchange is not more available, for standard shift_type member
504

505 506 507 508
- REMOVE_15_MINUTES_AT_SHIFT_END = False

        True by default. Remove 15 minutes to Odoo shift end (https://redmine.cooperatic.fr/issues/1680)

509 510 511 512
- ALLOW_FTOP_TO_DELETE_SHIFT = False

        If True, allow ftop member to delete futur shifts

513 514 515 516 517 518
### BDM Admin

- BDM_SHOW_FTOP_BUTTON = True (by default)

        If True, in BDM Admin manage shift template, on the calendar when subscribing a partner to a shift, "Volant" button is included

519 520 521 522
- ADMIN_BINOME_ACTIVE = False

        By defaut, True. Show "Gestion des binômes" in bdm admin

523 524 525 526 527 528
### Odoo users mapping

- ODOO_USERS_GRANTS = [ {'login': 'admin', 'bdm': {'all': True}}, {'login': gdm@lacoope.fr', 'bdm': {'record_absence': True}} ]

        If not set, any authentified Odoo user can make any action

Administrator committed
529 530 531 532 533 534 535 536 537 538 539 540 541
### Miscellious

- EXPORT_COMPTA_FORMAT = 'Quadratus'

        If not set, export format is the one used by La Cagette
        Quadratus has been introduced to fit with Supercafoutch need.



- CUSTOM_CSS_FILES = {'all': ['common_lgds.css'],
                    'members': ['inscription_lgds.css']}

        To insert a CSS to all modules, key is 'all' (files actually put in outils/static/css)