Giter VIP home page Giter VIP logo

Comments (8)

dreispt avatar dreispt commented on July 29, 2024

Checked on Runbot,v8.0, and I confirm it.
The %() is supposed translate an XMLId into a database ID.
Probably the names used are not correct XML IDs.

from management-system.

dreispt avatar dreispt commented on July 29, 2024

@llacroix Do you have time to check?

from management-system.

llacroix avatar llacroix commented on July 29, 2024

Not much time, but the error is strange honestly. @dreispt if the xmlid was wrong, it should raise an error that the xmlid cannot be found or something like that. It shouldn't even get to the client. It seems more like the xmlid replacement is not happening at all.

I'd try to put that code into an eval="[('stage.id', 'in', [ref('stage_draft')...])]"

Chances are that it will work better that way than the string replacement

from management-system.

dreispt avatar dreispt commented on July 29, 2024

@igallart Can you try a fix?

from management-system.

igallart avatar igallart commented on July 29, 2024

OK, I try the solution of @llacroix and it works:

  <record model="ir.actions.act_window" id="action_mgmtsystem_claim">
      <field name="name">board.mgmtsystem.claim.act_window</field>
      <field name="res_model">mgmtsystem.claim</field>
      <field name="view_type">form</field>
      <field name="view_mode">tree</field>
      <field name="domain"
          eval="[('stage_id.id', 'in', [ref('stage_draft'), ref('stage_open'), ref('stage_pending')])]" />
  </record>

from management-system.

dreispt avatar dreispt commented on July 29, 2024

Can you submit a PR?

from management-system.

igallart avatar igallart commented on July 29, 2024

Yes.
#136

from management-system.

dreispt avatar dreispt commented on July 29, 2024

Great! πŸŽ‰

from management-system.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.