Skip to content

Commit 42dffdb

Browse files
committed
[IMP] CI: add rebel modules: sale_triple_discount, sale_fixed_discount
1 parent cf06c20 commit 42dffdb

5 files changed

Lines changed: 28 additions & 74 deletions

File tree

.copier-answers.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Do NOT update manually; changes here will be overwritten by Copier
2-
_commit: v1.29
2+
_commit: v1.32
33
_src_path: git+https://github.com/OCA/oca-addons-repo-template
44
additional_ruff_rules: []
55
ci: GitHub
@@ -17,7 +17,9 @@ odoo_test_flavor: Both
1717
odoo_version: 18.0
1818
org_name: Odoo Community Association (OCA)
1919
org_slug: OCA
20-
rebel_module_groups: []
20+
rebel_module_groups:
21+
- sale_triple_discount
22+
- sale_fixed_discount
2123
repo_description: sale-workflow
2224
repo_name: sale-workflow
2325
repo_slug: sale-workflow

.github/workflows/test.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,24 @@ jobs:
3636
matrix:
3737
include:
3838
- container: ghcr.io/oca/oca-ci/py3.10-odoo18.0:latest
39+
include: "sale_triple_discount"
3940
name: test with Odoo
4041
- container: ghcr.io/oca/oca-ci/py3.10-ocb18.0:latest
42+
include: "sale_triple_discount"
43+
name: test with OCB
44+
makepot: "true"
45+
- container: ghcr.io/oca/oca-ci/py3.10-odoo18.0:latest
46+
include: "sale_fixed_discount"
47+
name: test with Odoo
48+
- container: ghcr.io/oca/oca-ci/py3.10-ocb18.0:latest
49+
include: "sale_fixed_discount"
50+
name: test with OCB
51+
makepot: "true"
52+
- container: ghcr.io/oca/oca-ci/py3.10-odoo18.0:latest
53+
exclude: "sale_triple_discount,sale_fixed_discount"
54+
name: test with Odoo
55+
- container: ghcr.io/oca/oca-ci/py3.10-ocb18.0:latest
56+
exclude: "sale_triple_discount,sale_fixed_discount"
4157
name: test with OCB
4258
makepot: "true"
4359
services:
@@ -50,6 +66,8 @@ jobs:
5066
ports:
5167
- 5432:5432
5268
env:
69+
INCLUDE: "${{ matrix.include }}"
70+
EXCLUDE: "${{ matrix.exclude }}"
5371
OCA_ENABLE_CHECKLOG_ODOO: "1"
5472
steps:
5573
- uses: actions/checkout@v4

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ repos:
9595
additional_dependencies:
9696
- "eslint@9.12.0"
9797
- "eslint-plugin-jsdoc@50.3.1"
98+
- "globals@16.0.0"
9899
- repo: https://github.com/pre-commit/pre-commit-hooks
99100
rev: v4.6.0
100101
hooks:

README.md

Lines changed: 1 addition & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -17,77 +17,7 @@ sale-workflow
1717

1818
[//]: # (addons)
1919

20-
Available addons
21-
----------------
22-
addon | version | maintainers | summary
23-
--- | --- | --- | ---
24-
[pricelist_cache](pricelist_cache/) | 18.0.1.0.0 | | Provide a new model to cache price lists and update it, to make it easier to retrieve them.
25-
[product_customerinfo_sale](product_customerinfo_sale/) | 18.0.1.0.0 | | Loads in every sale order line the customer code defined in the product
26-
[product_form_sale_link](product_form_sale_link/) | 18.0.1.0.1 | | Adds a button on product forms to access Sale Lines
27-
[product_set_sell_only_by_packaging](product_set_sell_only_by_packaging/) | 18.0.1.0.0 | | Glue module between `sell_only_by_packaging` and `sale_product_set_packaging_qty`.
28-
[sale_automatic_workflow](sale_automatic_workflow/) | 18.0.1.0.0 | | Sale Automatic Workflow
29-
[sale_automatic_workflow_job](sale_automatic_workflow_job/) | 18.0.1.0.0 | | Execute sale automatic workflows in queue jobs
30-
[sale_automatic_workflow_periodicity](sale_automatic_workflow_periodicity/) | 18.0.1.0.0 | <a href='https://github.com/TDu'><img src='https://github.com/TDu.png' width='32' height='32' style='border-radius:50%;' alt='TDu'/></a> | Adds a period for the execution of a workflow.
31-
[sale_automatic_workflow_stock](sale_automatic_workflow_stock/) | 18.0.1.0.0 | | Sale Automatic Workflow Stock
32-
[sale_automatic_workflow_stock_job](sale_automatic_workflow_stock_job/) | 18.0.1.0.0 | | Sale Automatic Workflow Stock Job
33-
[sale_block_no_stock](sale_block_no_stock/) | 18.0.1.0.0 | <a href='https://github.com/Shide'><img src='https://github.com/Shide.png' width='32' height='32' style='border-radius:50%;' alt='Shide'/></a> | Block Sales if products has not enough Quantity based on a chosen field
34-
[sale_cancel_reason](sale_cancel_reason/) | 18.0.1.0.0 | | Sale Cancel Reason
35-
[sale_commercial_partner](sale_commercial_partner/) | 18.0.1.0.0 | <a href='https://github.com/alexis-via'><img src='https://github.com/alexis-via.png' width='32' height='32' style='border-radius:50%;' alt='alexis-via'/></a> | Add stored related field 'Commercial Entity' on sale orders
36-
[sale_company_currency](sale_company_currency/) | 18.0.1.0.0 | | Company Currency in Sale Orders
37-
[sale_delivery_split_date](sale_delivery_split_date/) | 18.0.1.0.0 | | Sale Deliveries split by date
38-
[sale_delivery_state](sale_delivery_state/) | 18.0.1.1.0 | | Show the delivery state on the sale order
39-
[sale_discount_display_amount](sale_discount_display_amount/) | 18.0.1.0.0 | | This addon intends to display the amount of the discount computed on sale_order_line and sale_order level
40-
[sale_elaboration](sale_elaboration/) | 18.0.1.0.1 | <a href='https://github.com/CarlosRoca13'><img src='https://github.com/CarlosRoca13.png' width='32' height='32' style='border-radius:50%;' alt='CarlosRoca13'/></a> <a href='https://github.com/rafaelbn'><img src='https://github.com/rafaelbn.png' width='32' height='32' style='border-radius:50%;' alt='rafaelbn'/></a> <a href='https://github.com/sergio-teruel'><img src='https://github.com/sergio-teruel.png' width='32' height='32' style='border-radius:50%;' alt='sergio-teruel'/></a> <a href='https://github.com/yajo'><img src='https://github.com/yajo.png' width='32' height='32' style='border-radius:50%;' alt='yajo'/></a> | Set an elaboration for any sale line
41-
[sale_exception](sale_exception/) | 18.0.1.0.0 | | Custom exceptions on sale order
42-
[sale_exception_product_sale_manufactured_for](sale_exception_product_sale_manufactured_for/) | 18.0.1.0.0 | | The partner set in the sales order can order only if he/she has a commercial entity that is listed as one of the partners for which the products can be manufactured for.
43-
[sale_fixed_discount](sale_fixed_discount/) | 18.0.1.0.0 | | Allows to apply fixed amount discounts in sales orders.
44-
[sale_force_invoiced](sale_force_invoiced/) | 18.0.1.0.1 | | Allows to force the invoice status of the sales order to Invoiced
45-
[sale_invoice_frequency](sale_invoice_frequency/) | 18.0.1.0.1 | <a href='https://github.com/Shide'><img src='https://github.com/Shide.png' width='32' height='32' style='border-radius:50%;' alt='Shide'/></a> <a href='https://github.com/yajo'><img src='https://github.com/yajo.png' width='32' height='32' style='border-radius:50%;' alt='yajo'/></a> <a href='https://github.com/EmilioPascual'><img src='https://github.com/EmilioPascual.png' width='32' height='32' style='border-radius:50%;' alt='EmilioPascual'/></a> | Define the invoice frequency for customers
46-
[sale_invoice_policy](sale_invoice_policy/) | 18.0.1.0.0 | | Sales Management: let the user choose the invoice policy on the order
47-
[sale_mail_autosubscribe](sale_mail_autosubscribe/) | 18.0.1.0.0 | <a href='https://github.com/ivantodorovich'><img src='https://github.com/ivantodorovich.png' width='32' height='32' style='border-radius:50%;' alt='ivantodorovich'/></a> | Automatically subscribe partners to their company's sale orders
48-
[sale_manual_delivery](sale_manual_delivery/) | 18.0.1.0.0 | | Create manually your deliveries
49-
[sale_order_archive](sale_order_archive/) | 18.0.1.0.0 | | Archive Sale Orders
50-
[sale_order_disable_user_autosubscribe](sale_order_disable_user_autosubscribe/) | 18.0.1.0.0 | | Remove the salesperson from autosubscribed sale followers
51-
[sale_order_general_discount](sale_order_general_discount/) | 18.0.1.0.0 | | General discount per sale order
52-
[sale_order_line_date](sale_order_line_date/) | 18.0.1.0.1 | | Adds a commitment date to each sale order line.
53-
[sale_order_line_delivery_state](sale_order_line_delivery_state/) | 18.0.1.0.0 | | Show the delivery state on the sale order line
54-
[sale_order_line_menu](sale_order_line_menu/) | 18.0.1.0.0 | | Adds a Sale Order Lines Menu
55-
[sale_order_line_note](sale_order_line_note/) | 18.0.1.0.0 | | Note on sale order line
56-
[sale_order_line_price_history](sale_order_line_price_history/) | 18.0.1.0.0 | <a href='https://github.com/CarlosRoca13'><img src='https://github.com/CarlosRoca13.png' width='32' height='32' style='border-radius:50%;' alt='CarlosRoca13'/></a> <a href='https://github.com/Shide'><img src='https://github.com/Shide.png' width='32' height='32' style='border-radius:50%;' alt='Shide'/></a> | Sale order line price history
57-
[sale_order_line_sequence](sale_order_line_sequence/) | 18.0.1.0.0 | | Propagates SO line sequence to invoices and stock picking.
58-
[sale_order_lot_selection](sale_order_lot_selection/) | 18.0.1.0.0 | <a href='https://github.com/bodedra'><img src='https://github.com/bodedra.png' width='32' height='32' style='border-radius:50%;' alt='bodedra'/></a> | Sale Order Lot Selection
59-
[sale_order_note_template](sale_order_note_template/) | 18.0.1.0.0 | | Add sale orders terms and conditions template that can be used to quickly fullfill sale order terms and conditions
60-
[sale_order_price_recalculation](sale_order_price_recalculation/) | 18.0.1.0.0 | | Recalculate prices / Reset descriptions on sale order lines
61-
[sale_order_product_assortment](sale_order_product_assortment/) | 18.0.1.0.0 | <a href='https://github.com/CarlosRoca13'><img src='https://github.com/CarlosRoca13.png' width='32' height='32' style='border-radius:50%;' alt='CarlosRoca13'/></a> | Module that allows to use the assortments on sale orders
62-
[sale_order_product_availability_inline](sale_order_product_availability_inline/) | 18.0.1.0.0 | <a href='https://github.com/ernestotejeda'><img src='https://github.com/ernestotejeda.png' width='32' height='32' style='border-radius:50%;' alt='ernestotejeda'/></a> | Show product availability in sales order line product drop-down.
63-
[sale_order_product_recommendation](sale_order_product_recommendation/) | 18.0.1.0.0 | <a href='https://github.com/sergio-teruel'><img src='https://github.com/sergio-teruel.png' width='32' height='32' style='border-radius:50%;' alt='sergio-teruel'/></a> <a href='https://github.com/rafaelbn'><img src='https://github.com/rafaelbn.png' width='32' height='32' style='border-radius:50%;' alt='rafaelbn'/></a> <a href='https://github.com/yajo'><img src='https://github.com/yajo.png' width='32' height='32' style='border-radius:50%;' alt='yajo'/></a> | Recommend products to sell to customer based on history
64-
[sale_order_report_without_price](sale_order_report_without_price/) | 18.0.1.0.0 | | Allow you to generate quotation and order reports without price.
65-
[sale_order_requested_delivery](sale_order_requested_delivery/) | 18.0.1.0.0 | | This module adds two new fields `requested_delivery_period_start` and `requested_delivery_period_end` to both the `sale.order` and `sale.order.line` models.
66-
[sale_order_revision](sale_order_revision/) | 18.0.1.0.0 | | Keep track of revised quotations
67-
[sale_order_split_strategy](sale_order_split_strategy/) | 18.0.1.0.0 | <a href='https://github.com/grindtildeath'><img src='https://github.com/grindtildeath.png' width='32' height='32' style='border-radius:50%;' alt='grindtildeath'/></a> | Define strategies to split sales orders
68-
[sale_order_tag](sale_order_tag/) | 18.0.1.0.0 | <a href='https://github.com/patrickrwilson'><img src='https://github.com/patrickrwilson.png' width='32' height='32' style='border-radius:50%;' alt='patrickrwilson'/></a> | Adds Tags to Sales Orders.
69-
[sale_order_type](sale_order_type/) | 18.0.1.0.0 | | Sale Order Type
70-
[sale_order_warn_message](sale_order_warn_message/) | 18.0.1.0.0 | | Add a popup warning on sale to ensure warning is populated
71-
[sale_partner_address_restrict](sale_partner_address_restrict/) | 18.0.1.0.0 | | Restrict addresses domain in the sales order form taking into account the partner selected
72-
[sale_partner_incoterm](sale_partner_incoterm/) | 18.0.1.0.0 | | Set the customer preferred incoterm on each sales order
73-
[sale_partner_selectable_option](sale_partner_selectable_option/) | 18.0.1.0.0 | <a href='https://github.com/victoralmau'><img src='https://github.com/victoralmau.png' width='32' height='32' style='border-radius:50%;' alt='victoralmau'/></a> | Sale Partner Selectable Option
74-
[sale_procurement_group_by_line](sale_procurement_group_by_line/) | 18.0.1.0.0 | | Base module for multiple procurement group by Sale order
75-
[sale_product_set](sale_product_set/) | 18.0.1.0.0 | | Sales product set
76-
[sale_product_set_packaging_qty](sale_product_set_packaging_qty/) | 18.0.1.0.0 | | Manage packaging and quantities on product set lines
77-
[sale_quotation_number](sale_quotation_number/) | 18.0.1.0.0 | | Different sequence for sale quotations
78-
[sale_require_po_doc](sale_require_po_doc/) | 18.0.1.0.0 | | Sale Orders Require PO or Sales Documentation
79-
[sale_shipping_info_helper](sale_shipping_info_helper/) | 18.0.1.0.0 | | Add shipping amounts on sale order
80-
[sale_sourced_by_line](sale_sourced_by_line/) | 18.0.1.0.0 | | Multiple warehouse source locations for Sale order
81-
[sale_stock_cancel_restriction](sale_stock_cancel_restriction/) | 18.0.1.0.0 | | Sale Stock Cancel Restriction
82-
[sale_stock_delivery_state](sale_stock_delivery_state/) | 18.0.1.0.0 | | Change the way to compute the delivery state
83-
[sale_stock_line_customer_ref](sale_stock_line_customer_ref/) | 18.0.1.0.0 | <a href='https://github.com/sebalix'><img src='https://github.com/sebalix.png' width='32' height='32' style='border-radius:50%;' alt='sebalix'/></a> | Allow you to add a customer reference on order lines propagaged to move operations.
84-
[sale_stock_picking_blocking](sale_stock_picking_blocking/) | 18.0.1.0.2 | | Allow you to block the creation of deliveries from a sale order.
85-
[sale_stock_picking_note](sale_stock_picking_note/) | 18.0.1.0.0 | <a href='https://github.com/carlosdauden'><img src='https://github.com/carlosdauden.png' width='32' height='32' style='border-radius:50%;' alt='carlosdauden'/></a> <a href='https://github.com/victoralmau'><img src='https://github.com/victoralmau.png' width='32' height='32' style='border-radius:50%;' alt='victoralmau'/></a> <a href='https://github.com/chienandalu'><img src='https://github.com/chienandalu.png' width='32' height='32' style='border-radius:50%;' alt='chienandalu'/></a> <a href='https://github.com/EmilioPascual'><img src='https://github.com/EmilioPascual.png' width='32' height='32' style='border-radius:50%;' alt='EmilioPascual'/></a> | Add picking note in sale and purchase order
86-
[sale_stock_return_request](sale_stock_return_request/) | 18.0.1.0.0 | <a href='https://github.com/chienandalu'><img src='https://github.com/chienandalu.png' width='32' height='32' style='border-radius:50%;' alt='chienandalu'/></a> | Sale Stock Return Request
87-
[sale_tier_validation](sale_tier_validation/) | 18.0.1.0.0 | | Extends the functionality of Sale Orders to support a tier validation process.
88-
[sale_wishlist](sale_wishlist/) | 18.0.1.0.0 | | Handle sale wishlist for partners
89-
[sales_team_security](sales_team_security/) | 18.0.1.0.0 | <a href='https://github.com/pedrobaeza'><img src='https://github.com/pedrobaeza.png' width='32' height='32' style='border-radius:50%;' alt='pedrobaeza'/></a> <a href='https://github.com/ivantodorovich'><img src='https://github.com/ivantodorovich.png' width='32' height='32' style='border-radius:50%;' alt='ivantodorovich'/></a> | New group for seeing only sales channel's documents
90-
[sell_only_by_packaging](sell_only_by_packaging/) | 18.0.1.0.1 | | Manage sale of packaging
20+
This part will be replaced when running the oca-gen-addons-table script from OCA/maintainer-tools.
9121

9222
[//]: # (end addons)
9323

eslint.config.cjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
var globals = require('globals');
12
jsdoc = require("eslint-plugin-jsdoc");
23

34
const config = [{
@@ -16,6 +17,8 @@ const config = [{
1617
openerp: "readonly",
1718
owl: "readonly",
1819
luxon: "readonly",
20+
QUnit: "readonly",
21+
...globals.browser,
1922
},
2023

2124
ecmaVersion: 2024,
@@ -191,7 +194,7 @@ const config = [{
191194
},
192195

193196
}, {
194-
files: ["**/*.esm.js"],
197+
files: ["**/*.esm.js", "**/*test.js"],
195198

196199
languageOptions: {
197200
ecmaVersion: 2024,

0 commit comments

Comments
 (0)