-
Notifications
You must be signed in to change notification settings - Fork 1
Add pot action 2 #69
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
base: 18.0
Are you sure you want to change the base?
Add pot action 2 #69
Changes from all commits
bc04535
7886d59
4ce6ea4
d01b45c
8226698
1846175
76d46fe
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| 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 | ||
| 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' }} | ||
|
|
||
This file was deleted.
This file was deleted.
| 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 |
| 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") |
| 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"> | ||||||||||||||||||||||
|
||||||||||||||||||||||
| <group name="clasificacion_abc" string="Clasificacion ABC"> | |
| <group name="clasificacion_abc" string="Clasificación ABC"> |
Copilot
AI
Nov 18, 2025
There was a problem hiding this comment.
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.
| <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> |
There was a problem hiding this comment.
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:latestcontainer, but the module manifest indicates version 18.0 (partner_sales_abc/__manifest__.pyline 22). This mismatch may cause compatibility issues during POT file generation. Consider updating to usepy3.10-odoo18.0:latestor the appropriate Odoo 18 container.