-
Notifications
You must be signed in to change notification settings - Fork 1
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
[FIX] purchase_stock: AVCO computation - support line discount #79
base: 16.0-alc_master
Are you sure you want to change the base?
Commits on May 4, 2023
-
[IMP] product_expiry: Don't trigger move lines expiration date recomp…
…utation If one change the use_create_lots field on stock.picking.type, we should not trigger all move lines recomputation of that picking type.
Configuration menu - View commit details
-
Copy full SHA for a2b8a4f - Browse repository at this point
Copy the full SHA a2b8a4fView commit details
Commits on May 15, 2023
-
Configuration menu - View commit details
-
Copy full SHA for d98c706 - Browse repository at this point
Copy the full SHA d98c706View commit details -
Configuration menu - View commit details
-
Copy full SHA for 410c639 - Browse repository at this point
Copy the full SHA 410c639View commit details -
Init comodel_name on relational fields from generic type's arg
This change allows to take advantage of field descriptors on relational fields to initialize the comodel_name from optional type's arg that can be specified on field declaration. With this change, this kind of syntax becomes valid and will avoid errors in the comodel_name args. partner = fields.Many2one[Partner]() This code is not part of the _Relational class constructor since we need to get access to the __orig_class__ attribute which is set on the instance by the Generic metaclass after the call to the _Relational class constructor.
Configuration menu - View commit details
-
Copy full SHA for 59a521f - Browse repository at this point
Copy the full SHA 59a521fView commit details -
Take into account FrowardRef when computing the comodel_name
To avoid circular import it's common to reference a type as a string for generics: ```python from odoo import models, fields from typing import TYPE_CHECKING if TYPE_CHECKING: from .res_partner import Partner as ResPartner class Thing(models.Model): _name = "thing" _description = "Thing" partner_id = fields.Many2one["ResPartner"]() ``` In such a case, the type's arg at runtime is not a class but an instance of typing.ForwadRef. In such a case, the comodel_name is computed by converting the classname provided by te ForwardRef from CamelCase to dot.case
Configuration menu - View commit details
-
Copy full SHA for 4f1c9b2 - Browse repository at this point
Copy the full SHA 4f1c9b2View commit details -
Add typing_extension to the requirements list
the typing_extension is required by the type annotations
Configuration menu - View commit details
-
Copy full SHA for 8b4b7df - Browse repository at this point
Copy the full SHA 8b4b7dfView commit details -
Configuration menu - View commit details
-
Copy full SHA for d23a4ce - Browse repository at this point
Copy the full SHA d23a4ceView commit details -
Fix code after rebase on odoo at 2f22565
Calls a dedicated method to clone an existing field to ensure that the type args is preserved when instantiating the cloned instance
Configuration menu - View commit details
-
Copy full SHA for ffae38c - Browse repository at this point
Copy the full SHA ffae38cView commit details
Commits on Jul 17, 2023
-
[FIX] core: importlib find_module is deprecated
As find_module has been deprecated since python 3.4: https://github.com/python/cpython/blob/05c28b08f6e2fc8782472b026c98a3fdd61a2ba9/Lib/importlib/_bootstrap.py#L1347 and warnings added in python 3.10: https://github.com/python/cpython/blob/f91dfdf5ff9f68a4b012e1b70ab9997c6dc1542d/Lib/importlib/_bootstrap.py#L764 to respect the PEP-451 specification : https://peps.python.org/pep-0451/ So, override the find_spec() method to display depreaction warnings if applicable.
Configuration menu - View commit details
-
Copy full SHA for 2efccd4 - Browse repository at this point
Copy the full SHA 2efccd4View commit details
Commits on Nov 16, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 71c6ae2 - Browse repository at this point
Copy the full SHA 71c6ae2View commit details -
Configuration menu - View commit details
-
Copy full SHA for f3da532 - Browse repository at this point
Copy the full SHA f3da532View commit details -
Configuration menu - View commit details
-
Copy full SHA for c93418d - Browse repository at this point
Copy the full SHA c93418dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5900b59 - Browse repository at this point
Copy the full SHA 5900b59View commit details -
setup: support PEP 660 and setuptools >= 64
Allow building a wheel or an sdist through the pep517 interface, taking care of the required pre-processing to copy addons in odoo/addons. Force the setuptools compat mode for editable installs. This mode is the simplest, since it just installs a .pth files which extends PYTHONPATH with the Odoo root directory.
Configuration menu - View commit details
-
Copy full SHA for d295879 - Browse repository at this point
Copy the full SHA d295879View commit details -
This allows launching Odoo with "python -m odoo". This manner of launching python applications is now widespread. In particular it makes it easier to configure an IDE debugger to run with the correct python version.
Configuration menu - View commit details
-
Copy full SHA for 283f501 - Browse repository at this point
Copy the full SHA 283f501View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6768b10 - Browse repository at this point
Copy the full SHA 6768b10View commit details
Commits on Nov 30, 2023
-
Configuration menu - View commit details
-
Copy full SHA for fa6ad36 - Browse repository at this point
Copy the full SHA fa6ad36View commit details