Code coupon program multiple times
sale_coupon_multiple_code_program · OCA/sale-promotion
Health
42/100
poor
-
Security25/25No findings
-
Activity0/25Last human commit 46 months ago
-
Required by5/250 modules depend on it
-
Maturity12/25In 2 Odoo series since 13.0
Heuristic over the facts below, not an audit · How it's computed
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.04 MB
Module directory on disk
Code analysis
0 migration notes
3 models
1 view
0 HTTP endpoints
Description
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 1
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
coupon_program_view_promo_program_form |
coupon.program | form | Inherits coupon.coupon_program_view_promo_program_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 3
New fields (0)
No new fields.
Public methods (1)-
search(self, args, offset=0, limit=None, order=None, count=False)HACK: Allow to use multiple code coupon programs Adding this condition we can fool the core filters to allow multiple code programs in a single order. They get registered in the no_code_promo_program_ids but aside from that they'll behave as regular code programs.
New fields (0)
No new fields.
Public methods (1)-
apply_coupon(self, order, coupon_code)
New fields (0)
No new fields.
Public methods (1)-
write(self, vals)Store code programs along with automatic programs
Loading…