Sale Margin Update

sale_margin_update
REPOSITORY
REPOSITORYOCA/sale-workflow
GIT
GIThttps://github.com/OCA/sale-workflow.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/sale-workflow/tree/16.0/sale_margin_update
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYUncategorized
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Oscar Soto, Sidoo Soluciones S.L.
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Oscar Soto, Sidoo Soluciones S.L.
COMMITTERS
COMMITTERSOCA-git-bot, oca-ci
WEBSITE
WEBSITEhttps://github.com/OCA/sale-workflow
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:53:46
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - sale
    - sales_team
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - account_payment
    - account
    - product
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
    - payment
    - utm
    - sale_margin
    - sale_management
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
recalculate_price_margin_view_form recalculate_price_margin.view.form sale.recalculate.price.margin form New
sale_margin_sale_order sale.order xpath Inherits sale_margin.sale_margin_sale_order
sale_margin_sale_order_line_form sale.order xpath Inherits sale_margin.sale_margin_sale_order_line_form
Models touched (3)

New fields (0)

No new fields.

Public methods (1)
  • wizard_price_unit_by_margin(self)

New fields (0)

No new fields.

Public methods (1)
  • wizard_price_unit_by_margin(self)

New fields (3)
  • line_id Many2one → sale.order.line
    ondelete='cascade' args: 'sale.order.line'
  • order_id Many2one → sale.order
    ondelete='cascade' args: 'sale.order'
  • sale_margin_percent Float
    digits='Product Price' required=True string='Margin (%)'
Public methods (1)
  • recalculate_price_margin(self)