13 Commits
Author SHA1 Message Date
micheledic d4674489f2 [FIX] hr: fix TypeError: '>' not supported between instances of 'bool' and 'datetime.datetime'
if there the new_hire_field is False, an error appear. This Commit will check  that the field is not false

closes odoo/odoo#159859

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2024-04-02 10:23:00 +00:00
micheledic a7f24724ad [FIX] stock: fix on style of warehouse filter on search panel
This commit changes the style of warehouse filter on hover and when something is selected so there is evidence that is clickable and if something is selected

closes odoo/odoo#146371

X-original-commit: 229fd7e5351889307f8b6340990a195cbfe1cebc
Signed-off-by: Arnold Moyaux (arm) <arm@odoo.com>
Signed-off-by: Tiffany Chang (tic) <tic@odoo.com>
2023-12-21 10:42:44 +00:00
micheledic 58d2429c48 [IMP] mrp: new prepare move line finished vals to write custom values before the post_inventory
closes odoo/odoo#146526

X-original-commit: 6f5519105787ead32d27658ac291ef18dac51698
Signed-off-by: William Henrotin (whe) <whe@odoo.com>
2023-12-18 14:34:19 +00:00
micheledic 0969c13237 [FIX] stock: fix for TypeError: value.toFixed is not a function on BomOverviewTable caused by False value on quantity
closes odoo/odoo#145449

Signed-off-by: Quentin Wolfs (quwo) <quwo@odoo.com>
2023-12-08 01:45:39 +00:00
Michele 217b500a94 [FIX] stock: get only package with available qty in least package removal strategy
closes odoo/odoo#141947

Signed-off-by: William Henrotin (whe) <whe@odoo.com>
2023-11-21 20:06:39 +00:00
Michele eb17528df0 [FIX] mrp: avoid to set product_id on mrp.bom if variants are disabled
closes odoo/odoo#142202

X-original-commit: a62149cd8da5c6127dbba9f7239df732c2602362
Signed-off-by: William Henrotin (whe) <whe@odoo.com>
2023-11-15 18:12:02 +00:00
Michele ffa8570f71 [IMP] stock: gather_domain in dedicated function
With this commit you wil have the function _get_gather_domain so you can
override and manage the gather_domain by your own logic

closes odoo/odoo#131476

X-original-commit: 92b6fd647c77ae88dfb685654ba9e9f14b7a1d03
Signed-off-by: William Henrotin (whe) <whe@odoo.com>
2023-08-10 10:39:23 +02:00
Michele 28180b070a [FIX] stock: add default company_id on stock lot
The field company id on stock lot is required but there is not a default
value. The default value should be the current company id

closes odoo/odoo#128640

X-original-commit: 9b21686616f51db1246ae51c29dab4af2c341323
Signed-off-by: William Henrotin (whe) <whe@odoo.com>
2023-07-17 12:06:24 +02:00
Michele 6c81d1fe60 [REF] point_of_sale: extract method to allow overriding gs1 action
This commit extracts a method called `_parseElementsFromGS1` to allow
customizations of interpreting the parsed gs1 barcode. It also returns
`customProductOptions` which serves as override for the product options
when adding a product to the order.

closes odoo/odoo#127477

X-original-commit: 4c9b8e6c7e465f152fdd64a18cf8ca0d4b00e27b
Signed-off-by: Joseph Caburnay (jcb) <jcb@odoo.com>
2023-07-06 17:52:12 +02:00
Michele 97d07c8e01 [FIX] mrp: fix format of bom quantity in mrp_report_bom report
If you are using a locale that uses "," as decimal_point and "." as
thousand_seps the parseFloat around formatFloat is not parsing correctly
the float because the parseFloat is not locale-based but uses always the
"." as decimal point. example: in Italy the thousand separator is ".".
parseFloat("3.000,00000") returns "3" as result but the correct result
is "3000" . It is not necessary to use formatFloat but it is needed

closes odoo/odoo#123711

X-original-commit: 48dd3d189a50b4b2a25ce0c3cf6dca0f744fd928
Signed-off-by: William Henrotin (whe) <whe@odoo.com>
2023-06-05 17:51:29 +02:00
Michele 724df8a570 [IMP] core: new neutralize flag on database restore and database duplicate dialog
Before this PR:
The only way to neutralize the database is running cli command neutralize

After this PR:
There is a new checkbox "neutralize database" in Duplicate database and Restore database dialog that neutralize the database after duplication/restore.
I also moved the neutralization code to the external module so it can be called also outside the cli .

closes odoo/odoo#122185

X-original-commit: 616740e9d09b3d0376be43ed1489e390f6f5823e
Signed-off-by: Julien Castiaux (juc) <juc@odoo.com>
2023-05-24 11:53:38 +02:00
Michele 78991b1c80 [IMP] stock: unreserve only quantity required if available quantity is less than quantity required when action_done on stock move.
Example:
Now there is this behaviour
Inventory quantity 4
Reserved quantity 3
Available quantity 1
If i do a stock move of 2 pieces, it will unreserve ALL the stock move of the product.

With this PR it will unreserve only the pieces that are required minus the available quantity not reserved , in this case 2 (new stock move) - 1 (available quantity) = 1

closes odoo/odoo#121724

X-original-commit: 999c2045236161cc8d8a76ab6a33c17d1b124f25
Signed-off-by: William Henrotin (whe) <whe@odoo.com>
2023-05-19 09:14:52 +02:00
Michele a7659ed228 [IMP] doc: add cla for stesiconsultingsrl
closes odoo/odoo#117547

X-original-commit: 5516cff9811d6d5e327c9d71d273b55133253446
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2023-04-04 13:35:40 +02:00