Commit Graph

25 Commits

Author SHA1 Message Date
oca-ci
fbc5e16daa [UPD] Update stock_move_packaging_qty.pot 2024-03-18 08:35:46 +00:00
Jairo Llopis
fa55afd91d [IMP] stock_move_packaging_qty: shorter qty field label
The label was too wide for such a small value.

@moduon MT-5363
2024-03-18 07:55:46 +00:00
loida-vm
68bd273e56 Translated using Weblate (Spanish)
Currently translated at 100.0% (3 of 3 strings)

Translation: stock-logistics-warehouse-16.0/stock-logistics-warehouse-16.0-stock_move_packaging_qty
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-16-0/stock-logistics-warehouse-16-0-stock_move_packaging_qty/es/
2024-03-15 12:37:44 +00:00
loida-vm
ed69ad6884 Added translation using Weblate (Spanish) 2024-03-15 09:42:59 +00:00
mymage
08e5fa632d Translated using Weblate (Italian)
Currently translated at 100.0% (3 of 3 strings)

Translation: stock-logistics-warehouse-16.0/stock-logistics-warehouse-16.0-stock_move_packaging_qty
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-16-0/stock-logistics-warehouse-16-0-stock_move_packaging_qty/it/
2023-11-21 13:33:40 +00:00
mymage
69f9f92b9a Added translation using Weblate (Italian) 2023-11-17 15:03:34 +00:00
OCA-git-bot
7613819641 [UPD] README.rst 2023-09-11 06:43:59 +00:00
OCA-git-bot
935fc2e3b4 stock_move_packaging_qty 16.0.1.1.0 2023-09-11 06:43:54 +00:00
OCA-git-bot
b27aabf740 [UPD] README.rst 2023-09-11 06:43:53 +00:00
OCA-git-bot
a38209db44 Merge PR #1833 into 16.0
Signed-off-by yajo
2023-09-11 06:40:04 +00:00
Jairo Llopis
ad633c12d6 [IMP] stock_move_packaging_qty: display in PDF reports
Directly display qty on delivery slip.

In the case of picking operations report, compute the qty based on the
one found in the `stock.move.line` and the `product.packaging` ratio.

@moduon MT-3774
2023-09-08 11:03:45 +01:00
OCA-git-bot
39c834f6ea [UPD] README.rst 2023-09-03 17:22:50 +00:00
OCA-git-bot
1dc28351c6 stock_move_packaging_qty 16.0.1.0.1 2023-08-31 12:35:09 +00:00
OCA-git-bot
8a628d37c7 [UPD] README.rst 2023-08-31 12:35:08 +00:00
oca-ci
2d96ddc71c [UPD] Update stock_move_packaging_qty.pot 2023-08-31 12:31:39 +00:00
Jairo Llopis
592dc5916d [REF] stock_move_packaging_qty: closer match upstream UX
Without this patch, a user that wasn't able to edit a picking product qty would be able to edit the packaging qty and produce a product qty update (which they shouldn't be able to do).

Now, the field is hidden or readonly when the `product_uom_qty` field is too.

Also, the inverse method of `product_packaging_qty` was only being triggered when saving. That doesn't fit well with v16, where saving is pseudo-automatic. Thus, the inverse is reused as an onchange.

To make it worse, the inverse method had a lot of validations. If they were meaningful, they should have been constraints instead. But they really didn't make any sense because they were testing impossible scenarios. For example, they were testing you didn't update the field when there's no packaging, but that's fixed now with a dynamic readonly attribute; also they were testing that the packaging qty != 0, but there's an upstream sql constraint that forbids that.

There was a check that warned about impossible combinations of packages and UoM qtys. Now that everything is properly automated, that scenario is impossible. Thus, the check is removed.

Summarizing, the module should be more usable and consistent now.

@moduon MT-3694
2023-08-30 12:18:50 +01:00
Jairo Llopis
a382f0eb3c [MIG] stock_move_packaging_qty: migrate to 16.0
- Code and DB migrations to use upstream field `product_packaging_id`, introduced in https://github.com/odoo/odoo/pull/68654.
- Test class moved to `post_install`, to let it pass if `sale_stock` is installed too.
- Satisfy new linters.

@moduon MT-3694
2023-08-28 11:39:57 +01:00
oca-travis
b930d73b86 [UPD] Update stock_move_packaging_qty.pot 2023-08-28 07:48:01 +01:00
OCA-git-bot
b613f44034 stock_move_packaging_qty 13.0.1.1.1 2023-08-28 07:48:01 +01:00
oca-travis
e5672fadf3 [UPD] Update stock_move_packaging_qty.pot 2023-08-28 07:48:01 +01:00
Carlos Roca
21e6a2095e [FIX] stock_move_packaging_qty: Warning on runbot
Since v13 the use of decimal_precision is deprecated, so we have to use
the correct way.
2023-08-28 07:48:01 +01:00
OCA-git-bot
45821522c0 [ADD] icon.png 2023-08-28 07:48:01 +01:00
OCA-git-bot
7f33883971 [UPD] README.rst 2023-08-28 07:48:01 +01:00
oca-travis
16ca5698e3 [UPD] Update stock_move_packaging_qty.pot 2023-08-28 07:48:00 +01:00
Mateu Griful
84de2d48d2 [ADD] stock_packaging_qty 2023-08-28 07:48:00 +01:00