Skip to content

sale_suggested_price : Refactor product_category._round #458

@victor-champonnois

Description

@victor-champonnois
  • Refactor product_category._round:
    set rounding_precision and rounding_method to required
    remove default values from the _round method

# Use default value 0.05 and "HALF_UP"
# in case someone erase the value on the category
# Keep default value on the field to make it explicit to the end user
return float_round(
price,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions