Coder Social home page Coder Social logo

[10.0] Overriding field analytic_account_id in account.analytic.contract.line breaks link between account.analytic.invoice.line and account.analytic.account. about contract HOT 6 CLOSED

NL66278 avatar NL66278 commented on August 24, 2024
[10.0] Overriding field analytic_account_id in account.analytic.contract.line breaks link between account.analytic.invoice.line and account.analytic.account.

from contract.

Comments (6)

NL66278 avatar NL66278 commented on August 24, 2024

If we really want to have contracts (account.analytic.account) and contract templates (account.analytic.contract) in different models, I think it is a bad idea to have the inheritance defined from contracts to templates, but for lines in the other direction: from template lines to contract lines.

But maybe it would be better to have contracts and contract templates in the same models, with some fields als partner_id not required when used as a template.

Anyway that might be to big a change for now, but maybe there are good ideas to solve the problem without changing to much?

from contract.

pedrobaeza avatar pedrobaeza commented on August 24, 2024

What about depending on the module contract?

from contract.

NL66278 avatar NL66278 commented on August 24, 2024

Issue can be solved, or should I say worked around, with this PR: #129

from contract.

NL66278 avatar NL66278 commented on August 24, 2024

@pedrobaeza What did you mean with depending on contract? My code was depending on contract, that is how I ran into the issue described.

from contract.

katyukha avatar katyukha commented on August 24, 2024

May be related: #169

from contract.

NL66278 avatar NL66278 commented on August 24, 2024

Solved here: 3c0c73c

from contract.

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.