Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[REF] [16.0] sale_product_configurator: disable auto install #80

Draft
wants to merge 123 commits into
base: 16.0
Choose a base branch
from
Draft
Changes from 1 commit
Commits
Show all changes
123 commits
Select commit Hold shift + click to select a range
8096fdd
[FIX] sale_project: fix missing space in milestone name and SOL
irsa-odoo Oct 11, 2023
e387e7f
[FIX] website: prevent default submit
thle-odoo Nov 16, 2023
2fcefb0
[FIX] web_editor: fix snippet name overflows
bvr-odoo Dec 4, 2023
d239c78
[FIX] point_of_sale: fix firefox customer display
robinengels Dec 7, 2023
5703725
[FIX] pos_loyalty: ensure customer name prints without points activity
pedrambiria Dec 1, 2023
dc15ac5
[FIX] calendar: optimize _compute_meeting
Dj0ulo Dec 5, 2023
b6c87e4
[FIX] point_of_sale: exclude internal reference in loaded products
pedrambiria Nov 29, 2023
4bebc11
[FIX] l10n_fr_pos_cert: avoid crash on backspace with empty order
pedrambiria Dec 4, 2023
c14d4a4
[FIX] account: speedup _compute_tax_country_id
Aurelienvd Nov 22, 2023
b1a9aeb
[FIX] base: fix default currency for Montenegro
Dec 6, 2023
43ba790
[I18N] Update translation terms from Transifex
C3POdoo Dec 10, 2023
9a595cd
[FIX] website_sale: add message to translation
AH-Yussef Nov 15, 2023
6fb2619
[FIX] web: toggler button must remain visible
abla001 Nov 30, 2023
8a8a372
[FIX] product: Typo in min_quantity and min_qty accuracy
SirAionTech Dec 6, 2023
86d6585
[FIX] microsoft_calendar: allow resetting account with option deletion
arj-odoo Aug 24, 2023
50ecb11
[PERF] account: Add index on partner_id in AM
beha-odoo Dec 1, 2023
97ccef0
[FIX] website: fix misaligned elements in headers
bvr-odoo Dec 5, 2023
71bdf1f
[FIX] website_sale: sale ribbons disappearing
ande-odoo Dec 5, 2023
2040a87
[FIX] purchase: Average cost report rounding
HANNICHE-Walid Dec 5, 2023
3a543f6
[FIX] im_livechat: fix button translation for feedback
adrienmilis Dec 8, 2023
9f9ec76
[FIX] point_of_sale: Correct Coins/Bills count in cash control
pedrambiria Nov 23, 2023
c8b4d2a
[FIX] hr_timesheet: fix the alignment isssue for the label
gusi-odoo Jun 5, 2023
ee1c20f
[FIX] mail,web: list_activity widget: keep list offset
aab-odoo Dec 11, 2023
38eacb2
[FIX] core: harden the legacy migrations package matching regex
etobella Dec 11, 2023
f7805aa
[FIX] pos_sale: display Internal Reference for loaded orderlines
pedrambiria Dec 5, 2023
61c9bd6
[FIX] account: Fix sequence hole warning
JulienAlardot Nov 27, 2023
ac7f197
[FIX] l10n_ch: Fix account typo
clbr-odoo Dec 11, 2023
796e6ee
[FIX] l10n_fr: fix "Domestique France" fp for Monaco
kitan191 Dec 7, 2023
6565502
[FIX] web: kanban: always open dialog if quick create fails
aab-odoo Dec 12, 2023
d7f21ed
[FIX] base: faster fill_assets_path
Xavier-Do Dec 4, 2023
e459431
[FIX] l10n_sg: Singapore Tax ID label always applied
Megaaaaaa Oct 9, 2023
c3aea40
[FIX] account: A traceback occurs because `self.ids` is empty in the
royle-vietnam Nov 6, 2023
a00fe74
[FIX] point_of_sale: avoid to create new pickings after session closing
nda-odoo Dec 7, 2023
c4855a0
[FIX] mrp: Don't override user domain already defined in production m…
ypapouin Dec 4, 2023
77e2187
[FIX] point_of_sale,pos_sale: take all customer note into account
robinengels Nov 29, 2023
a698961
[FIX] project : assign correct stages for copied subtasks in project
Mtaylorr Oct 30, 2023
77dfcbf
[FIX] web: set default value on datepicker
thle-odoo Dec 7, 2023
6e11c34
[FIX] base_vat: allow tax IDs starting with 'EU' for non EU countries
ushyme Dec 12, 2023
cad38a3
[FIX] mrp, purchase_stock: default route on replenishment
amoyaux Nov 27, 2023
787f2f4
[FIX] calendar: Mark activity as done with text
Mtaylorr Dec 11, 2023
3258a9c
[IMP] website_sale: Show Customer Account with ecommerce
anko-odoo Oct 24, 2023
e744354
[FIX] web: avoid search bar overflow
rfr-odoo Dec 12, 2023
bc1ad08
[FIX] sale_timesheet: set `is_so_line_edited` when clearing `so_line`
lvsz Dec 11, 2023
d28a8f6
[FIX] website_sale_delivery: do not show unavailable carriers
ltinel Nov 14, 2023
984104e
[FIX] barcodes: upc_ean_conv always undefined
svs-odoo Nov 14, 2023
8890fa1
[FIX] sale: add term "Tax ID" to pot
ushyme Dec 12, 2023
9a7ada9
[FIX] web, project: avoid crash on file upload in portal
juliusc2066 Dec 12, 2023
9225a98
[FIX] l10n_ch: make isr test independant from default tax
clbr-odoo Dec 12, 2023
bb00669
[FIX] l10n_ch: activate 2024 taxes, deactivate outdated taxes
clbr-odoo Nov 24, 2023
43a56e8
[IMP] snailmail: Only resend concerned letter from format error
delvsola Dec 12, 2023
d2f52ab
[FIX] web: reset expanded fields on import compatibility switch
hubvd Jun 26, 2023
bb08a62
[FIX] account: Quantity Reset in Invoice Move Lines on Customer Change
Nov 27, 2023
8f17ac2
[FIX] point_of_sale: сorrect POS inventory valuation
Dec 8, 2023
fb0ece3
[FIX] point_of_sale: ensure the numpad is always left-to-right
ushyme Dec 12, 2023
96324fe
[FIX] web_editor: make loadImageInfo() robust to protocol relative URLs
loco-odoo Dec 4, 2023
8c17c48
[FIX] website: fix toggle redirect compressed layout in page properties
rdeodoo Dec 11, 2023
b99cc41
[FIX] web_editor: reactivate automaticStep on resize
robinlej Dec 8, 2023
732e43d
[FIX] PoS: payment date should be order date
Levizar Dec 6, 2023
2219804
[FIX] website_event_track: crash in SW's fetch listener on Safari 17.0+
pparidans Dec 11, 2023
d48a097
[FIX] account, sale, purchase: fix multi invoice/quotation/purchase p…
Dec 12, 2023
4480fe7
[FIX] website_sale_picking: add missing module_id field
vchu-odoo Dec 14, 2023
229fd7e
[FIX] stock: fix on style of warehouse filter on search panel
micheledic Dec 1, 2023
7458f31
[FIX] stock: avoid recomputing the schedule_date too early
clesgow Nov 23, 2023
9ae7819
[FIX] core: avoid 'Registry' object has no attribute '_m2m' error
HydrionBurst Nov 30, 2023
04e35d7
[FIX] core: KeyError odoo.fields in compute_value
HydrionBurst Nov 30, 2023
a433f31
[FIX] core: avoid 'Registry' object has no attribute '_m2m' error
HydrionBurst Nov 30, 2023
333e437
[FIX] website: prevent editing the record cover
xO-Tx Dec 14, 2023
aca82e7
[FIX] sale_stock: Correct Incoterm text width on invoice
mattismegevand Oct 31, 2023
c852efc
[FIX] calendar: support writing attendee_ids with ids
reth-odoo Dec 14, 2023
d830aed
[FIX] calendar: event of done activity must not be deleted
abla001 Dec 14, 2023
7f15d8f
[FIX] l10n_sa_edi: fix tax retention on invoice lines
kitan191 Dec 5, 2023
9cb48c3
[FIX] web_editor: make fa icons work with gradient on apple devices
rdeodoo Dec 13, 2023
55e09d5
[FIX] core: set Content-Security-Policy on static
Julien00859 Aug 11, 2023
f2bb488
[FIX] web: correctly display domain in field tooltip (debug)
aab-odoo Dec 15, 2023
eb44303
[CLA] oyale
oyale Jan 18, 2023
a59d4e7
[FIX] account: restrict invoice sending to customer and added recipients
ushyme Dec 15, 2023
793b753
[FIX] web: do not center vertically list cells
aab-odoo Dec 15, 2023
2598932
[FIX] mrp: create split move in draft
Whenrow Dec 14, 2023
6fea37b
[FIX] stock: be able to edit sml in mobile
amoyaux Dec 4, 2023
b696588
[FIX] website: fix border color or button preset preview
bso-odoo Dec 15, 2023
f9f4a9e
[I18N] Update translation terms from Transifex
C3POdoo Dec 17, 2023
ee5e0b9
[FIX] survey: chop down long words in labels
Julien00859 Oct 23, 2023
0c522e4
[FIX] website: broken assets test on multi website
pparidans Dec 7, 2023
b7664dc
[FIX] web_editor: link_in_selection style outside editable
cammarosano Nov 3, 2023
041c8c6
[IMP] sale: allow custom cache keys for solines tax computation
SilvioC2C Dec 18, 2023
ab049b9
[FIX] web: keydown on list view in a dialog
FrancoisGe Dec 14, 2023
8eebef2
[FIX] web_editor: fix dropzones with open mega menu
sobo-odoo Dec 7, 2023
5b15510
[FIX] crm,web: expected revenue field is too short
ande-odoo Dec 12, 2023
6f5a687
[FIX] mrp_subcontracting_purchase: fix received_qty with return move
DavidFesquet Apr 20, 2023
6485872
[FIX] mrp_subcontracting_purchase: verify ressuply + mto flow
Whenrow Dec 13, 2023
55f24b4
[FIX] hr_holidays: keep company calendar if several employees
thle-odoo Dec 11, 2023
80306d4
[FIX] sale_timesheet: Display remaining hours on SO field red if nega…
shap-odoo Oct 12, 2023
1867e99
[FIX] web_editor, website: remove clone button on mega menu block
rdeodoo Dec 12, 2023
ad7b165
[FIX] base_import: wrong date format
ande-odoo Nov 6, 2023
a161314
[FIX] payment_adyen: not send False information
anko-odoo Oct 19, 2023
ccf338c
[FIX] website_mass_mailing: fix display thanks button on form newsletter
bvr-odoo Dec 7, 2023
c4d834f
[FIX] delivery: fix cyclic while loop
adda-odoo Dec 15, 2023
60e2a5b
[FIX] web_editor: move snippets only across visible ones
bso-odoo Dec 12, 2023
6b0b556
[FIX] pos_loyalty: display "enter code" correctly
robinengels Dec 18, 2023
703863d
[FIX] hr_contract: prevent copy of contract_id on employee duplicate
stpa-odoo Dec 19, 2023
7ea6aa3
[FIX] hr_{,holidays}_attendance, resource: overtime is wrong for mult…
RaoufGhrissi Nov 23, 2023
db881e6
[FIX] website: make anchor links work in mobile menu
rdeodoo Dec 13, 2023
41beb0d
[FIX] account: prevent moves from stealing lines
william-andre Dec 15, 2023
807452d
[FIX] tests: error when Chrome websocket returns empty message
pparidans Dec 19, 2023
aa33b2b
[FIX] portal: change _search method to support custom search_in
dise-odoo Nov 30, 2023
9a3b294
[FIX] delivery: return label portal download
gman-odoo Apr 20, 2023
120046a
[FIX] website_event_crm_questions: escape HTML tags in lead description
nboulif Nov 29, 2023
db359d5
[FIX] survey: prevent soft lock with conditional questions
abd-msyukyu-odoo Dec 8, 2023
3ed4ec6
[FIX] sale{_expense,_expense_margin}: Fix re-invoicing of expenses
JulienAlardot Oct 30, 2023
78eb93e
[IMP] sale_stock: Improve quantity error message
JulienAlardot Dec 6, 2023
4b925a0
[FIX] hr_expense: Product creation default type
JulienAlardot Dec 14, 2023
ec67c8f
[FIX] website_sale: broken tour setup on multi websites
pparidans Dec 19, 2023
1280057
[FIX] account, analytic: add analytic distribution, remove precompute
guva-odoo Dec 15, 2023
79f12ed
[FIX] stock: always read field for default_order in move.line tree
ticodoo Dec 20, 2023
c760fbb
[FIX] point_of_sale,l10n_be_pos_sale: invoice settled order
robinengels Oct 23, 2023
d356abf
[FIX] base: translate partner display_name
AH-Yussef Nov 24, 2023
501d3dd
[FIX] payment_custom: use correct payment reference
Demesmaeker Dec 18, 2023
ec25405
[FIX] l10n_ee: add taxes with the new VAT rate
Dec 6, 2023
5bc48d6
[FIX] crm: handle customer creation on. lead -> oppor. w/ archived lang
xavieralt Dec 6, 2023
374a1b3
[FIX] website: sync website homepage url with page url change
rdeodoo Dec 11, 2023
778b06b
[FIX] web_editor: prevent unexpected placeholder for editable area
utag-odoo Oct 31, 2023
5840e17
[FIX] point_of_sale: prevent order update when customer screen is open
pedrambiria Dec 20, 2023
67a0b34
[REF] sale_product_configurator: disable auto_install
ThomasBinsfeld Dec 21, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[FIX] product: Typo in min_quantity and min_qty accuracy
The accuracy "Product Unit Of Measure" does not exist, it is "Product Unit of Measure"

closes odoo#145191

Signed-off-by: Victor Feyens (vfe) <[email protected]>
SirAionTech committed Dec 11, 2023
commit 8a8a3720bf2ed938dddc1c5889b4207562381234
2 changes: 1 addition & 1 deletion addons/product/models/product_pricelist_item.py
Original file line number Diff line number Diff line change
@@ -40,7 +40,7 @@ def _default_pricelist_id(self):
min_quantity = fields.Float(
string="Min. Quantity",
default=0,
digits='Product Unit Of Measure',
digits='Product Unit of Measure',
help="For the rule to apply, bought/sold quantity must be greater "
"than or equal to the minimum quantity specified in this field.\n"
"Expressed in the default unit of measure of the product.")
2 changes: 1 addition & 1 deletion addons/product/models/product_supplierinfo.py
Original file line number Diff line number Diff line change
@@ -42,7 +42,7 @@ def _domain_product_id(self):
'uom.uom', 'Unit of Measure',
related='product_tmpl_id.uom_po_id')
min_qty = fields.Float(
'Quantity', default=0.0, required=True, digits="Product Unit Of Measure",
'Quantity', default=0.0, required=True, digits="Product Unit of Measure",
help="The quantity to purchase from this vendor to benefit from the price, expressed in the vendor Product Unit of Measure if not any, in the default unit of measure of the product otherwise.")
price = fields.Float(
'Price', default=0.0, digits='Product Price',
16 changes: 15 additions & 1 deletion addons/product/tests/test_product_pricelist.py
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@
from datetime import datetime
import time

from odoo.fields import Command
from odoo.fields import Command, first
from odoo.tools import float_compare

from odoo.addons.product.tests.common import ProductCommon
@@ -269,3 +269,17 @@ def test_30_pricelist_delete(self):
] * 101,
})
self.customer_pricelist.unlink()

def test_40_pricelist_item_min_quantity_precision(self):
"""Test that the min_quantity has the precision of Product UoM."""
# Arrange: Change precision digits
uom_precision = self.env.ref("product.decimal_product_uom")
uom_precision.digits = 3
pricelist_item = first(self.customer_pricelist.item_ids[0])
precise_value = 1.234

# Act: Set a value for the increased precision
pricelist_item.min_quantity = precise_value

# Assert: The set value is kept
self.assertEqual(pricelist_item.min_quantity, precise_value)
21 changes: 21 additions & 0 deletions addons/product/tests/test_seller.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.

from odoo.fields import first, Command
from odoo.tests import tagged, TransactionCase
from odoo.tools import float_compare

@@ -120,3 +121,23 @@ def test_30_select_seller(self):
price = product._select_seller(partner_id=self.res_partner_4, quantity=3.0).price
msg = "Wrong cost price: LCD Monitor if more than 3 Unit.should be 785 instead of %s" % price
self.assertEqual(float_compare(price, 785, precision_digits=2), 0, msg)

def test_40_seller_min_qty_precision(self):
"""Test that the min_qty has the precision of Product UoM."""
# Arrange: Change precision digits
uom_precision = self.env.ref("product.decimal_product_uom")
uom_precision.digits = 3
product = self.product_service
product.seller_ids = [
Command.create({
'partner_id': self.asustec.id,
}),
]
supplier_info = first(product.seller_ids)
precise_value = 1.234

# Act: Set a value for the increased precision
supplier_info.min_qty = precise_value

# Assert: The set value is kept
self.assertEqual(supplier_info.min_qty, precise_value)