adding new menuitem odoo 10 Sales addon doesn't work











up vote
2
down vote

favorite












I don't know what's missing here but the menuitem doesn't show in Odoo 10
I want to add a menuitem for showing a specific Customers called "Annonceur"
here my field in python code





from odoo import models, fields, api
class Annonceur(models.Model):
_inherit = 'res.partner'
annonceur = fields.Boolean("annonceur", default=False)


then I want to add a menuitem in Left menu of Sale addon and window_action for showing this type of Customers axactly like Customers



<record id="action_partner_annonceur_form" model="ir.actions.act_window">
<field name="name">Annonceurs</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">res.partner</field>
<field name="view_type">form</field>
<field name="view_mode">tree,kanban,form</field>
<field name="domain">[('annonceur','=','True')]</field>
<field name="context">{'default_customer':1, 'search_default_customer':1}</field>
<field name="filter" eval="True"/>
<field name="help" type="html">
<p class="oe_view_nocontent_create">
Click to add a contact in your address book.
</p><p>
Odoo helps you easily track all activities related to
a customer: discussions, history of business opportunities,
documents, etc.
</p>
</field>
</record>
<menuitem id="annonceur_view"
parent="sales_team.menu_sales"
name="Annonceurs"
action="action_partner_annonceur_form"
sequence="5"/>


that's all my code please help me what's missing here










share|improve this question









New contributor




Sylver is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • Hi, You have added this XML file in the manifest
    – Karara Mohamed
    yesterday












  • Oups ! it's my bad ! it worked ! i forget to add it when i created the file thank you too much
    – Sylver
    9 hours ago










  • @Sylver, I think you need to change the id of menuitem, maybe there are two menuitem with the same id
    – khelili miliana
    4 hours ago

















up vote
2
down vote

favorite












I don't know what's missing here but the menuitem doesn't show in Odoo 10
I want to add a menuitem for showing a specific Customers called "Annonceur"
here my field in python code





from odoo import models, fields, api
class Annonceur(models.Model):
_inherit = 'res.partner'
annonceur = fields.Boolean("annonceur", default=False)


then I want to add a menuitem in Left menu of Sale addon and window_action for showing this type of Customers axactly like Customers



<record id="action_partner_annonceur_form" model="ir.actions.act_window">
<field name="name">Annonceurs</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">res.partner</field>
<field name="view_type">form</field>
<field name="view_mode">tree,kanban,form</field>
<field name="domain">[('annonceur','=','True')]</field>
<field name="context">{'default_customer':1, 'search_default_customer':1}</field>
<field name="filter" eval="True"/>
<field name="help" type="html">
<p class="oe_view_nocontent_create">
Click to add a contact in your address book.
</p><p>
Odoo helps you easily track all activities related to
a customer: discussions, history of business opportunities,
documents, etc.
</p>
</field>
</record>
<menuitem id="annonceur_view"
parent="sales_team.menu_sales"
name="Annonceurs"
action="action_partner_annonceur_form"
sequence="5"/>


that's all my code please help me what's missing here










share|improve this question









New contributor




Sylver is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • Hi, You have added this XML file in the manifest
    – Karara Mohamed
    yesterday












  • Oups ! it's my bad ! it worked ! i forget to add it when i created the file thank you too much
    – Sylver
    9 hours ago










  • @Sylver, I think you need to change the id of menuitem, maybe there are two menuitem with the same id
    – khelili miliana
    4 hours ago















up vote
2
down vote

favorite









up vote
2
down vote

favorite











I don't know what's missing here but the menuitem doesn't show in Odoo 10
I want to add a menuitem for showing a specific Customers called "Annonceur"
here my field in python code





from odoo import models, fields, api
class Annonceur(models.Model):
_inherit = 'res.partner'
annonceur = fields.Boolean("annonceur", default=False)


then I want to add a menuitem in Left menu of Sale addon and window_action for showing this type of Customers axactly like Customers



<record id="action_partner_annonceur_form" model="ir.actions.act_window">
<field name="name">Annonceurs</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">res.partner</field>
<field name="view_type">form</field>
<field name="view_mode">tree,kanban,form</field>
<field name="domain">[('annonceur','=','True')]</field>
<field name="context">{'default_customer':1, 'search_default_customer':1}</field>
<field name="filter" eval="True"/>
<field name="help" type="html">
<p class="oe_view_nocontent_create">
Click to add a contact in your address book.
</p><p>
Odoo helps you easily track all activities related to
a customer: discussions, history of business opportunities,
documents, etc.
</p>
</field>
</record>
<menuitem id="annonceur_view"
parent="sales_team.menu_sales"
name="Annonceurs"
action="action_partner_annonceur_form"
sequence="5"/>


that's all my code please help me what's missing here










share|improve this question









New contributor




Sylver is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











I don't know what's missing here but the menuitem doesn't show in Odoo 10
I want to add a menuitem for showing a specific Customers called "Annonceur"
here my field in python code





from odoo import models, fields, api
class Annonceur(models.Model):
_inherit = 'res.partner'
annonceur = fields.Boolean("annonceur", default=False)


then I want to add a menuitem in Left menu of Sale addon and window_action for showing this type of Customers axactly like Customers



<record id="action_partner_annonceur_form" model="ir.actions.act_window">
<field name="name">Annonceurs</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">res.partner</field>
<field name="view_type">form</field>
<field name="view_mode">tree,kanban,form</field>
<field name="domain">[('annonceur','=','True')]</field>
<field name="context">{'default_customer':1, 'search_default_customer':1}</field>
<field name="filter" eval="True"/>
<field name="help" type="html">
<p class="oe_view_nocontent_create">
Click to add a contact in your address book.
</p><p>
Odoo helps you easily track all activities related to
a customer: discussions, history of business opportunities,
documents, etc.
</p>
</field>
</record>
<menuitem id="annonceur_view"
parent="sales_team.menu_sales"
name="Annonceurs"
action="action_partner_annonceur_form"
sequence="5"/>


that's all my code please help me what's missing here







menuitem odoo-10






share|improve this question









New contributor




Sylver is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




Sylver is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 5 hours ago









KbiR

2,26411235




2,26411235






New contributor




Sylver is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 2 days ago









Sylver

111




111




New contributor




Sylver is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Sylver is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Sylver is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












  • Hi, You have added this XML file in the manifest
    – Karara Mohamed
    yesterday












  • Oups ! it's my bad ! it worked ! i forget to add it when i created the file thank you too much
    – Sylver
    9 hours ago










  • @Sylver, I think you need to change the id of menuitem, maybe there are two menuitem with the same id
    – khelili miliana
    4 hours ago




















  • Hi, You have added this XML file in the manifest
    – Karara Mohamed
    yesterday












  • Oups ! it's my bad ! it worked ! i forget to add it when i created the file thank you too much
    – Sylver
    9 hours ago










  • @Sylver, I think you need to change the id of menuitem, maybe there are two menuitem with the same id
    – khelili miliana
    4 hours ago


















Hi, You have added this XML file in the manifest
– Karara Mohamed
yesterday






Hi, You have added this XML file in the manifest
– Karara Mohamed
yesterday














Oups ! it's my bad ! it worked ! i forget to add it when i created the file thank you too much
– Sylver
9 hours ago




Oups ! it's my bad ! it worked ! i forget to add it when i created the file thank you too much
– Sylver
9 hours ago












@Sylver, I think you need to change the id of menuitem, maybe there are two menuitem with the same id
– khelili miliana
4 hours ago






@Sylver, I think you need to change the id of menuitem, maybe there are two menuitem with the same id
– khelili miliana
4 hours ago














1 Answer
1






active

oldest

votes

















up vote
1
down vote













Add inherit id in Action menu.



Add the code below in your action menu.



<field name="inherit_id" ref="base.view_res_partner_filter"/>





share|improve this answer























  • thank you for the answer, but it doesn't work too.
    – Sylver
    2 days ago











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});






Sylver is a new contributor. Be nice, and check out our Code of Conduct.










 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53372985%2fadding-new-menuitem-odoo-10-sales-addon-doesnt-work%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
1
down vote













Add inherit id in Action menu.



Add the code below in your action menu.



<field name="inherit_id" ref="base.view_res_partner_filter"/>





share|improve this answer























  • thank you for the answer, but it doesn't work too.
    – Sylver
    2 days ago















up vote
1
down vote













Add inherit id in Action menu.



Add the code below in your action menu.



<field name="inherit_id" ref="base.view_res_partner_filter"/>





share|improve this answer























  • thank you for the answer, but it doesn't work too.
    – Sylver
    2 days ago













up vote
1
down vote










up vote
1
down vote









Add inherit id in Action menu.



Add the code below in your action menu.



<field name="inherit_id" ref="base.view_res_partner_filter"/>





share|improve this answer














Add inherit id in Action menu.



Add the code below in your action menu.



<field name="inherit_id" ref="base.view_res_partner_filter"/>






share|improve this answer














share|improve this answer



share|improve this answer








edited 5 hours ago









KbiR

2,26411235




2,26411235










answered 2 days ago









Pablo Escobar

454




454












  • thank you for the answer, but it doesn't work too.
    – Sylver
    2 days ago


















  • thank you for the answer, but it doesn't work too.
    – Sylver
    2 days ago
















thank you for the answer, but it doesn't work too.
– Sylver
2 days ago




thank you for the answer, but it doesn't work too.
– Sylver
2 days ago










Sylver is a new contributor. Be nice, and check out our Code of Conduct.










 

draft saved


draft discarded


















Sylver is a new contributor. Be nice, and check out our Code of Conduct.













Sylver is a new contributor. Be nice, and check out our Code of Conduct.












Sylver is a new contributor. Be nice, and check out our Code of Conduct.















 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53372985%2fadding-new-menuitem-odoo-10-sales-addon-doesnt-work%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

MongoDB - Not Authorized To Execute Command

How to fix TextFormField cause rebuild widget in Flutter

Npm cannot find a required file even through it is in the searched directory