profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/Martronic-SA/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.
Martronic SA Martronic-SA Martronic SA Monthey, Switzerland https://www.martronic.ch Martronic SA, Webdevelopment and integration in Switzerland

Martronic-SA/collective.behavior.sql 1

Use SQL content in Plone Dexterity Types

collective/collective.ptg.unitegallery 0

Unite Gallery for collective.plonetruegallery

Martronic-SA/account-analytic 0

Odoo Account Analytic Related Addons

Martronic-SA/account-financial-reporting 0

Financial reports for Odoo

Martronic-SA/account-financial-tools 0

Odoo Accountant Financial Tools and Utils

Martronic-SA/account-invoicing 0

Odoo Invoicing Extension Addons

push eventMartronic-SA/web

Martronic SA

commit sha 18408636f12830766a5d1c482020fb221a56cf65

Extending CalendarView breaks default Calendar It seems that extending the CalendarView.prototype.config changes the renderer in the default Calendar view and then you always get a list view instead of the default calendar.

view details

push time in a day

PR opened OCA/web

[13.0][FIX] web_view_calendar_list fix viewType

Add viewType attribute otherwise it can break the default calendar and doesn't select the correct view button.

+1 -0

0 comment

1 changed file

pr created time in a day

push eventMartronic-SA/web

Martronic SA

commit sha b44504d37e5aef400142b0e77737e205cbb3fde0

Update calendar_list_view.js Add viewType attribute otherwise it can break the default calendar and doesn't select the correct view button.

view details

push time in a day

push eventMartronic-SA/web

tarteo

commit sha d76600708e3d8c324e0d7f1827d8a39a2e9ffacf

[FIX] web_widget_x2many_2d_matrix: Use widget for formatting aggregates

view details

tarteo

commit sha 30f6f279a4c8c47d6536d619fd3e3492bc97fec4

[FIX] web_widget_x2many_2d_matrix: Padding in aggregate row [FIX] Padding in aggregate row

view details

oca-travis

commit sha f4153e9329e46e5a72debc41d20601b141beea02

[UPD] Update web_widget_x2many_2d_matrix.pot

view details

gslabit

commit sha ce75558af82f4ec66f45d4ff94cff5d544441e98

Translated using Weblate (Italian) Currently translated at 100.0% (3 of 3 strings) Translation: web-12.0/web-12.0-web_widget_x2many_2d_matrix Translate-URL: https://translation.odoo-community.org/projects/web-12-0/web-12-0-web_widget_x2many_2d_matrix/it/

view details

OCA Transbot

commit sha 577d954c401be3f62b186aa6af0d41a2c65ba50c

Update translation files Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: web-12.0/web-12.0-web_widget_x2many_2d_matrix Translate-URL: https://translation.odoo-community.org/projects/web-12-0/web-12-0-web_widget_x2many_2d_matrix/

view details

OCA-git-bot

commit sha 8b688fd42a1a8e2c5273b38cccccbaba0dec3065

[UPD] README.rst

view details

Nicolas JEUDY

commit sha b419fc1c7820878fe2b4f4a8f4e325c9b659c273

Translated using Weblate (French) Currently translated at 100.0% (3 of 3 strings) Translation: web-12.0/web-12.0-web_widget_x2many_2d_matrix Translate-URL: https://translation.odoo-community.org/projects/web-12-0/web-12-0-web_widget_x2many_2d_matrix/fr/

view details

黎伟杰

commit sha 1037b1718725f666f705ce35d92481068e7fa71e

Added translation using Weblate (Chinese (Simplified))

view details

黎伟杰

commit sha a0ade02de175dee120533dcc0cd799c8cd7d278e

Translated using Weblate (Chinese (Simplified)) Currently translated at 100.0% (3 of 3 strings) Translation: web-12.0/web-12.0-web_widget_x2many_2d_matrix Translate-URL: https://translation.odoo-community.org/projects/web-12-0/web-12-0-web_widget_x2many_2d_matrix/zh_CN/

view details

Rodrigo Macedo

commit sha 5a593d1452f1532258cd99151b29463c51454312

Translated using Weblate (Portuguese (Brazil)) Currently translated at 100.0% (3 of 3 strings) Translation: web-12.0/web-12.0-web_widget_x2many_2d_matrix Translate-URL: https://translation.odoo-community.org/projects/web-12-0/web-12-0-web_widget_x2many_2d_matrix/pt_BR/

view details

Holger Brunn

commit sha da4c0b0e107380ebfb59f24fab19367b41e5b10e

[ADD] detect if used field type can be aggregated fixes #1365

view details

OCA-git-bot

commit sha 6e29bba1a9cb590f5c9122e486f36dc6031255ae

web_widget_x2many_2d_matrix 12.0.1.1.0

view details

Alexandre Díaz

commit sha 905a0b40fcda7aa52a9ad524ee5cc0f8c9b6b541

[FIX] web_widget_x2many_2d_matrix: Forced render mode to list on small screens

view details

OCA-git-bot

commit sha f011db5bdbbdff25a40b7b2bd21470044d2bf136

web_widget_x2many_2d_matrix 12.0.2.0.0

view details

Pedro M. Baeza

commit sha faa7118959dddc046f1345939775b742c707c8d6

Revert "[FIX] web_widget_x2many_2d_matrix: Forced render mode to list on small screens" This reverts commit 10971ad68e5115e4f19093f1fc1833d8150e3a81.

view details

Alexandre Díaz

commit sha 18f63e537c0f41128c26b7e302d115256392db00

[FIX] web_widget_x2many_2d_matrix: Force render in list mode on mobile

view details

Bole

commit sha 6d20bb2059821fbf0688e3cc079544a8fbc78d1d

Translated using Weblate (Croatian) Currently translated at 100.0% (3 of 3 strings) Translation: web-12.0/web-12.0-web_widget_x2many_2d_matrix Translate-URL: https://translation.odoo-community.org/projects/web-12-0/web-12-0-web_widget_x2many_2d_matrix/hr/

view details

Pablo Fuentes

commit sha 54faf1bd1b814280f6ca9495fb41495ad976eefc

[FIX] web_widget_x2many_2d_matrix: Wrong widget In previous versions _setSubViewLimit was defined at AbstractView widget but in v12 is defined at FormView widget

view details

OCA-git-bot

commit sha f917f2522fb543639e29e2f494b6cdceed70ca29

web_widget_x2many_2d_matrix 12.0.2.0.1

view details

OCA-git-bot

commit sha 1848c59a93f7ea6cef28e1bb0268da1a66abd334

web_widget_x2many_2d_matrix 12.0.2.1.0

view details

push time in a day

create barnchMartronic-SA/web

branch : 13.0-web_view_calendar_list-viewType

created branch time in a day

PR opened OCA/web

[12.0][FIX] web_timeline UTC timezone and + 1 hour when adding events

Date times must be sent as UTC to Odoo. and why adding 1 hour? just leave the javascript timeline make the job.

+2 -2

0 comment

1 changed file

pr created time in 22 days

push eventMartronic-SA/web

Martronic SA

commit sha ff30b75d078769b2ff862e53620321e78ad1b62e

Fix timezone and + 1 hour when adding events Date times must be sent as UTC to Odoo. and why adding 1 hour? just leave the javascript timeline make the job.

view details

push time in 22 days

create barnchMartronic-SA/web

branch : 12.0-fix-web_timeline

created branch time in 22 days

PR opened OCA/web

[12][FIX] web_view_calendar_list Add missing viewType attribute in view definition

So that it selects the right Calendar View List button instead of Calendar button in action views selection control panel.

+1 -0

0 comment

1 changed file

pr created time in a month

push eventMartronic-SA/web

Martronic SA

commit sha 2d10e71db8f5bb186e32730a583a3f1301d811be

Add viewType attribute in view definition So that it selects the right Calendar View List button instead of Calendar button in action views selection control panel.

view details

push time in a month

create barnchMartronic-SA/web

branch : 12.0-web_view_calendar_list-viewType

created branch time in a month

push eventMartronic-SA/web

Martronic SA

commit sha 5ceaeb3465af38837e38c7a3f185735200bd0212

Added ViewType parameter in view So that it selects the right button on activity views control panel

view details

push time in a month

PR opened OCA/web

[12.0][FIX] web_timeline view mode

Add view mode "timeline" in ir.actions.act.window" the same way as in web_view_calendar_list.

+10 -0

0 comment

2 changed files

pr created time in a month

push eventMartronic-SA/web

Martronic SA

commit sha 3e7e4265bb9efb8c9dfd28449e6c6ed1b836c3c0

Update __init__.py

view details

push time in a month

push eventMartronic-SA/web

Martronic SA

commit sha c347658bdc2753513a1af3c14aa3f44aa7e88c90

Added TIMELINE_VIEW in act windiw view mode

view details

push time in a month

push eventMartronic-SA/web

Martronic SA

commit sha ff7616f7b5da1a5f38ec9259caf1a2b0876565fc

Create ir_actions_act_window_view.py add timeline view mode in ir.actions.act_window.view

view details

push time in a month

create barnchMartronic-SA/web

branch : 12.0-web_timeline_view_type

created branch time in a month

push eventMartronic-SA/web

Martronic SA

commit sha 5863cec6b08e818fdf26595e161800f85a132f5f

Translated using Weblate (French) Currently translated at 100.0% (3 of 3 strings) Translation: web-12.0/web-12.0-web_switch_context_warning Translate-URL: https://translation.odoo-community.org/projects/web-12-0/web-12-0-web_switch_context_warning/fr/

view details

Quentin Groulard

commit sha bdbcf408e99b61c103b4987926927b3a20cbf81e

[FIX] Get form view from get_formview_action()

view details

Quentin Groulard

commit sha 8e069bac933f040cf95b08cf7536f270159729db

[ADD] Option open for One2Many fields With 'open' option, clicking on a row of a o2m field will open the view for the record in fullscreen rather than in a popup

view details

Jairo Llopis

commit sha 378c02c7a2115bdd649df0316b02d029fa1820ef

[FIX] web_responsive: usable search buttons in md screens When the screen wasn't small enough to trigger mobile mode but wasn't big enough to display properly search buttons, those got awkward. @Tecnativa TT21728

view details

OCA-git-bot

commit sha 1231ca9e1be12d03825cd01f11be3f2103a8d124

Merge PR #1503 into 12.0 Signed-off-by pedrobaeza

view details

OCA-git-bot

commit sha 7f47987ac16b16d3914ae3310b2e83e29dc835a8

web_responsive 12.0.2.1.0

view details

Pablo Fuentes

commit sha b5fc06dc6f3ee5ae29aa98c826a6d7990b5d9419

[FIX] web_widget_x2many_2d_matrix: Ensure lines order As objects are unordered collections of properties, we ensure incoming lines order by using lists

view details

Timon Tschanz

commit sha 669e4dfab3acefc0ff7f9e0f03d688f20c559879

Fix sidebar & reenable multiple fields

view details

OCA-git-bot

commit sha ac3b057697066e7e56a2e52f0bf87198f283ed5b

Merge PR #1498 into 12.0 Signed-off-by simahawk

view details

OCA-git-bot

commit sha a5be33741ab0f0b75d23de9788f933ca47a1c2b8

web_tree_many2one_clickable 12.0.1.0.1

view details

Alexandre Díaz

commit sha e384f673179d6103b59f8bbd6121e9041bfc410d

[IMP] web_responsive: Payment info popover position

view details

eng-eslam-a-y

commit sha 0846c1c8d08d9c0d20b2b0c21f8eeee5e6194f1e

has to explicit check for type of value !== null has to explicit check for type of value !== null as the typeof null is object https://i.stack.imgur.com/FzI1R.png

view details

eng-eslam-a-y

commit sha d52d15c9d959ce3e73200148cecf3b4517a94f30

Update backend.js

view details

OCA-git-bot

commit sha 632a5418d751295e4a2015a368af5154e320da37

Merge PR #1507 into 12.0 Signed-off-by pedrobaeza

view details

OCA-git-bot

commit sha c795303460fdff939fc58aa8c83a2dc1e6f6a6c4

web_widget_x2many_2d_matrix 12.0.2.2.1

view details

Nelson Ramírez Sánchez

commit sha b347f482ab0058d7c7f7947fb2204e44d2cfe536

Added translation using Weblate (Spanish)

view details

Nelson Ramírez Sánchez

commit sha d4f4ff7d85aae2e264634327b874cb5825c3f25b

Translated using Weblate (Spanish) Currently translated at 78.3% (18 of 23 strings) Translation: web-12.0/web-12.0-web_timeline Translate-URL: https://translation.odoo-community.org/projects/web-12-0/web-12-0-web_timeline/es/

view details

Carles Antoli

commit sha 2d4b1a65e8c0bfc2c095220979f707733282d03f

Added translation using Weblate (Catalan)

view details

Carles Antoli

commit sha 938040610050ddfbb3dec80b175e87ddc3163656

Added translation using Weblate (Catalan)

view details

Carles Antoli

commit sha 364de50bf81bfea2084550de963234443d55137b

Translated using Weblate (Catalan) Currently translated at 100.0% (9 of 9 strings) Translation: web-12.0/web-12.0-web_favicon Translate-URL: https://translation.odoo-community.org/projects/web-12-0/web-12-0-web_favicon/ca/

view details

push time in a month

delete branch Martronic-SA/web

delete branch : 12.0-web_timeline_act_window_view

delete time in a month

create barnchMartronic-SA/web

branch : 12.0-web_timeline_act_window_view

created branch time in a month

delete branch Martronic-SA/web

delete branch : 12.0-web_timeline_act_window_view

delete time in a month

create barnchMartronic-SA/web

branch : 12.0-web_timeline_act_window_view

created branch time in a month

pull request commentOCA/web

[12.0][MIG] web_listview_invert_selection

What is the status here? (@espo-tony )

Martronic-SA

comment created time in a month

pull request commentOCA/web

[12.0][IMP] Timeline View - Allow group by all type of fields (including m2m & o2m)

What is the status here? Almost two years since last review?

apineux

comment created time in a month

PullRequestReviewEvent
PullRequestReviewEvent

Pull request review commentOCA/account-invoicing

[MIG] account_invoice_merge: Migration to 13.0

+# Copyright 2004-2010 Tiny SPRL (http://tiny.be).+# Copyright 2010-2011 Elico Corp.+# Copyright 2016 Acsone (https://www.acsone.eu/)+# Copyright 2017 Eficent Business and IT Consulting Services S.L.+#   (http://www.eficent.com)+# Copyright 2019 Okia SPRL+# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).++from odoo import api, models+from odoo.tools import float_is_zero+++class AccountInvoice(models.Model):+    _inherit = "account.move"++    @api.model+    def _get_invoice_key_cols(self):+        return [+            "partner_id",+            "user_id",+            "type",+            "currency_id",+            "journal_id",+            "company_id",+            "invoice_partner_bank_id",+        ]++    @api.model+    def _get_invoice_line_key_cols(self):+        fields = [+            "name",+            "discount",+            "tax_ids",+            "price_unit",+            "product_id",+            "account_id",+            "analytic_account_id",+            "product_uom_id",+        ]+        for field in ["sale_line_ids"]:+            if field in self.env["account.move.line"]._fields:+                fields.append(field)+        return fields++    @api.model+    def _get_first_invoice_fields(self, invoice):+        return {+            "invoice_origin": "{}".format(invoice.invoice_origin or ""),+            "partner_id": invoice.partner_id.id,+            "journal_id": invoice.journal_id.id,+            "user_id": invoice.user_id.id,+            "currency_id": invoice.currency_id.id,+            "company_id": invoice.company_id.id,+            "type": invoice.type,+            "state": "draft",+            "invoice_payment_ref": "{}".format(invoice.invoice_payment_ref or ""),+            "name": "{}".format(invoice.name or ""),+            "fiscal_position_id": invoice.fiscal_position_id.id,+            "invoice_payment_term_id": invoice.invoice_payment_term_id.id,+            "invoice_line_ids": {},+            "invoice_partner_bank_id": invoice.invoice_partner_bank_id.id,+        }++    def _get_draft_invoices(self):+        """Overridable function to return draft invoices to merge"""+        return self.filtered(lambda x: x.state == "draft")++    # flake8: noqa: C901+    def do_merge(+        self, keep_references=True, date_invoice=False, remove_empty_invoice_lines=True+    ):+        """+        To merge similar type of account invoices.+        Invoices will only be merged if:+        * Account invoices are in draft+        * Account invoices belong to the same partner+        * Account invoices are have same company, partner, address, currency,+          journal, currency, salesman, account, type+        Lines will only be merged if:+        * Invoice lines are exactly the same except for the quantity and unit++         @param self: The object pointer.+         @param keep_references: If True, keep reference of original invoices++         @return: new account invoice id++        """++        def make_key(br, fields):+            list_key = []+            for field in fields:+                field_val = getattr(br, field)+                if field in ("product_id", "account_id"):+                    if not field_val:+                        field_val = False+                if (+                    isinstance(field_val, models.Model)+                    and field != "tax_ids"+                    and field != "sale_line_ids"+                ):+                    field_val = field_val.id+                elif (+                    isinstance(field_val, list)+                    or field == "tax_ids"+                    or field == "sale_line_ids"+                ):+                    field_val = ((6, 0, tuple([v.id for v in field_val])),)+                list_key.append((field, field_val))+            list_key.sort()+            return tuple(list_key)++        # compute what the new invoices should contain+        new_invoices = {}+        seen_origins = {}+        seen_client_refs = {}++        for account_invoice in self._get_draft_invoices():+            invoice_key = make_key(account_invoice, self._get_invoice_key_cols())+            new_invoice = new_invoices.setdefault(invoice_key, ({}, []))+            origins = seen_origins.setdefault(invoice_key, set())+            client_refs = seen_client_refs.setdefault(invoice_key, set())+            new_invoice[1].append(account_invoice.id)+            invoice_infos = new_invoice[0]+            if not invoice_infos:+                invoice_infos.update(self._get_first_invoice_fields(account_invoice))+                origins.add(account_invoice.invoice_origin)+                client_refs.add(account_invoice.invoice_payment_ref)+                if not keep_references:+                    invoice_infos.pop("name")+            else:+                if (+                    account_invoice.name+                    and account_invoice.name != "/"+                    and keep_references+                ):+                    invoice_infos["name"] = (+                        (invoice_infos["name"] or "") + " " + account_invoice.name+                    )+                if (+                    account_invoice.invoice_origin+                    and account_invoice.invoice_origin not in origins+                ):+                    invoice_infos["invoice_origin"] = (+                        (invoice_infos["invoice_origin"] or "")+                        + " "+                        + account_invoice.invoice_origin+                    )+                    origins.add(account_invoice.invoice_origin)+                if (+                    account_invoice.invoice_payment_ref+                    and account_invoice.invoice_payment_ref not in client_refs+                ):+                    invoice_infos["invoice_payment_ref"] = (+                        (invoice_infos["invoice_payment_ref"] or "")+                        + " "+                        + account_invoice.invoice_payment_ref+                    )+                    client_refs.add(account_invoice.invoice_payment_ref)++            for invoice_line in account_invoice.invoice_line_ids:+                line_key = make_key(invoice_line, self._get_invoice_line_key_cols())++                o_line = invoice_infos["invoice_line_ids"].setdefault(line_key, {})++                if o_line:+                    # merge the line with an existing line+                    o_line["quantity"] += invoice_line.quantity+                else:+                    # append a new "standalone" line+                    o_line["quantity"] = invoice_line.quantity++        allinvoices = []+        allnewinvoices = []+        invoices_info = {}+        old_invoices = self.env["account.move"]+        qty_prec = self.env["decimal.precision"].precision_get(+            "Product Unit of Measure"+        )+        for _invoice_key, (invoice_data, old_ids) in new_invoices.items():+            # skip merges with only one invoice+            if len(old_ids) < 2:+                allinvoices += old_ids or []+                continue+            # cleanup invoice line data+            for key, value in invoice_data["invoice_line_ids"].items():+                value.update(dict(key))++            if remove_empty_invoice_lines:+                invoice_data["invoice_line_ids"] = [+                    (0, 0, value)+                    for value in invoice_data["invoice_line_ids"].values()+                    if not float_is_zero(value["quantity"], precision_digits=qty_prec)+                ]+            else:+                invoice_data["invoice_line_ids"] = [+                    (0, 0, value) for value in invoice_data["invoice_line_ids"].values()+                ]++            if date_invoice:+                invoice_data["invoice_date"] = date_invoice++            # create the new invoice+            newinvoice = self.with_context(is_merge=True).create(invoice_data)+            invoices_info.update({newinvoice.id: old_ids})+            allinvoices.append(newinvoice.id)+            allnewinvoices.append(newinvoice)+            # cancel old invoices+            old_invoices = self.env["account.move"].browse(old_ids)+            old_invoices.with_context(is_merge=True).button_cancel()++        # Make link between original sale order+        # None if sale is not installed+        invoice_line_obj = self.env["account.move.line"]+        for new_invoice_id in invoices_info:+            if "sale.order" in self.env.registry:+                sale_todos = old_invoices.mapped(+                    "invoice_line_ids.sale_line_ids.order_id"+                )+                for org_so in sale_todos:+                    for so_line in org_so.order_line:+                        invoice_line = invoice_line_obj.search(+                            [+                                ("id", "in", so_line.invoice_lines.ids),+                                ("move_id", "=", new_invoice_id),+                            ]+                        )+                        if invoice_line:+                            so_line.write({"invoice_lines": [(6, 0, invoice_line.ids)]})

Should better be so_line.write({"invoice_lines": [(4, ilid) for ilid in invoice_line.ids]}) So that sale order lines doesn't loose reference with old invoices in case of multiple invoices.

rven

comment created time in 2 months

PullRequestReviewEvent

pull request commentOCA/edi

[13.0][MIG] account_invoice_import

Hi! I'm sorry but I tried to install this module on a Odoo CE v13 and I've had a lot of errors (missing edi dependencies for components...) Finally I've tried to backport the v14.0 module and, except 2 -3 small issues (security with a non existing group, 2 views and "move_type" instead of "type"), I've managed to install it and it seems to be working as expected.

yvaucher

comment created time in 2 months