profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/legalsylvain/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.

akretion/angular-odoo 40

Call Odoo webservices from AngularJS

akretion/ak-odoo-incubator 18

Misc Odoo modules maturing before going to a specific repo

akretion/ak 5

The toolbelt for odoo

akretion/ak-magento 5

Chef recipe for install magento and webservice extension needed by MagentoERPconnect

akretion/ak-prestashop 5

Cookbook for installing easily prestashop, do not use it for production environnement, it's just for demo

akretion/aktooor 5

forms to edit Odoo entities in your Ruby web app (based on simple_form)

akretion/ak-openerp-base 3

Akretion infrastructure utilities

akretion/account-financial-reporting 2

Financial reports for Odoo

PR closed OCA/web

add fa.po

add persian support

+141 -0

1 comment

1 changed file

saeed-raeisi

pr closed time in 22 minutes

pull request commentOCA/web

add fa.po

Hi thanks for contributing ! you can not add translation this way in OCA. You should do it via weblate. Please ping us if you don't know how to do. Regards Closing in the meantime

saeed-raeisi

comment created time in 22 minutes

push eventlegalsylvain/odoo-addons-logistics

Sylvain LE GAL

commit sha a588efe32a1afb1e8a12f193b2b722235ab1ec80

fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! [REF] rename date_tour into start_date ; [IMP] add calendar view

view details

Sylvain LE GAL

commit sha 5345421ebc595b1c715ca0d1e06a9a1d0157a766

fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! [REF] rename date_tour into start_date ; [IMP] add calendar view

view details

Sylvain LE GAL

commit sha 763a9b84c54f60dd7631789c5b64d41d2d053779

fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! [REF] rename date_tour into start_date ; [IMP] add calendar view

view details

push time in 11 hours

push eventlegalsylvain/odoo-addons-logistics

Sylvain LE GAL

commit sha 8dec1b7e77396200516138a99e8c96b72937507a

fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! [REF] rename date_tour into start_date ; [IMP] add calendar view

view details

push time in 14 hours

PullRequestReviewEvent

push eventlegalsylvain/odoo-addons-logistics

Sylvain LE GAL

commit sha 6943d3d9bcac4ba70165f04b0a535b1aac875c45

fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! [REF] rename date_tour into start_date ; [IMP] add calendar view

view details

push time in 19 hours

Pull request review commentOCA/purchase-workflow

[13.0][ADD] purchase_order_supplierinfo_update: new module

+# Copyright 2021 Tecnativa - Ernesto Tejeda+# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).++from odoo import api, models+++class PurchaseOrder(models.Model):+    _inherit = "purchase.order"++    def write(self, vals):+        res = super().write(vals)+        if vals.get("state", "") in ["purchase", "done"]:+            self.mapped("order_line").update_supplierinfo_prince()+        return res+++class PurchaseOrderLine(models.Model):+    _inherit = "purchase.order.line"++    @api.model_create_multi+    def create(self, vals_list):+        res = super().create(vals_list)+        res.update_supplierinfo_prince()+        return res++    def write(self, vals):+        res = super().write(vals)+        if vals.get("price_unit"):+            self.update_supplierinfo_prince()+        return res++    def update_supplierinfo_prince(self):+        for line in self.filtered(lambda r: r.order_id.state in ["purchase", "done"]):+            domain = [+                ("partner_id", "=", line.partner_id.id),+                ("product_id", "=", line.product_id.id),+                ("date_order", ">", line.date_order),+            ]+            if not self.env["purchase.order.line"].search(domain, limit=1):+                # The same domain used in purchase.order.line to suggest the price.+                # see _suggest_quantity method in models/purchase.py of odoo core+                # purchase module.+                supplierinfo = self.product_id.seller_ids.filtered(+                    lambda r: (+                        r.name == self.order_id.partner_id+                        and (not r.product_id or r.product_id == self.product_id)+                    )+                ).sorted(key=lambda r: r.min_qty)+                if supplierinfo and line.price_unit != supplierinfo[0].price:

Please create a function for that. def _update_supplierinfo(self, line).

that will allow inheritance. otherwise, it's not possible to make glue modules with purchase_discount and purchase_triple_discount modules.

ernestotejeda

comment created time in 20 hours

PullRequestReviewEvent
PullRequestReviewEvent

push eventlegalsylvain/odoo-addons-logistics

Sylvain LE GAL

commit sha fe2dc9f068591aaa41ad18def5525c93b0d30359

fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! [REF] rename date_tour into start_date ; [IMP] add calendar view

view details

push time in 21 hours

PullRequestReviewEvent

push eventlegalsylvain/odoo-addons-logistics

Sylvain LE GAL

commit sha ced09b71816ee56d910b5f3c58e28186e79a8393

fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! [REF] rename date_tour into start_date ; [IMP] add calendar view

view details

push time in a day

pull request commentOCA/pos

[14] pos_backend_communication: add maintainers in manifest

Hi @hparfr. Thanks for adopting this module. Fast merging this trivial PR.

In the other hand, reading the readme, it seems that this module is a base module for other implementation like pos_backend_communication but I don't see the module for V14 and no PR. The last PR is regarding V12 by @PierrickBrun and it is in a stale state : https://github.com/OCA/pos/pull/554

How do you use this V14 module ? Could you add pos_backend_partner V14 PR ?

thanks !

/ocabot merge patch

hparfr

comment created time in a day

Pull request review commentOCA/product-attribute

[14.0][ADD] product_pricelist_item_button

+# Copyright 2021 ACSONE SA/NV (<http://acsone.eu>)+# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).+from odoo import _, models+++class ProductPricelist(models.Model):+    _inherit = "product.pricelist"++    def show_rules(self):

matter of taste. i usually use technical name for technical name function. but really not a blocking point !

rousseldenis

comment created time in a day

PullRequestReviewEvent

Pull request review commentOCA/product-attribute

[14.0][ADD] product_pricelist_item_button

+# Copyright 2021 ACSONE SA/NV (<http://acsone.eu>)+# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).+from odoo import _, models+++class ProductPricelist(models.Model):+    _inherit = "product.pricelist"++    def show_rules(self):

Maybe show_items could be a better name

rousseldenis

comment created time in a day

PullRequestReviewEvent

pull request commentOCA/pos

[13.0][ADD] pos_partner_lang

/ocabot merge patch Thanks !

ivantodorovich

comment created time in a day

Pull request review commentOCA/OpenUpgrade

[IMP] account: Migration of grouped invoice lines. Allow to import notes and sections

 def migration_invoice_moves(env):                 OR ail.account_analytic_id = aml.analytic_account_id)             AND aml.tax_line_id IS NULL             AND aml.old_invoice_line_id IS NULL-        RETURNING aml.id""",+            """,+    )+    # Adding all the missing lines+    openupgrade.logged_query(+        env.cr, """+        INSERT INTO account_move_line (company_id, journal_id, account_id,+        exclude_from_invoice_tab, sequence, name, quantity, price_unit, discount,+        price_subtotal, price_total, company_currency_id, currency_id, partner_id, product_uom_id,+        product_id, analytic_account_id, display_type, is_rounding_line,+        move_id, old_invoice_line_id, date, create_uid, create_date, write_uid,+        write_date, parent_state, move_name, credit, debit, balance)+        SELECT ail.company_id, am.journal_id, ail.account_id, FALSE, ail.sequence, ail.name,+        ail.quantity, ail.price_unit, ail.discount, ail.price_subtotal,+        ail.price_total, rc.currency_id, CASE WHEN rc.currency_id != ail.currency_id+        THEN ail.currency_id ELSE NULL END, ail.partner_id, ail.uom_id,+        ail.product_id, ail.account_analytic_id, ail.display_type,+        ail.is_rounding_line, COALESCE(ai.move_id, am.id), ail.id, COALESCE(ai.date, ai.date_invoice),+        ail.create_uid, ail.create_date, ail.write_uid, ail.write_date, am.state, am.name,+        0.0, 0.0, 0.0+        FROM account_invoice_line ail+            JOIN account_invoice ai ON ail.invoice_id = ai.id+            JOIN account_move am ON am.old_invoice_id = ai.id+            LEFT JOIN res_company rc ON ail.company_id = rc.id+        WHERE ail.aml_matched is not TRUE""",     )-    aml_ids2 = tuple(x[0] for x in env.cr.fetchall())-    if aml_ids2:-        openupgrade.logged_query(-            env.cr, """-            SELECT ail.id-            FROM account_invoice_line ail-                JOIN account_invoice ai ON ail.invoice_id = ai.id AND ai.state NOT IN ('draft', 'cancel')-                JOIN account_move am ON ail.invoice_id = am.old_invoice_id-                JOIN account_move_line aml ON am.id = aml.move_id-            WHERE ail.company_id = aml.company_id AND ail.account_id = aml.account_id-                AND ail.partner_id = aml.partner_id-                AND ((ail.product_id IS NULL AND aml.product_id IS NULL) OR ail.product_id = aml.product_id)-                AND ((ail.uom_id IS NULL AND aml.product_uom_id IS NULL) OR ail.uom_id = aml.product_uom_id)-                AND ((ail.account_analytic_id IS NULL AND aml.analytic_account_id IS NULL)

Do you think it could be possible to define at the beginning something like : hash_keys = ["account_id", "tax_ids", "tax_line_id", "product_id", "analytic_account_id", "date_maturity", "analytic_tag_ids"]

and then generate an sql query based on the values ? so user that has overloaded the function could more easily write the correct settings.

(not sure if what I say is relevant : never migrated from 12.0 to 13.0 for the time being).

etobella

comment created time in 2 days

PullRequestReviewEvent

push eventlegalsylvain/odoo-addons-logistics

Sylvain LE GAL

commit sha eedf97e73b7ff430f5ecb282af15c75fe122160b

fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! [REF] rename date_tour into start_date ; [IMP] add calendar view

view details

push time in 2 days

push eventlegalsylvain/odoo-addons-logistics

Sylvain LE GAL

commit sha cfed2750159e90e29e9cd2630523ec4658705bf4

fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! [REF] rename date_tour into start_date ; [IMP] add calendar view

view details

push time in 2 days

PR opened grap/grap-odoo-custom

Reviewers
[FIX] grap_qweb_report : display correct RIB on main GRAP layout.

Fix bug introduced in #183, (merged the 23/06/2021)

Deck : apps/deck/#/board/144/card/1851

+4 -4

0 comment

1 changed file

pr created time in 2 days

push eventlegalsylvain/grap-odoo-custom

Sylvain LE GAL

commit sha 0e90a201b6c0849ac757eb58611a93a42964dce6

[FIX] grap_qweb_report : display correct RIB on main GRAP layout. Fix bug introduced in #183, (merged the 23/06/2021)

view details

push time in 2 days

PullRequestReviewEvent

push eventlegalsylvain/product-attribute

Sylvain LE GAL

commit sha 405bb494b1ea1f33d8cd18e8b0ce74e4ab0fa3b9

[ADD] product_uom_measure_type module

view details

push time in 2 days

Pull request review commentOCA/product-attribute

[ADD][12.0] product_uom_measure_type module

+# Copyright (C) 2021 - Today: GRAP (http://www.grap.coop)+# @author: Sylvain LE GAL (https://twitter.com/legalsylvain)+# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).++from odoo import fields, models+++class ProductTemplate(models.Model):+    _inherit = "product.template"++    uom_measure_type = fields.Selection(+        string="UoM Measure Type",+        related="uom_id.category_id.measure_type", store=True)

I really don't know !

Well, checking again, I saw that measure_type was present in uom.uom model. (related, store=True). So, changed for a single dotted relation.

legalsylvain

comment created time in 2 days

PullRequestReviewEvent

push eventlegalsylvain/product-attribute

Sylvain LE GAL

commit sha 93219180a9c70a1d97d0296e3096f7e4c4695d05

[ADD] product_uom_measure_type module

view details

push time in 2 days