Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/update_pot_files.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# ⚠️ DO NOT EDIT THIS FILE, IT IS GENERATED BY COPIER ⚠️
# Changes here will be lost on a future update.
# See: https://github.com/ingadhoc/addons-repo-template

name: Update .pot files

on:
push:
branches: "*.0-*"

jobs:
update-pot:
runs-on: ubuntu-22.04
container: ghcr.io/oca/oca-ci/py3.10-odoo17.0:latest
Copy link

Copilot AI Nov 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Version mismatch: The workflow uses py3.10-odoo17.0:latest container, but the module manifest indicates version 18.0 (partner_sales_abc/__manifest__.py line 22). This mismatch may cause compatibility issues during POT file generation. Consider updating to use py3.10-odoo18.0:latest or the appropriate Odoo 18 container.

Suggested change
container: ghcr.io/oca/oca-ci/py3.10-odoo17.0:latest
container: ghcr.io/oca/oca-ci/py3.10-odoo18.0:latest

Copilot uses AI. Check for mistakes.
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false

- name: Update .pot files
run: |
oca_export_and_push_pot \
https://x-access-token:${{ secrets.GIT_PUSH_TOKEN }}@github.com/${{ github.repository }}
if: ${{ github.repository_owner == 'ingadhoc' }}

2 changes: 1 addition & 1 deletion partner_sales_abc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
# For copyright and license notices, see __manifest__.py file in module root
# directory
##############################################################################
# from . import models
from . import models
5 changes: 2 additions & 3 deletions partner_sales_abc/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,13 @@
##############################################################################
{
"name": "Partner Sales ABC",
"version": "13.0.1.0.0",
"version": "18.0.1.0.0",
"website": "www.adhoc.com.ar",
"author": "ADHOC SA",
"license": "AGPL-3",
"category": "Tools",
"depends": [
# 'base',
# 'mail'
"contacts",
],
"data": [
"views/partner_view.xml",
Expand Down
Binary file not shown.
20 changes: 11 additions & 9 deletions partner_sales_abc/i18n/es.po
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * partner_sales_abc
# * partner_sales_abc
#
# Translators:
# Juan José Scarafía <scarafia.juanjose@gmail.com>, 2019
# Juan José Scarafía <scarafia.juanjose@gmail.com>, 2025
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Project-Id-Version: Odoo Server 18.0+e\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-12-25 22:18+0000\n"
"PO-Revision-Date: 2019-07-31 21:33+0000\n"
"Last-Translator: Juan José Scarafía <scarafia.juanjose@gmail.com>, 2019\n"
"Language-Team: Spanish (https://www.transifex.com/adhoc/teams/46451/es/)\n"
"PO-Revision-Date: 2025-11-18 17:51+0000\n"
"Last-Translator: Virginia Bonservizi <vib@adhoc.inc>\n"
"Language-Team: Spanish <https://hosted.weblate.org/projects/odoo-19/"
"partner_sales_abc/es/>\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: es\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"Plural-Forms: nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n"

#. module: partner_sales_abc
#: model:ir.model.fields,field_description:partner_sales_abc.field_res_partner__abc_sales_amount
Expand All @@ -28,9 +30,9 @@ msgstr "ABC Ventas por Monto"
#. module: partner_sales_abc
#: model_terms:ir.ui.view,arch_db:partner_sales_abc.view_partner_user_form
msgid "Clasificacion ABC"
msgstr "Clasificacion ABC"
msgstr "Clasificacion ABC test 2"

#. module: partner_sales_abc
#: model:ir.model,name:partner_sales_abc.model_res_partner
msgid "Contact"
msgstr "Contactos"
msgstr "Contacto"
2 changes: 1 addition & 1 deletion partner_sales_abc/i18n/fr.po
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 13.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-11-25 23:19+0000\n"
"POT-Creation-Date: 2021-02-02 10:33+0000\n"
"PO-Revision-Date: 2020-01-30 16:35+0000\n"
"Last-Translator: Franck AGBEAGBE <edfranco1021@gmail.com>, 2020\n"
"Language-Team: French (https://www.transifex.com/adhoc/teams/46451/fr/)\n"
Expand Down
32 changes: 0 additions & 32 deletions partner_sales_abc/i18n/partner_sales_abc.pot

This file was deleted.

34 changes: 0 additions & 34 deletions partner_sales_abc/i18n/pt.po

This file was deleted.

5 changes: 5 additions & 0 deletions partner_sales_abc/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
##############################################################################
# For copyright and license notices, see __manifest__.py file in module root
# directory
##############################################################################
from . import res_partner
11 changes: 11 additions & 0 deletions partner_sales_abc/models/res_partner.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
##############################################################################
# For copyright and license notices, see __manifest__.py file in module root
# directory
##############################################################################

from odoo import fields, models


class partner(models.Model):
_inherit = "res.partner"
abc_sales_amount = fields.Char("ABC Sales amount")
16 changes: 16 additions & 0 deletions partner_sales_abc/views/partner_view.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- INHERITED FORM -->
<record id="view_partner_user_form" model="ir.ui.view">
<field name="name">partner.user.form</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form"/>
<field name="arch" type="xml">
<page name="sales_purchases">
<group name="clasificacion_abc" string="Clasificacion ABC">
Copy link

Copilot AI Nov 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spelling error: "Clasificacion" should be "Clasificación" (missing accent on the 'o').

Suggested change
<group name="clasificacion_abc" string="Clasificacion ABC">
<group name="clasificacion_abc" string="Clasificación ABC">

Copilot uses AI. Check for mistakes.
<field name="abc_sales_amount"/>
</group>
</page>
Comment on lines +9 to +13
Copy link

Copilot AI Nov 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The XPath selector references page name="sales_purchases" without specifying a position attribute. According to Odoo XML inheritance best practices, you should explicitly specify the position attribute (e.g., position="inside") to make the inheritance behavior clear and predictable.

Suggested change
<page name="sales_purchases">
<group name="clasificacion_abc" string="Clasificacion ABC">
<field name="abc_sales_amount"/>
</group>
</page>
<xpath expr="//page[@name='sales_purchases']" position="inside">
<group name="clasificacion_abc" string="Clasificacion ABC">
<field name="abc_sales_amount"/>
</group>
</xpath>

Copilot uses AI. Check for mistakes.
</field>
</record>
</odoo>