Code coupon program multiple times

sale_coupon_multiple_code_program
REPOSITORY
REPOSITORYOCA/sale-promotion
GIT
GIThttps://github.com/OCA/sale-promotion.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/sale-promotion/tree/15.0/sale_coupon_multiple_code_program
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYSales Management
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA)
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA)
COMMITTERS
COMMITTERSOCA-git-bot, oca-ci, Stefan
WEBSITE
WEBSITEhttps://github.com/OCA/sale-promotion
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:46:30
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - sale_coupon
    - coupon
    - account
    - base_setup
    - base
    - web
    - product
    - mail
    - bus
    - web_tour
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
    - sale
    - sales_team
    - payment
    - utm
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
coupon_program_view_promo_program_form coupon.program field Inherits coupon.coupon_program_view_promo_program_form
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
REPOSITORY
REPOSITORYOCA/sale-promotion
GIT
GIThttps://github.com/OCA/sale-promotion.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/sale-promotion/tree/13.0/sale_coupon_multiple_code_program
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYSales Management
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA)
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA)
COMMITTERS
COMMITTERSOCA-git-bot, oca-ci, CarlosRoca13
WEBSITE
WEBSITEhttps://github.com/OCA/sale-promotion
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:34:09
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - sale_coupon
    - sale_management
    - sale
    - sales_team
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - payment
    - account
    - product
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
    - utm
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
sale_coupon_program_view_promo_program_form sale.coupon.program field Inherits sale_coupon.sale_coupon_program_view_promo_program_form
Models touched (3)

New fields (0)

No new fields.

Public methods (1)
  • apply_coupon(self, order, coupon_code)

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)
  • write(self, vals)
    Store code programs along with automatic programs